Searched defs:mLayoutManager (Results 1 - 20 of 20) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DGridLayoutManagerWrapContentWithAspectRatioTest.java79 RecyclerView.LayoutManager mLayoutManager; field in class:GridLayoutManagerWrapContentWithAspectRatioTest
103 mLayoutManager = createFromConfig();
107 mLayoutManager, 1 - mConfig.mOrientation);
110 mRecyclerView.setLayoutManager(mLayoutManager);
125 ((GridLayoutManager) mLayoutManager).setSpanSizeLookup(
H A DCustomEdgeEffectTest.java52 private LinearLayoutManager mLayoutManager; field in class:CustomEdgeEffectTest
57 mLayoutManager = new LinearLayoutManager(getActivity());
58 mLayoutManager.ensureLayoutState();
61 mRecyclerView.setLayoutManager(mLayoutManager);
H A DTestResizingRelayoutWithAutoMeasure.java53 private final RecyclerView.LayoutManager mLayoutManager; field in class:TestResizingRelayoutWithAutoMeasure
63 mLayoutManager = layoutManager;
97 recyclerView.setLayoutManager(mLayoutManager);
162 for (int i = 0; i < mLayoutManager.getChildCount(); i++) {
163 View view = mLayoutManager.getChildAt(i);
166 mLayoutManager.getDecoratedBoundsWithMargins(view, outRect);
H A DItemTouchHelperTest.java53 public TestLayoutManager mLayoutManager; field in class:ItemTouchHelperTest.RecyclerViewState
71 rvs.mLayoutManager = new TestLayoutManager() {
91 rvs.mWrappedRecyclerView.setLayoutManager(rvs.mLayoutManager);
148 rvs.mLayoutManager.expectLayouts(1);
150 rvs.mLayoutManager.waitForLayout(1);
167 rvs2.mLayoutManager.expectLayouts(1);
174 rvs2.mLayoutManager.waitForLayout(1);
177 rvs.mLayoutManager.expectLayouts(1);
179 rvs.mLayoutManager.waitForLayout(1);
196 rvs.mLayoutManager
[all...]
H A DWrapContentBasicTest.java41 private WrapContentLayoutManager mLayoutManager; field in class:WrapContentBasicTest
53 mLayoutManager = spy(new WrapContentLayoutManager());
55 mRecyclerView.setLayoutManager(mLayoutManager);
62 when(mLayoutManager.supportsPredictiveItemAnimations()).thenReturn(false);
66 verify(mLayoutManager, times(3))
76 verify(mLayoutManager, times(3))
83 mLayoutManager.setMeasuredDimensionFromChildren(WRAP, WRAP);
84 verify(mLayoutManager).setMeasuredDimension(children[0].getWidth(),
92 mLayoutManager.setMeasuredDimensionFromChildren(WRAP, hSpec);
93 verify(mLayoutManager)
[all...]
H A DAsyncListUtilLayoutTest.java56 WrappedLinearLayoutManager mLayoutManager; field in class:AsyncListUtilLayoutTest
75 mLayoutManager = new WrappedLinearLayoutManager(
77 mRecyclerView.setLayoutManager(mLayoutManager);
79 mLayoutManager.expectLayouts(1);
81 mLayoutManager.waitForLayout(2);
84 assertEquals(rangeStart, mLayoutManager.findFirstVisibleItemPosition());
86 final int rangeSize = mLayoutManager.findLastVisibleItemPosition() + 1;
151 mLayoutManager.expectLayouts(1);
153 mLayoutManager.waitForLayout(1);
161 mLayoutManager
[all...]
H A DBaseLinearLayoutManagerTest.java70 WrappedLinearLayoutManager mLayoutManager; field in class:BaseLinearLayoutManagerTest
102 mLayoutManager = new WrappedLinearLayoutManager(getActivity(), config.mOrientation,
104 mLayoutManager.setStackFromEnd(config.mStackFromEnd);
105 mLayoutManager.setRecycleChildrenOnDetach(config.mRecycleChildrenOnDetach);
106 mRecyclerView.setLayoutManager(mLayoutManager);
128 mLayoutManager.mOnLayoutListener = new OnLayoutListener() {
133 scrollPosition, mLayoutManager.mPendingScrollPosition);
136 scrollOffset, mLayoutManager.mPendingScrollPositionOffset);
144 mLayoutManager.getPaddingTop() + scrollOffset +
147 mLayoutManager
[all...]
H A DBaseWrapContentTest.java53 RecyclerView.LayoutManager mLayoutManager; field in class:BaseWrapContentTest
156 mLayoutManager = layoutManager;
233 getHorizontalGravity(mLayoutManager), getVerticalGravity(mLayoutManager));
H A DRecyclerViewFocusRecoveryTest.java51 TestLayoutManager mLayoutManager; field in class:RecyclerViewFocusRecoveryTest
113 mLayoutManager = layoutManager;
116 recyclerView.setLayoutManager(mLayoutManager);
121 mLayoutManager.expectLayouts(1);
123 mLayoutManager.waitForLayout(1);
129 mLayoutManager.setSupportsPredictive(true);
132 mLayoutManager.expectLayouts(mDisableAnimation ? 1 : 2);
134 mLayoutManager.waitForLayout(2);
165 mLayoutManager.expectLayouts(1);
174 mLayoutManager
[all...]
H A DBaseRecyclerViewAnimationsTest.java46 AnimationLayoutManager mLayoutManager; field in class:BaseRecyclerViewAnimationsTest
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
[all...]
H A DBaseStaggeredGridLayoutManagerTest.java65 volatile WrappedLayoutManager mLayoutManager; field in class:BaseStaggeredGridLayoutManagerTest
111 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, config.mOrientation);
112 mLayoutManager.setGapStrategy(config.mGapStrategy);
113 mLayoutManager.setReverseLayout(config.mReverseLayout);
114 mRecyclerView.setLayoutManager(mLayoutManager);
137 mLayoutManager.expectLayouts(1);
139 mLayoutManager.waitForLayout(3);
180 log.append("total space:" + mLayoutManager.mPrimaryOrientation.getTotalSpace());
221 ArrayList<ArrayList<View>> viewsBySpan = mLayoutManager.collectChildrenBySpan();
223 .createOrientationHelper(mLayoutManager, confi
[all...]
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DBaseLayoutManagerActivity.java49 protected T mLayoutManager; field in class:BaseLayoutManagerActivity
69 mLayoutManager = createLayoutManager();
70 mRecyclerView.setLayoutManager(mLayoutManager);
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DBaseLayoutManagerActivity.java49 protected T mLayoutManager; field in class:BaseLayoutManagerActivity
69 mLayoutManager = createLayoutManager();
70 mRecyclerView.setLayoutManager(mLayoutManager);
/frameworks/base/core/java/com/android/internal/widget/
H A DOrientationHelper.java37 protected final RecyclerView.LayoutManager mLayoutManager; field in class:OrientationHelper
48 mLayoutManager = layoutManager;
254 return mLayoutManager.getWidth() - mLayoutManager.getPaddingRight();
259 return mLayoutManager.getWidth();
264 mLayoutManager.offsetChildrenHorizontal(amount);
269 return mLayoutManager.getPaddingLeft();
276 return mLayoutManager.getDecoratedMeasuredWidth(view) + params.leftMargin
284 return mLayoutManager.getDecoratedMeasuredHeight(view) + params.topMargin
292 return mLayoutManager
[all...]
H A DRecyclerView.java10603 private LayoutManager mLayoutManager; field in class:RecyclerView.SmoothScroller
10631 mLayoutManager = layoutManager;
10653 return mLayoutManager;
10673 mLayoutManager.onSmoothScrollerStopped(this);
10675 mLayoutManager = null;
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DOrientationHelper.java36 protected final RecyclerView.LayoutManager mLayoutManager; field in class:OrientationHelper
47 mLayoutManager = layoutManager;
55 return mLayoutManager;
261 return mLayoutManager.getWidth() - mLayoutManager.getPaddingRight();
266 return mLayoutManager.getWidth();
271 mLayoutManager.offsetChildrenHorizontal(amount);
276 return mLayoutManager.getPaddingLeft();
283 return mLayoutManager.getDecoratedMeasuredWidth(view) + params.leftMargin
291 return mLayoutManager
[all...]
H A DRecyclerView.java11449 private LayoutManager mLayoutManager; field in class:RecyclerView.SmoothScroller
11486 mLayoutManager = layoutManager;
11532 return mLayoutManager;
11552 mLayoutManager.onSmoothScrollerStopped(this);
11554 mLayoutManager = null;
11602 if (mPendingInitialRun && mTargetView == null && mLayoutManager != null) {
/frameworks/support/viewpager2/src/main/java/androidx/viewpager2/widget/
H A DViewPager2.java70 private LinearLayoutManager mLayoutManager; field in class:ViewPager2
98 mLayoutManager = new LinearLayoutManager(context);
99 mRecyclerView.setLayoutManager(mLayoutManager);
520 mLayoutManager.setOrientation(orientation);
524 return mLayoutManager.getOrientation();
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DBaseGridView.java194 final GridLayoutManager mLayoutManager; field in class:BaseGridView
218 mLayoutManager = new GridLayoutManager(this);
219 setLayoutManager(mLayoutManager);
234 mLayoutManager.onChildRecycled(holder);
246 mLayoutManager.setFocusOutAllowed(throughFront, throughEnd);
249 mLayoutManager.setFocusOutSideAllowed(throughSideStart, throughSideEnd);
250 mLayoutManager.setVerticalSpacing(
253 mLayoutManager.setHorizontalSpacing(
277 mLayoutManager.setFocusScrollStrategy(scrollStrategy);
292 return mLayoutManager
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DGridWidgetTest.java89 protected GridLayoutManager mLayoutManager; field in class:GridWidgetTest
393 mLayoutManager = (GridLayoutManager) mGridView.getLayoutManager();
399 mLayoutManager = null;
412 if (mLayoutManager.mLayoutCompleteListener != null) {
415 mWaitLayoutListener = mLayoutManager.mLayoutCompleteListener =
434 if (mWaitLayoutListener != mLayoutManager.mLayoutCompleteListener) {
444 mLayoutManager.mLayoutCompleteListener = null;
763 mLayoutManager = (GridLayoutManager) mGridView.getLayoutManager();
777 100, ((StaggeredGrid) mLayoutManager.mGrid).mLocations.size());
2494 mGridView.mLayoutManager
[all...]

Completed in 215 milliseconds