Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/ui/
DModeTransitionView.java153 public void setScrollDistance(float scrollDistance) { in setScrollDistance() argument
156 scrollDistance = Math.min(scrollDistance, mHeight); in setScrollDistance()
157 scrollDistance = Math.max(scrollDistance, 0); in setScrollDistance()
159 scrollDistance = Math.min(scrollDistance, 0); in setScrollDistance()
160 scrollDistance = Math.max(scrollDistance, -mHeight); in setScrollDistance()
162 mScrollDistance = scrollDistance; in setScrollDistance()
328 private void snapShadeTo(int scrollDistance, int alpha) { in snapShadeTo() argument
329 snapShadeTo(scrollDistance, alpha, true); in snapShadeTo()
340 private void snapShadeTo(final int scrollDistance, final int alpha, in snapShadeTo() argument
344 scrollDistance); in snapShadeTo()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DDefaultScrollBar.java341 private int estimateNextPositionScrollUp(int currentPos, int scrollDistance, in estimateNextPositionScrollUp() argument
349 orientationHelper, -scrollDistance); in estimateNextPositionScrollUp()
352 if ((distance + mChildHeightByAdapterPosition.get(i)) > Math.abs(scrollDistance)) { in estimateNextPositionScrollUp()
386 int scrollDistance = orientationHelper.getTotalSpace(); in pageUp() local
392 scrollDistance - Math.max(0, orientationHelper.getStartAfterPadding() in pageUp()
396 smoothScrollBy(0, -scrollDistance); in pageUp()
437 int scrollDistance = screenSize; in pageDown() local
450 scrollDistance = Math.min(screenSize, in pageDown()
473 scrollDistance = orientationHelper.getDecoratedEnd(child) in pageDown()
476 scrollDistance = orientationHelper.getDecoratedStart(child) in pageDown()
[all …]
DCarUiSnapHelper.java318 int scrollDistance) { in estimateNextPositionDiffForScrollDistance() argument
323 return Math.round(scrollDistance / distancePerChild); in estimateNextPositionDiffForScrollDistance()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DWidgets.java172 int scrollDistance = 0; in findTestAppWidgetsTableContainer() local
181 scrollDistance = Math.max(scrollDistance, header.getVisibleBounds().height()); in findTestAppWidgetsTableContainer()
207 log("Finding test widget package - scroll with distance: " + scrollDistance); in findTestAppWidgetsTableContainer()
208 mLauncher.scrollDownByDistance(fullWidgetsPicker, scrollDistance); in findTestAppWidgetsTableContainer()