Home
last modified time | relevance | path

Searched refs:newScrollX (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java884 int newScrollX = oldScrollX + delta; in onGenericMotionEvent() local
892 if (newScrollX < 0) { in onGenericMotionEvent()
894 mEdgeGlowLeft.onPullDistance(-(float) newScrollX / getWidth(), in onGenericMotionEvent()
900 newScrollX = 0; in onGenericMotionEvent()
901 } else if (newScrollX > range) { in onGenericMotionEvent()
904 (float) (newScrollX - range) / getWidth(), 0.5f); in onGenericMotionEvent()
909 newScrollX = range; in onGenericMotionEvent()
911 if (newScrollX != oldScrollX) { in onGenericMotionEvent()
912 super.scrollTo(newScrollX, mScrollY); in onGenericMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaCarouselScrollHandler.kt299 val newScrollX = scrollView.scrollX + dx in onTouch() constant
302 mainExecutor.execute { scrollView.smoothScrollTo(newScrollX, scrollView.scrollY) } in onTouch()
/frameworks/base/core/java/android/view/
DView.java29614 int newScrollX = scrollX + deltaX; in overScrollBy() local
29631 if (newScrollX > right) { in overScrollBy()
29632 newScrollX = right; in overScrollBy()
29634 } else if (newScrollX < left) { in overScrollBy()
29635 newScrollX = left; in overScrollBy()
29648 onOverScrolled(newScrollX, newScrollY, clampedX, clampedY); in overScrollBy()