leanback/src/androidTest/java/androidx/leanback/widget/GridWidgetTest.java
protected void startWaitLayout() {
        if (mWaitLayoutListener != null) {
            throw new IllegalStateException("startWaitLayout() already called");
        }
        if (mLayoutManager.mLayoutCompleteListener != null) {
            throw new IllegalStateException("Cannot startWaitLayout()");
        }
        mWaitLayoutListener = mLayoutManager.mLayoutCompleteListener =
                mock(GridLayoutManager.OnLayoutCompleteListener.class);
    }
/**
     * Must be called before waitForLayout() to prepare layout listener.
     */
Must be called before waitForLayout() to prepare layout listener.
Must be called before waitForLayout () to prepare layout listener .
protected void startWaitLayout() {
        if (mWaitLayoutListener != null) {
            throw new IllegalStateException("startWaitLayout() already called");
        }
        if (mLayoutManager.mLayoutCompleteListener != null) {
            throw new IllegalStateException("Cannot startWaitLayout()");
        }
        mWaitLayoutListener = mLayoutManager.mLayoutCompleteListener =
                mock(GridLayoutManager.OnLayoutCompleteListener.class);
    }
protected void startWaitLayout ( ) { if ( mWaitLayoutListener != null ) { throw new IllegalStateException ( "startWaitLayout() already called" ) ; } if ( mLayoutManager . mLayoutCompleteListener != null ) { throw new IllegalStateException ( "Cannot startWaitLayout()" ) ; } mWaitLayoutListener = mLayoutManager . mLayoutCompleteListener = mock ( GridLayoutManager . OnLayoutCompleteListener . class ) ; }
Must be called before waitForLayout() to prepare layout listener.
Must be called before waitForLayout () to prepare layout listener .