Home
last modified time | relevance | path

Searched refs:scrollDistance (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DLinearLayoutManagerSnappingTest.java76 int scrollDistance = (getViewDimension(view) / 2) - 1; in snapOnScrollSameViewEdge() local
78 ? -scrollDistance : scrollDistance; in snapOnScrollSameViewEdge()
96 int scrollDistance = (getViewDimension(view) / 2) - 1; in snapOnScrollSameView() local
97 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollSameView()
118 int scrollDistance = (getViewDimension(view) / 2) + 1; in snapOnScrollNextView() local
119 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollNextView()
190 int scrollDistance = distFromCenter(view) / 2; in setupSnapHelper() local
191 if (scrollDistance == 0) { in setupSnapHelper()
195 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in setupSnapHelper()
DStaggeredGridLayoutManagerSnappingTest.java88 int scrollDistance = mLayoutManager.canScrollHorizontally() ? 52 : 52; in snapOnScrollSameViewFixedSize() local
89 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollSameViewFixedSize()
112 int scrollDistance = findMinSafeScrollDistance(); in snapOnScrollSameView() local
113 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollSameView()
134 int scrollDistance = getViewDimension(view) + 1; in snapOnScrollNextItem() local
135 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollNextItem()
225 int scrollDistance = distFromCenter(view) / 2; in setupSnapHelper() local
226 if (scrollDistance == 0) { in setupSnapHelper()
230 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in setupSnapHelper()
DGridLayoutManagerSnappingTest.java72 int scrollDistance = (getViewDimension(view) / 2) - 1; in snapOnScrollSameView() local
73 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollSameView()
94 int scrollDistance = getViewDimension(view) + 1; in snapOnScrollNextItem() local
95 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollNextItem()
171 int scrollDistance = distFromCenter(view) / 2; in setupSnapHelper() local
172 if (scrollDistance == 0) { in setupSnapHelper()
176 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in setupSnapHelper()
DPagerSnapHelperTest.java77 int scrollDistance = (getViewDimension(view) / 2) - 1; in snapOnScrollSameView() local
78 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollSameView()
103 int scrollDistance = (getViewDimension(view) / 2) + 1; in snapOnScrollNextView() local
104 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in snapOnScrollNextView()
220 int scrollDistance = distFromCenter(view) / 2; in setupSnapHelper() local
221 if (scrollDistance == 0) { in setupSnapHelper()
225 int scrollDist = mReverseScroll ? -scrollDistance : scrollDistance; in setupSnapHelper()
/frameworks/support/car/src/main/java/androidx/car/widget/
DPagedListView.java835 int scrollDistance = screenSize; in pageUp() local
848 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp()
853 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp()
861 mRecyclerView.smoothScrollBy(0, -scrollDistance); in pageUp()
880 int scrollDistance = screenSize; in pageDown() local
886 scrollDistance = orientationHelper.getDecoratedStart(lastChild); in pageDown()
887 if (scrollDistance < 0) { in pageDown()
891 scrollDistance = screenSize; in pageDown()
906 scrollDistance = orientationHelper.getDecoratedStart(child); in pageDown()
911 scrollDistance = orientationHelper.getDecoratedEnd(child) - screenSize; in pageDown()
[all …]
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/
DNestedScrollViewTest.java258 final int scrollDistance = 150; in smoothScrollBy_scrollsEntireDistanceIncludingMargins() local
273 mNestedScrollView.smoothScrollBy(0, scrollDistance); in smoothScrollBy_scrollsEntireDistanceIncludingMargins()