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/src/com/android/car/ui/recyclerview/
DDefaultScrollBar.java394 int scrollDistance = screenSize; in pageUp() local
407 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp()
412 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp()
420 mSnapHelper.smoothScrollBy(-scrollDistance); in pageUp()
440 int scrollDistance = screenSize; in pageDown() local
446 scrollDistance = orientationHelper.getDecoratedStart(lastChild); in pageDown()
447 if (scrollDistance <= 0) { in pageDown()
452 scrollDistance = screenSize; in pageDown()
467 scrollDistance = orientationHelper.getDecoratedStart(child); in pageDown()
472 scrollDistance = orientationHelper.getDecoratedEnd(child) - screenSize; in pageDown()
[all …]
DCarUiSnapHelper.java84 public void smoothScrollBy(int scrollDistance) { in smoothScrollBy() argument
90 int position = findTargetSnapPosition(layoutManager, scrollDistance); in smoothScrollBy()
92 mRecyclerView.smoothScrollBy(0, scrollDistance); in smoothScrollBy()
113 int scrollDistance) { in findTargetSnapPosition() argument
149 getHorizontalHelper(layoutManager), scrollDistance); in findTargetSnapPosition()
158 getVerticalHelper(layoutManager), scrollDistance); in findTargetSnapPosition()
527 int scrollDistance) { in estimateNextPositionDiffForFling() argument
528 int[] distances = new int[]{scrollDistance, scrollDistance}; in estimateNextPositionDiffForFling()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DCarScrollBar.java554 int scrollDistance = screenSize; in pageUp() local
567 scrollDistance = screenSize - orientationHelper.getDecoratedEnd(child); in pageUp()
572 scrollDistance = Math.abs(orientationHelper.getDecoratedStart(child)); in pageUp()
580 getRecyclerView().smoothScrollBy(0, -scrollDistance); in pageUp()
600 int scrollDistance = screenSize; in pageDown() local
606 scrollDistance = orientationHelper.getDecoratedStart(lastChild); in pageDown()
607 if (scrollDistance < 0) { in pageDown()
611 scrollDistance = screenSize; in pageDown()
626 scrollDistance = orientationHelper.getDecoratedStart(child); in pageDown()
631 scrollDistance = orientationHelper.getDecoratedEnd(child) - screenSize; in pageDown()
[all …]