Searched refs:maxScroll (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/java/android/view/ |
D | RoundScrollbarRenderer.java | 81 float maxScroll = mParent.computeVerticalScrollRange(); in drawRoundScrollbars() local 91 } else if (maxScroll <= scrollExtent) { in drawRoundScrollbars() 96 if (Math.abs(maxScroll - mPreviousMaxScroll) > RESIZING_THRESHOLD_PX in drawRoundScrollbars() 98 mMaxScrollDiff += maxScroll - mPreviousMaxScroll; in drawRoundScrollbars() 102 mPreviousMaxScroll = maxScroll; in drawRoundScrollbars() 110 maxScroll -= mMaxScrollDiff; in drawRoundScrollbars() 127 float sweepAngle = (linearThumbLength / maxScroll) * SCROLLBAR_ANGLE_RANGE; in drawRoundScrollbars() 131 / (maxScroll - linearThumbLength) - SCROLLBAR_ANGLE_RANGE / 2f; in drawRoundScrollbars()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | HorizontalScrollViewFunctionalTest.java | 86 int maxScroll = childWidth - mHorizontalScrollView.getWidth(); in testScrollAfterFlingRight() local 87 mActivityRule.runOnUiThread(() -> mHorizontalScrollView.scrollTo(maxScroll - 100, 0)); in testScrollAfterFlingRight() 92 assertEquals(maxScroll, mHorizontalScrollView.getScrollX()); in testScrollAfterFlingRight() 117 int maxScroll = mMyHorizontalScrollView.getChildAt(0).getWidth() in hasVelocityInSmoothScrollBy() local 120 mMyHorizontalScrollView.smoothScrollTo(maxScroll, 0); in hasVelocityInSmoothScrollBy()
|
D | ScrollViewFunctionalTest.java | 86 int maxScroll = childHeight - mScrollView.getHeight(); in testScrollAfterFlingBottom() local 87 mActivityRule.runOnUiThread(() -> mScrollView.scrollTo(0, maxScroll - 100)); in testScrollAfterFlingBottom() 92 assertEquals(maxScroll, mScrollView.getScrollY()); in testScrollAfterFlingBottom() 117 int maxScroll = mMyScrollView.getChildAt(0).getHeight() - mMyScrollView.getHeight(); in hasVelocityInSmoothScrollBy() local 119 mMyScrollView.smoothScrollTo(0, maxScroll); in hasVelocityInSmoothScrollBy()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
D | ButtonsWithTallTextViewInBetweenTest.java | 121 final int maxScroll = getActivity().getLinearLayout().getHeight() in testPanBottomButtonOffScreenLosesFocus() local 124 maxScroll, in testPanBottomButtonOffScreenLosesFocus() 131 maxScroll - mScrollView.getMaxScrollAmount(), in testPanBottomButtonOffScreenLosesFocus()
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 1798 int maxScroll = Math.max(0, right - width); in fling() local 1807 } else if (mScrollX == maxScroll && !mEdgeGlowRight.isFinished()) { in fling() 1818 maxScroll, 0, 0, width / 2, 0); in fling()
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 2112 final int maxScroll = getMaxDragScroll(recyclerView); in interpolateOutOfBoundsScroll() local 2117 final int cappedScroll = (int) (direction * maxScroll in interpolateOutOfBoundsScroll()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearLayoutManager.java | 1911 final int maxScroll = (int) (MAX_SCROLL_FACTOR * mOrientationHelper.getTotalSpace()); in onFocusSearchFailed() local 1912 updateLayoutState(layoutDir, maxScroll, false, state); in onFocusSearchFailed()
|