/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
LinearLayoutManagerSavedStateTest.java | 57 return mLayoutManager; 69 return mLayoutManager; 283 Map<Item, Rect> before = mLayoutManager.collectChildCoordinates(); 307 mLayoutManager = new WrappedLinearLayoutManager(getActivity(), 309 mLayoutManager.setStackFromEnd(mConfig.mStackFromEnd); 310 restored.setLayoutManager(mLayoutManager); 323 mLayoutManager.expectLayouts(1); 325 mLayoutManager.waitForLayout(2); 330 mConfig.mReverseLayout, mLayoutManager.getReverseLayout()); 332 mConfig.mOrientation, mLayoutManager.getOrientation()) [all...] |
RecyclerViewFocusRecoveryTest.java | 50 TestLayoutManager mLayoutManager; 112 mLayoutManager = layoutManager; 115 recyclerView.setLayoutManager(mLayoutManager); 120 mLayoutManager.expectLayouts(1); 122 mLayoutManager.waitForLayout(1); 128 mLayoutManager.setSupportsPredictive(true); 131 mLayoutManager.expectLayouts(mDisableAnimation ? 1 : 2); 133 mLayoutManager.waitForLayout(2); 164 mLayoutManager.expectLayouts(1); 173 mLayoutManager.waitForLayout(1) [all...] |
LinearLayoutManagerCacheTest.java | 87 mLayoutManager.expectPrefetch(1); 98 mLayoutManager.waitForPrefetch(1); 111 int lastVisibleItemPosition = mLayoutManager.findLastVisibleItemPosition(); 112 int firstVisibleItemPosition = mLayoutManager.findFirstVisibleItemPosition();
|
StaggeredGridLayoutManagerGapTest.java | 82 mLayoutManager.expectLayouts(1); 84 mLayoutManager.waitForLayout(2); 96 final Map<Item, Rect> actualCoords = mLayoutManager.collectChildCoordinates(); 103 final Map<Item, Rect> desiredCoords = mLayoutManager.collectChildCoordinates();
|
BaseLinearLayoutManagerTest.java | 68 WrappedLinearLayoutManager mLayoutManager; 100 mLayoutManager = new WrappedLinearLayoutManager(getActivity(), config.mOrientation, 102 mLayoutManager.setStackFromEnd(config.mStackFromEnd); 103 mLayoutManager.setRecycleChildrenOnDetach(config.mRecycleChildrenOnDetach); 104 mRecyclerView.setLayoutManager(mLayoutManager); 126 mLayoutManager.mOnLayoutListener = new OnLayoutListener() { 131 scrollPosition, mLayoutManager.mPendingScrollPosition); 134 scrollOffset, mLayoutManager.mPendingScrollPositionOffset); 142 mLayoutManager.getPaddingTop() + scrollOffset + 145 mLayoutManager.getDecoratedTop(vh.itemView)) [all...] |
LinearLayoutManagerTest.java | 612 final int childCount = mLayoutManager.getChildCount(); 616 View child = mLayoutManager.getChildAt(i); 630 mLayoutManager.expectLayouts(2); 632 mLayoutManager.waitForLayout(1); 641 for (int i = 0; i < mLayoutManager.getChildCount(); i++) { 642 View child = mLayoutManager.getChildAt(i); [all...] |
StaggeredGridLayoutManagerCacheTest.java | 80 mLayoutManager.findFirstVisibleItemPositions(positions); 87 mLayoutManager.findLastVisibleItemPositions(positions); 112 mLayoutManager.expectPrefetch(1); 123 mLayoutManager.waitForPrefetch(1);
|
TestResizingRelayoutWithAutoMeasure.java | 52 private final RecyclerView.LayoutManager mLayoutManager; 62 mLayoutManager = layoutManager; 96 recyclerView.setLayoutManager(mLayoutManager); 161 for (int i = 0; i < mLayoutManager.getChildCount(); i++) { 162 View view = mLayoutManager.getChildAt(i); 165 mLayoutManager.getDecoratedBoundsWithMargins(view, outRect);
|
BaseRecyclerViewAnimationsTest.java | 46 AnimationLayoutManager mLayoutManager; 75 mLayoutManager = new AnimationLayoutManager(); 76 recyclerView.setLayoutManager(mLayoutManager); 77 mLayoutManager.mOnLayoutCallbacks.mLayoutMin = firstLayoutStartIndex; 78 mLayoutManager.mOnLayoutCallbacks.mLayoutItemCount = firstLayoutItemCount; 80 mLayoutManager.expectLayouts(1); 83 mLayoutManager.waitForLayout(2); 85 mLayoutManager.mOnLayoutCallbacks.reset(); 88 assertEquals("extra layouts should not happen", 1, mLayoutManager.getTotalLayoutCount()); 90 mLayoutManager.getChildCount()) [all...] |
BaseStaggeredGridLayoutManagerTest.java | 46 volatile WrappedLayoutManager mLayoutManager; 92 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, config.mOrientation); 93 mLayoutManager.setGapStrategy(config.mGapStrategy); 94 mLayoutManager.setReverseLayout(config.mReverseLayout); 95 mRecyclerView.setLayoutManager(mLayoutManager); 118 mLayoutManager.expectLayouts(1); 120 mLayoutManager.waitForLayout(3); 161 log.append("total space:" + mLayoutManager.mPrimaryOrientation.getTotalSpace()); 202 ArrayList<ArrayList<View>> viewsBySpan = mLayoutManager.collectChildrenBySpan(); 204 .createOrientationHelper(mLayoutManager, config.mOrientation) [all...] |
/developers/build/prebuilts/gradle/DirectorySelection/Application/tests/src/com/example/android/directoryselection/ |
DirectorySelectionFragmentTest.java | 66 assertNotNull(mTestFragment.mLayoutManager);
|
/developers/samples/android/content/documentsUi/DirectorySelection/Application/tests/src/com/example/android/directoryselection/ |
DirectorySelectionFragmentTest.java | 66 assertNotNull(mTestFragment.mLayoutManager);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
DashboardSummaryTest.java | 57 private LinearLayoutManager mLayoutManager; 71 ReflectionHelpers.setField(mSummary, "mLayoutManager", mLayoutManager); 84 when(mLayoutManager.findFirstCompletelyVisibleItemPosition()).thenReturn(1); 91 when(mLayoutManager.findFirstCompletelyVisibleItemPosition()).thenReturn(2);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
LinearLayoutManagerJankActivity.java | 81 public boolean isChecked() { return mLayoutManager.isItemPrefetchEnabled(); } 85 mLayoutManager.setItemPrefetchEnabled(newValue);
|
BaseLayoutManagerActivity.java | 48 protected T mLayoutManager; 68 mLayoutManager = createLayoutManager(); 69 mRecyclerView.setLayoutManager(mLayoutManager);
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
ItemTouchHelperTest.java | 53 TestLayoutManager mLayoutManager; 70 mLayoutManager = new TestLayoutManager() { 90 mWrappedRecyclerView.setLayoutManager(mLayoutManager); 141 mLayoutManager.expectLayouts(1); 143 mLayoutManager.waitForLayout(1); 161 mLayoutManager.expectLayouts(1); 163 mLayoutManager.waitForLayout(1);
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
DashboardSummary.java | 70 private LinearLayoutManager mLayoutManager; 173 if (mLayoutManager == null) return; 174 outState.putInt(EXTRA_SCROLL_POSITION, mLayoutManager.findFirstVisibleItemPosition()); 184 mLayoutManager = new LinearLayoutManager(getContext()); 185 mLayoutManager.setOrientation(LinearLayoutManager.VERTICAL); 188 mLayoutManager.scrollToPosition(scrollPosition); 190 mDashboard.setLayoutManager(mLayoutManager); 232 final boolean scrollToTop = mLayoutManager.findFirstCompletelyVisibleItemPosition() <= 1;
|
/developers/build/prebuilts/gradle/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/ |
ImageClientFragment.kt | 44 private var mLayoutManager: LinearLayoutManager? = null 64 if (mLayoutManager == null) { 65 mLayoutManager = LinearLayoutManager(activity) 67 recyclerView.layoutManager = mLayoutManager 74 val lastVisiblePosition = mLayoutManager!!.findLastVisibleItemPosition()
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/ |
ImageClientFragment.kt | 44 private var mLayoutManager: LinearLayoutManager? = null 64 if (mLayoutManager == null) { 65 mLayoutManager = LinearLayoutManager(activity) 67 recyclerView.layoutManager = mLayoutManager 74 val lastVisiblePosition = mLayoutManager!!.findLastVisibleItemPosition()
|
/developers/build/prebuilts/gradle/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
ImageClientFragment.java | 52 private LinearLayoutManager mLayoutManager; 85 if (mLayoutManager == null) { 86 mLayoutManager = new LinearLayoutManager(activity); 88 recyclerView.setLayoutManager(mLayoutManager); 96 int lastVisiblePosition = mLayoutManager.findLastVisibleItemPosition();
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
ImageClientFragment.java | 52 private LinearLayoutManager mLayoutManager; 85 if (mLayoutManager == null) { 86 mLayoutManager = new LinearLayoutManager(activity); 88 recyclerView.setLayoutManager(mLayoutManager); 96 int lastVisiblePosition = mLayoutManager.findLastVisibleItemPosition();
|
/developers/build/prebuilts/gradle/AppUsageStatistics/Application/tests/src/com/example/android/appusagestatistics/ |
AppUsageStatisticsFragmentTests.java | 62 assertNotNull(mTestFragment.mLayoutManager);
|
/developers/samples/android/system/AppUsageStatistics/Application/tests/src/com/example/android/appusagestatistics/ |
AppUsageStatisticsFragmentTests.java | 62 assertNotNull(mTestFragment.mLayoutManager);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
HorizontalBreadcrumb.java | 48 private LinearLayoutManager mLayoutManager; 70 mLayoutManager = new LinearLayoutManager( 82 setLayoutManager(mLayoutManager); 107 mLayoutManager.scrollToPosition(mAdapter.getItemCount() - 1);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
HorizontalGridView.java | 76 mLayoutManager.setOrientation(RecyclerView.HORIZONTAL); 103 mLayoutManager.setNumRows(numRows); 115 mLayoutManager.setRowHeight(height); 258 if (mLayoutManager.getOpticalLeft(view) < getPaddingLeft() - mLowFadeShaderOffset) { 272 if (mLayoutManager.getOpticalRight(view) > getWidth()
|