@Override public void run() { componentTree.calculateLayoutState( mContext, root3, mWidthSpec, mHeightSpec, true, null, null, LayoutState.CalculateLayoutSource.TEST, null); // At this point, the current thread is unblocked after waiting for the first to // finish layout. assertFalse(root3.hasRunLayout); assertTrue(root2.hasRunLayout); } });
@Override public void run() { componentTree.calculateLayoutState( mContext, root3, mWidthSpec, mHeightSpec, true, null, null, LayoutState.CalculateLayoutSource.TEST, null); // At this point, the current thread is unblocked after waiting for the first to // finish layout. assertTrue(root3.hasRunLayout); assertTrue(root2.hasRunLayout); } });
.build(); LayoutState state = componentTree.calculateLayoutState( mContext, component1, componentTree.calculateLayoutState( mContext, component2, componentTree.calculateLayoutState( mContext, component3,
.build(); LayoutState state = componentTree.calculateLayoutState( mContext, component1, componentTree.calculateLayoutState( mContext, component2, componentTree.calculateLayoutState( mContext, component3,
.build(); LayoutState state = componentTree.calculateLayoutState( mContext, component1, componentTree.calculateLayoutState( mContext, component2,
calculateLayoutState( mContext, root,
componentTree.calculateLayoutState( mContext, firstComponent, componentTree.calculateLayoutState( mContext, secondComponent, componentTree.calculateLayoutState( mContext, thirdComponent,
calculateLayoutState( mContext, component,