Searched refs:orientationHelper (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/ |
D | DefaultScrollBar.java | 273 OrientationHelper orientationHelper = in pageUp() local 275 int screenSize = orientationHelper.getTotalSpace(); in pageUp() 287 if (orientationHelper.getDecoratedEnd(child) < screenSize) { in pageUp() 289 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp() 290 } else if (-screenSize < orientationHelper.getDecoratedStart(child) in pageUp() 291 && orientationHelper.getDecoratedStart(child) < 0) { in pageUp() 294 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp() 319 OrientationHelper orientationHelper = in pageDown() local 321 int screenSize = orientationHelper.getTotalSpace(); in pageDown() 328 scrollDistance = orientationHelper.getDecoratedStart(lastChild); in pageDown() [all …]
|
D | CarUiSnapHelper.java | 110 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in findSnapView() local 115 return isValidSnapView(firstChild, orientationHelper) ? firstChild : null; in findSnapView() 129 && orientationHelper.getDecoratedStart(firstChild) < 0 in findSnapView() 131 && orientationHelper.getDecoratedEnd(firstChild) > ( in findSnapView() 145 ? getPercentageVisible(lastVisibleChild, orientationHelper) : 0; in findSnapView() 154 int startOffset = orientationHelper.getDecoratedStart(child); in findSnapView() 157 float percentageVisible = getPercentageVisible(child, orientationHelper); in findSnapView() 181 return isValidSnapView(childToReturn, orientationHelper) ? childToReturn : null; in findSnapView() 320 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in calculateScrollDistance() local 323 float percentageVisible = getPercentageVisible(lastChild, orientationHelper); in calculateScrollDistance() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/ |
D | PagedSnapHelper.java | 74 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in findSnapView() local 77 <= orientationHelper.getTotalSpace() in findSnapView() 214 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); in calculateScrollDistance() local 216 float percentageVisible = getPercentageVisible(lastChild, orientationHelper); in calculateScrollDistance() 242 OrientationHelper orientationHelper = layoutManager.canScrollVertically() in isAtStart() local 247 return orientationHelper.getDecoratedStart(firstChild) in isAtStart() 248 >= orientationHelper.getStartAfterPadding() in isAtStart() 259 OrientationHelper orientationHelper = layoutManager.canScrollVertically() in isAtEnd() local 269 <= orientationHelper.getEndAfterPadding(); in isAtEnd()
|
/packages/apps/Car/libs/car-ui-lib/tests/unit/src/com/android/car/ui/recyclerview/ |
D | CarUiRecyclerViewTest.java | 487 OrientationHelper orientationHelper = in testPageDownScrollsOverLongItem() local 502 orientationHelper.getDecoratedStart(longItem), in testPageDownScrollsOverLongItem() 508 assertThat(orientationHelper.getDecoratedStart(longItem), is(equalTo(0))); in testPageDownScrollsOverLongItem() 509 assertThat(orientationHelper.getDecoratedEnd(longItem), in testPageDownScrollsOverLongItem() 513 while (orientationHelper.getDecoratedEnd(longItem) > carUiRecyclerView.getBottom()) { in testPageDownScrollsOverLongItem() 518 assertThat(orientationHelper.getDecoratedEnd(longItem), in testPageDownScrollsOverLongItem() 524 orientationHelper.getDecoratedStart(longItem), in testPageDownScrollsOverLongItem() 550 OrientationHelper orientationHelper = in testPageUpScrollsOverLongItem() local 559 orientationHelper.getDecoratedEnd(longItem), in testPageUpScrollsOverLongItem() 565 assertThat(orientationHelper.getDecoratedEnd(longItem), in testPageUpScrollsOverLongItem() [all …]
|