Searched refs:orientationHelper (Results 1 – 7 of 7) sorted by relevance
/frameworks/support/car/src/main/java/androidx/car/widget/ |
D | PagedSnapHelper.java | 106 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in findSnapView() local 111 return isValidSnapView(firstChild, orientationHelper) ? firstChild : null; in findSnapView() 121 && orientationHelper.getDecoratedStart(firstChild) < 0 in findSnapView() 123 && orientationHelper.getDecoratedEnd(firstChild) > ( in findSnapView() 136 ? getPercentageVisible(lastVisibleChild, orientationHelper) : 0; in findSnapView() 145 int startOffset = orientationHelper.getDecoratedStart(child); in findSnapView() 148 float percentageVisible = getPercentageVisible(child, orientationHelper); in findSnapView() 172 return isValidSnapView(childToReturn, orientationHelper) ? childToReturn : null; in findSnapView() 268 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in calculateScrollDistance() local 270 float percentageVisible = getPercentageVisible(lastChild, orientationHelper); in calculateScrollDistance() [all …]
|
D | PagedListView.java | 831 OrientationHelper orientationHelper = in pageUp() local 846 if (orientationHelper.getDecoratedEnd(child) < screenSize) { in pageUp() 848 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp() 849 } else if (-screenSize < orientationHelper.getDecoratedStart(child) in pageUp() 850 && orientationHelper.getDecoratedStart(child) < 0) { in pageUp() 853 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp() 877 OrientationHelper orientationHelper = in pageDown() local 886 scrollDistance = orientationHelper.getDecoratedStart(lastChild); in pageDown() 904 if (orientationHelper.getDecoratedStart(child) > 0) { in pageDown() 906 scrollDistance = orientationHelper.getDecoratedStart(child); in pageDown() [all …]
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
D | LinearLayoutManagerBaseConfigSetTest.java | 74 OrientationHelper orientationHelper = OrientationHelper in scrollToPositionWithOffsetTest() local 94 orientationHelper.getEndAfterPadding() - orientationHelper in scrollToPositionWithOffsetTest() 96 : orientationHelper.getDecoratedStart(child) - orientationHelper in scrollToPositionWithOffsetTest() 104 orientationHelper.getEndAfterPadding() - orientationHelper in scrollToPositionWithOffsetTest() 106 : orientationHelper.getDecoratedStart(child) - orientationHelper in scrollToPositionWithOffsetTest() 123 * orientationHelper.getDecoratedMeasurement(mLayoutManager.getChildAt(0)) / 3; in scrollToPositionWithOffsetTest() 138 orientationHelper.getEndAfterPadding() - offset, in scrollToPositionWithOffsetTest() 139 orientationHelper.getDecoratedEnd(child) in scrollToPositionWithOffsetTest() 146 orientationHelper.getStartAfterPadding() + offset, in scrollToPositionWithOffsetTest() 147 orientationHelper.getDecoratedStart(child) in scrollToPositionWithOffsetTest()
|
D | StaggeredGridLayoutManagerBaseConfigSetTest.java | 488 OrientationHelper orientationHelper = OrientationHelper in scrollToPositionWithOffsetTest() local 503 orientationHelper.getEndAfterPadding() - orientationHelper in scrollToPositionWithOffsetTest() 505 : orientationHelper.getDecoratedStart(child) - orientationHelper in scrollToPositionWithOffsetTest() 512 orientationHelper.getEndAfterPadding() - orientationHelper in scrollToPositionWithOffsetTest() 514 : orientationHelper.getDecoratedStart(child) - orientationHelper in scrollToPositionWithOffsetTest() 528 * orientationHelper.getDecoratedMeasurement(mLayoutManager.getChildAt(0)) / 3; in scrollToPositionWithOffsetTest() 543 orientationHelper.getEndAfterPadding() - offset, in scrollToPositionWithOffsetTest() 544 orientationHelper.getDecoratedEnd(child) in scrollToPositionWithOffsetTest() 550 orientationHelper.getStartAfterPadding() + offset, in scrollToPositionWithOffsetTest() 551 orientationHelper.getDecoratedStart(child) in scrollToPositionWithOffsetTest() [all …]
|
D | ScrollToPositionWithAutoMeasure.java | 64 final OrientationHelper orientationHelper) throws Throwable { in test() argument 84 int size = orientationHelper.getDecoratedMeasurement( in test()
|
D | BaseStaggeredGridLayoutManagerTest.java | 222 OrientationHelper orientationHelper = OrientationHelper in assertViewPositions() local 231 orientationHelper.getDecoratedEnd(prev) <= orientationHelper in assertViewPositions()
|
/frameworks/support/car/src/androidTest/java/androidx/car/widget/ |
D | PagedListViewTest.java | 569 OrientationHelper orientationHelper = OrientationHelper.createVerticalHelper( in testPageDownScrollsOverLongItem() local 583 assertThat(orientationHelper.getDecoratedStart(longItem), in testPageDownScrollsOverLongItem() 589 assertThat(orientationHelper.getDecoratedStart(longItem), is(equalTo(0))); in testPageDownScrollsOverLongItem() 590 assertThat(orientationHelper.getDecoratedEnd(longItem), in testPageDownScrollsOverLongItem() 596 && orientationHelper.getDecoratedEnd(longItem) in testPageDownScrollsOverLongItem() 602 assertThat(orientationHelper.getDecoratedEnd(longItem), in testPageDownScrollsOverLongItem() 607 assertThat(orientationHelper.getDecoratedStart(longItem), in testPageDownScrollsOverLongItem() 632 OrientationHelper orientationHelper = OrientationHelper.createVerticalHelper( in testPageUpScrollsOverLongItem() local 640 assertThat(orientationHelper.getDecoratedEnd(longItem), in testPageUpScrollsOverLongItem() 646 assertThat(orientationHelper.getDecoratedEnd(longItem), in testPageUpScrollsOverLongItem() [all …]
|