/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | LinearSnapHelper.java | 44 @NonNull RecyclerView.LayoutManager layoutManager, @NonNull View targetView) { in calculateDistanceToFinalSnap() 46 if (layoutManager.canScrollHorizontally()) { in calculateDistanceToFinalSnap() 47 out[0] = distanceToCenter(layoutManager, targetView, in calculateDistanceToFinalSnap() 48 getHorizontalHelper(layoutManager)); in calculateDistanceToFinalSnap() 53 if (layoutManager.canScrollVertically()) { in calculateDistanceToFinalSnap() 54 out[1] = distanceToCenter(layoutManager, targetView, in calculateDistanceToFinalSnap() 55 getVerticalHelper(layoutManager)); in calculateDistanceToFinalSnap() 63 public int findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX, in findTargetSnapPosition() argument 65 if (!(layoutManager instanceof RecyclerView.SmoothScroller.ScrollVectorProvider)) { in findTargetSnapPosition() 69 final int itemCount = layoutManager.getItemCount(); in findTargetSnapPosition() [all …]
|
D | SnapHelper.java | 66 LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in onFling() local 67 if (layoutManager == null) { in onFling() 76 && snapFromFling(layoutManager, velocityX, velocityY); in onFling() 156 private boolean snapFromFling(@NonNull LayoutManager layoutManager, int velocityX, in snapFromFling() argument 158 if (!(layoutManager instanceof ScrollVectorProvider)) { in snapFromFling() 162 RecyclerView.SmoothScroller smoothScroller = createSnapScroller(layoutManager); in snapFromFling() 167 int targetPosition = findTargetSnapPosition(layoutManager, velocityX, velocityY); in snapFromFling() 173 layoutManager.startSmoothScroll(smoothScroller); in snapFromFling() 186 LayoutManager layoutManager = mRecyclerView.getLayoutManager(); in snapToTargetExistingView() local 187 if (layoutManager == null) { in snapToTargetExistingView() [all …]
|
D | LinearSmoothScroller.java | 302 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDyToMakeVisible() local 303 if (layoutManager == null || !layoutManager.canScrollVertically()) { in calculateDyToMakeVisible() 308 final int top = layoutManager.getDecoratedTop(view) - params.topMargin; in calculateDyToMakeVisible() 309 final int bottom = layoutManager.getDecoratedBottom(view) + params.bottomMargin; in calculateDyToMakeVisible() 310 final int start = layoutManager.getPaddingTop(); in calculateDyToMakeVisible() 311 final int end = layoutManager.getHeight() - layoutManager.getPaddingBottom(); in calculateDyToMakeVisible() 327 final RecyclerView.LayoutManager layoutManager = getLayoutManager(); in calculateDxToMakeVisible() local 328 if (layoutManager == null || !layoutManager.canScrollHorizontally()) { in calculateDxToMakeVisible() 333 final int left = layoutManager.getDecoratedLeft(view) - params.leftMargin; in calculateDxToMakeVisible() 334 final int right = layoutManager.getDecoratedRight(view) + params.rightMargin; in calculateDxToMakeVisible() [all …]
|
D | OrientationHelper.java | 47 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/ |
D | RecyclerViewTest.java | 84 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/ |
D | LinearLayoutManagerSavedStateTest.java | 98 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 …]
|
D | RecyclerViewBasicTest.java | 86 MockLayoutManager layoutManager = new MockLayoutManager(); in layoutWithoutAdapter() local 87 mRecyclerView.setLayoutManager(layoutManager); in layoutWithoutAdapter() 90 0, layoutManager.mLayoutCount); in layoutWithoutAdapter() 166 MockLayoutManager layoutManager = new MockLayoutManager(); in layoutSimple() local 167 mRecyclerView.setLayoutManager(layoutManager); in layoutSimple() 171 + " layout manager's layout method", 1, layoutManager.mLayoutCount); in layoutSimple() 193 MockLayoutManager layoutManager = new MockLayoutManager(); in adapterChangeCallbacks() local 194 mRecyclerView.setLayoutManager(layoutManager); in adapterChangeCallbacks() 197 layoutManager.assertPrevNextAdapters(null, adapterOld); in adapterChangeCallbacks() 201 layoutManager.assertPrevNextAdapters("switching adapters should trigger correct callbacks" in adapterChangeCallbacks() [all …]
|
D | StaggeredGridLayoutManagerSavedStateTest.java | 76 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
|
D | GridLayoutManagerNoOpUpdateTest.java | 110 RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in getChildBounds() local 112 Rect rect = new Rect(layoutManager.getDecoratedLeft(child) - lp.leftMargin, in getChildBounds() 113 layoutManager.getDecoratedTop(child) - lp.topMargin, in getChildBounds() 114 layoutManager.getDecoratedRight(child) + lp.rightMargin, in getChildBounds() 115 layoutManager.getDecoratedBottom(child) + lp.bottomMargin); in getChildBounds()
|
D | BaseWrapContentTest.java | 80 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() 233 abstract protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager); in getVerticalGravity() argument 235 abstract protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager); in getHorizontalGravity() argument 460 RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in getChildBounds() local 462 Rect rect = new Rect(layoutManager.getDecoratedLeft(child) - lp.leftMargin, in getChildBounds() 463 layoutManager.getDecoratedTop(child) - lp.topMargin, in getChildBounds() [all …]
|
D | RecyclerViewAnimationsTest.java | 224 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 …]
|
D | LinearLayoutManagerWrapContentTest.java | 158 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { in getVerticalGravity() argument 169 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { in getHorizontalGravity() argument 170 boolean rtl = layoutManager.getLayoutDirection() == ViewCompat.LAYOUT_DIRECTION_RTL; in getHorizontalGravity()
|
D | RecyclerViewAccessibilityTest.java | 245 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()
|
D | RecyclerViewFocusRecoveryTest.java | 82 void setupBasic(TestLayoutManager layoutManager) throws Throwable { in setupBasic() argument 83 setupBasic(null, layoutManager); in setupBasic() 90 void setupBasic(@Nullable TestAdapter adapter, @Nullable TestLayoutManager layoutManager) in setupBasic() argument 93 if (layoutManager == null) { in setupBasic() 94 layoutManager = new FocusLayoutManager(); in setupBasic() 100 mLayoutManager = layoutManager; in setupBasic()
|
D | StaggeredGridLayoutManagerWrapContentTest.java | 150 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { in getVerticalGravity() argument 155 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { in getHorizontalGravity() argument
|
D | GridLayoutManagerWrapContentTest.java | 217 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { in getVerticalGravity() argument 222 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { in getHorizontalGravity() argument
|
D | GridLayoutManagerSnappingTest.java | 183 @Nullable View findCenterView(RecyclerView.LayoutManager layoutManager) { in findCenterView() argument 184 if (layoutManager.canScrollHorizontally()) { in findCenterView()
|
D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 124 RecyclerView.LayoutManager layoutManager = createFromConfig(); in wrapContentAffectsOtherOrientation() local 128 recyclerView.setLayoutManager(layoutManager); in wrapContentAffectsOtherOrientation()
|
D | LinearLayoutManagerSnappingTest.java | 206 @Nullable private View findCenterView(RecyclerView.LayoutManager layoutManager) { in findCenterView() argument 207 if (layoutManager.canScrollHorizontally()) { in findCenterView()
|
D | RecyclerViewLayoutTest.java | 187 TestLayoutManager layoutManager = new TestLayoutManager() { in detachAttachGetReady() local 202 rv.setLayoutManager(layoutManager); in detachAttachGetReady() 204 layoutManager.expectLayouts(1); in detachAttachGetReady() 211 layoutManager.waitForLayout(2); in detachAttachGetReady() 221 rv.setLayoutManager(layoutManager); in detachAttachGetReady() 228 layoutManager.expectLayouts(1); in detachAttachGetReady() 243 layoutManager.waitForLayout(2); in detachAttachGetReady() 245 layoutManager.assertNoLayout("nothing is invalid, layout should not happen", 2); in detachAttachGetReady() 467 TestLayoutManager layoutManager = new TestLayoutManager() { in boundingBoxRotatedWithDecorOffsets() local 487 recyclerView.setLayoutManager(layoutManager); in boundingBoxRotatedWithDecorOffsets() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
D | RvCompatListActivity.java | 34 RecyclerView.LayoutManager layoutManager; field in RvCompatListActivity.RecyclerViewFragment 43 recyclerView.setLayoutManager(layoutManager); in onCreateView() 56 fragment.layoutManager = createLayoutManager(this); in onCreate()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/ |
D | RecyclerViewUtil.java | 76 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/ |
D | PrintPreviewController.java | 363 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/ |
D | ItemTouchHelper.java | 1912 final RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); in onMoved() local 1913 if (layoutManager instanceof ViewDropHandler) { in onMoved() 1914 ((ViewDropHandler) layoutManager).prepareForDrop(viewHolder.itemView, in onMoved() 1920 if (layoutManager.canScrollHorizontally()) { in onMoved() 1921 final int minLeft = layoutManager.getDecoratedLeft(target.itemView); in onMoved() 1925 final int maxRight = layoutManager.getDecoratedRight(target.itemView); in onMoved() 1931 if (layoutManager.canScrollVertically()) { in onMoved() 1932 final int minTop = layoutManager.getDecoratedTop(target.itemView); in onMoved() 1936 final int maxBottom = layoutManager.getDecoratedBottom(target.itemView); in onMoved()
|
/frameworks/support/v7/recyclerview/ |
D | proguard-rules.pro | 15 # When layoutManager xml attribute is used, RecyclerView inflates
|