Home
last modified time | relevance | path

Searched refs:layoutManager (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearSmoothScroller.java300 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDyToMakeVisible() local
301 if (layoutManager == null || !layoutManager.canScrollVertically()) { in calculateDyToMakeVisible()
306 final int top = layoutManager.getDecoratedTop(view) - params.topMargin; in calculateDyToMakeVisible()
307 final int bottom = layoutManager.getDecoratedBottom(view) + params.bottomMargin; in calculateDyToMakeVisible()
308 final int start = layoutManager.getPaddingTop(); in calculateDyToMakeVisible()
309 final int end = layoutManager.getHeight() - layoutManager.getPaddingBottom(); in calculateDyToMakeVisible()
325 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDxToMakeVisible() local
326 if (layoutManager == null || !layoutManager.canScrollHorizontally()) { in calculateDxToMakeVisible()
331 final int left = layoutManager.getDecoratedLeft(view) - params.leftMargin; in calculateDxToMakeVisible()
332 final int right = layoutManager.getDecoratedRight(view) + params.rightMargin; in calculateDxToMakeVisible()
[all …]
DOrientationHelper.java47 private OrientationHelper(RecyclerView.LayoutManager layoutManager) { in OrientationHelper() argument
48 mLayoutManager = layoutManager; in OrientationHelper()
233 RecyclerView.LayoutManager layoutManager, int orientation) { in createOrientationHelper() argument
236 return createHorizontalHelper(layoutManager); in createOrientationHelper()
238 return createVerticalHelper(layoutManager); in createOrientationHelper()
250 RecyclerView.LayoutManager layoutManager) { in createHorizontalHelper() argument
251 return new OrientationHelper(layoutManager) { in createHorizontalHelper()
348 public static OrientationHelper createVerticalHelper(RecyclerView.LayoutManager layoutManager) {
349 return new OrientationHelper(layoutManager) {
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/test/
DRecyclerViewTest.java84 RecyclerView.LayoutManager layoutManager = view.getLayoutManager(); in inflation() local
85 assertNotNull("LayoutManager not created.", layoutManager); in inflation()
87 layoutManager.getClass().getName(), GridLayoutManager.class.getName()); in inflation()
88 GridLayoutManager gridLayoutManager = ((GridLayoutManager) layoutManager); in inflation()
95 layoutManager = view.getLayoutManager(); in inflation()
96 assertNotNull("LayoutManager not created.", layoutManager); in inflation()
98 layoutManager.getClass().getName(), in inflation()
101 (CustomLayoutManager) layoutManager; in inflation()
107 layoutManager = view.getLayoutManager(); in inflation()
108 assertNotNull("LayoutManager not created.", layoutManager); in inflation()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerSavedStateTest.java98 layoutManager().expectLayouts(1); in params()
100 layoutManager().waitForLayout(2); in params()
111 layoutManager().expectLayouts(1); in params()
114 layoutManager().waitForLayout(2); in params()
125 layoutManager().expectLayouts(1); in params()
128 layoutManager().waitForLayout(2); in params()
150 layoutManager().setOrientation(config.mOrientation); in params()
167 layoutManager().setStackFromEnd(config.mStackFromEnd); in params()
184 layoutManager().setReverseLayout(config.mReverseLayout); in params()
201 layoutManager().setRecycleChildrenOnDetach(config.mRecycleChildrenOnDetach); in params()
[all …]
DRecyclerViewBasicTest.java79 MockLayoutManager layoutManager = new MockLayoutManager(); in layoutWithoutAdapter() local
80 mRecyclerView.setLayoutManager(layoutManager); in layoutWithoutAdapter()
83 0, layoutManager.mLayoutCount); in layoutWithoutAdapter()
159 MockLayoutManager layoutManager = new MockLayoutManager(); in layoutSimple() local
160 mRecyclerView.setLayoutManager(layoutManager); in layoutSimple()
164 + " layout manager's layout method", 1, layoutManager.mLayoutCount); in layoutSimple()
186 MockLayoutManager layoutManager = new MockLayoutManager(); in adapterChangeCallbacks() local
187 mRecyclerView.setLayoutManager(layoutManager); in adapterChangeCallbacks()
190 layoutManager.assertPrevNextAdapters(null, adapterOld); in adapterChangeCallbacks()
194 layoutManager.assertPrevNextAdapters("switching adapters should trigger correct callbacks" in adapterChangeCallbacks()
[all …]
DStaggeredGridLayoutManagerSavedStateTest.java76 layoutManager().expectLayouts(1); in getParams()
78 layoutManager().waitForLayout(2); in getParams()
89 layoutManager().expectLayouts(1); in getParams()
92 layoutManager().waitForLayout(2); in getParams()
103 layoutManager().expectLayouts(1); in getParams()
106 layoutManager().waitForLayout(2); in getParams()
235 public WrappedLayoutManager layoutManager() { in layoutManager() method in StaggeredGridLayoutManagerSavedStateTest.PostLayoutRunnable
DBaseWrapContentTest.java80 RecyclerView.LayoutManager layoutManager = createLayoutManager(); in unspecifiedWithHintTest() local
90 rv.setLayoutManager(layoutManager); in unspecifiedWithHintTest()
157 RecyclerView.LayoutManager layoutManager = scenario.createLayoutManager(); in runScenario() local
160 recyclerView.setLayoutManager(layoutManager); in runScenario()
162 mLayoutManager = layoutManager; in runScenario()
234 abstract protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager); in getVerticalGravity() argument
236 abstract protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager); in getHorizontalGravity() argument
461 RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in getChildBounds() local
463 Rect rect = new Rect(layoutManager.getDecoratedLeft(child) - lp.leftMargin, in getChildBounds()
464 layoutManager.getDecoratedTop(child) - lp.topMargin, in getChildBounds()
[all …]
DRecyclerViewAnimationsTest.java224 AnimationLayoutManager layoutManager, in dontLayoutReusedViewWithoutPredictive()
230 super.beforePostLayout(recycler, layoutManager, state); in dontLayoutReusedViewWithoutPredictive()
235 AnimationLayoutManager layoutManager, in dontLayoutReusedViewWithoutPredictive()
237 super.afterPostLayout(recycler, layoutManager, state); in dontLayoutReusedViewWithoutPredictive()
278 AnimationLayoutManager layoutManager, in dontLayoutReusedViewWithPredictive()
281 super.beforePostLayout(recycler, layoutManager, state); in dontLayoutReusedViewWithPredictive()
286 AnimationLayoutManager layoutManager, in dontLayoutReusedViewWithPredictive()
288 super.afterPostLayout(recycler, layoutManager, state); in dontLayoutReusedViewWithPredictive()
402 AnimationLayoutManager layoutManager, in reuseHiddenViewWithProperPredictive()
405 super.afterPreLayout(recycler, layoutManager, state); in reuseHiddenViewWithProperPredictive()
[all …]
DLinearLayoutManagerWrapContentTest.java155 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { in getVerticalGravity() argument
166 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { in getHorizontalGravity() argument
167 boolean rtl = layoutManager.getLayoutDirection() == ViewCompat.LAYOUT_DIRECTION_RTL; in getHorizontalGravity()
DRecyclerViewAccessibilityTest.java245 final DumbLayoutManager layoutManager = new DumbLayoutManager(); in ignoreAccessibilityIfAdapterHasChanged() local
248 recyclerView.setLayoutManager(layoutManager); in ignoreAccessibilityIfAdapterHasChanged()
249 layoutManager.expectLayouts(1); in ignoreAccessibilityIfAdapterHasChanged()
251 layoutManager.waitForLayout(1); in ignoreAccessibilityIfAdapterHasChanged()
DRecyclerViewFocusRecoveryTest.java80 void setupBasic(TestLayoutManager layoutManager) throws Throwable { in setupBasic() argument
81 setupBasic(null, layoutManager); in setupBasic()
88 void setupBasic(@Nullable TestAdapter adapter, @Nullable TestLayoutManager layoutManager) in setupBasic() argument
91 if (layoutManager == null) { in setupBasic()
92 layoutManager = new FocusLayoutManager(); in setupBasic()
98 mLayoutManager = layoutManager; in setupBasic()
DStaggeredGridLayoutManagerWrapContentTest.java145 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { in getVerticalGravity() argument
150 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { in getHorizontalGravity() argument
DTestResizingRelayoutWithAutoMeasure.java52 RecyclerView.LayoutManager layoutManager, float widthMultiplier, in TestResizingRelayoutWithAutoMeasure() argument
54 mLayoutManager = layoutManager; in TestResizingRelayoutWithAutoMeasure()
DGridLayoutManagerWrapContentTest.java181 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { in getVerticalGravity() argument
186 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { in getHorizontalGravity() argument
DRecyclerViewLayoutTest.java116 TestLayoutManager layoutManager = new TestLayoutManager() { in detachAttachGetReady() local
131 rv.setLayoutManager(layoutManager); in detachAttachGetReady()
133 layoutManager.expectLayouts(1); in detachAttachGetReady()
140 layoutManager.waitForLayout(2); in detachAttachGetReady()
150 rv.setLayoutManager(layoutManager); in detachAttachGetReady()
157 layoutManager.expectLayouts(1); in detachAttachGetReady()
172 layoutManager.waitForLayout(2); in detachAttachGetReady()
174 layoutManager.assertNoLayout("nothing is invalid, layout should not happen", 2); in detachAttachGetReady()
330 TestLayoutManager layoutManager = new TestLayoutManager() { in boundingBoxRotatedWithDecorOffsets() local
350 recyclerView.setLayoutManager(layoutManager); in boundingBoxRotatedWithDecorOffsets()
[all …]
DLinearLayoutManagerWrapContentWithAspectRatioTest.java124 RecyclerView.LayoutManager layoutManager = createFromConfig(); in wrapContentAffectsOtherOrientation() local
128 recyclerView.setLayoutManager(layoutManager); in wrapContentAffectsOtherOrientation()
DBaseRecyclerViewAnimationsTest.java314 void afterPreLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, in afterPreLayout() argument
318 void beforePostLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, in beforePostLayout() argument
322 void afterPostLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, in afterPostLayout() argument
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvCompatListActivity.java35 RecyclerView.LayoutManager layoutManager; field in RvCompatListActivity.RecyclerViewFragment
44 recyclerView.setLayoutManager(layoutManager); in onCreateView()
57 fragment.layoutManager = createLayoutManager(this); in onCreate()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/
DRecyclerViewUtil.java76 Object layoutManager = createLayoutManager(context, callback); in setLayoutManager() local
77 if (layoutManager != null) { in setLayoutManager()
78 setProperty(recyclerView, CN_LAYOUT_MANAGER, layoutManager, "setLayoutManager"); in setLayoutManager()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintPreviewController.java363 LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in computeShownPages() local
365 View firstChild = layoutManager.getChildAt(0); in computeShownPages()
368 View lastChild = layoutManager.getChildAt(layoutManager.getChildCount() - 1); in computeShownPages()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java1911 final RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in onMoved() local
1912 if (layoutManager instanceof ViewDropHandler) { in onMoved()
1913 ((ViewDropHandler) layoutManager).prepareForDrop(viewHolder.itemView, in onMoved()
1919 if (layoutManager.canScrollHorizontally()) { in onMoved()
1920 final int minLeft = layoutManager.getDecoratedLeft(target.itemView); in onMoved()
1924 final int maxRight = layoutManager.getDecoratedRight(target.itemView); in onMoved()
1930 if (layoutManager.canScrollVertically()) { in onMoved()
1931 final int minTop = layoutManager.getDecoratedTop(target.itemView); in onMoved()
1935 final int maxBottom = layoutManager.getDecoratedBottom(target.itemView); in onMoved()
/frameworks/support/v7/recyclerview/
Dproguard-rules.pro15 # When layoutManager xml attribute is used, RecyclerView inflates
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DMultiSelectManager.java1011 RecyclerView.LayoutManager layoutManager = mView.getLayoutManager(); in getColumnCount() local
1012 if (layoutManager instanceof GridLayoutManager) { in getColumnCount()
1013 return ((GridLayoutManager) layoutManager).getSpanCount(); in getColumnCount()
/frameworks/support/v7/recyclerview/api/
D22.2.1.txt9 field public static int layoutManager;
D22.2.0.txt9 field public static int layoutManager;

12