Home
last modified time | relevance | path

Searched refs:getScrollY (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DButtonsWithTallTextViewInBetweenTest.java82 mScrollView.getScrollY()); in testPanTopButtonOffScreenLosesFocus()
85 getBottomWithinScrollView(mTopButton) < mScrollView.getScrollY()); in testPanTopButtonOffScreenLosesFocus()
95 final int screenBottom = mScrollView.getScrollY() + mScrollView.getHeight(); in testScrollDownToBottomButton()
107 mScrollView.getScrollY()); in testScrollDownToBottomButton()
125 mScrollView.getScrollY()); in testPanBottomButtonOffScreenLosesFocus()
132 mScrollView.getScrollY()); in testPanBottomButtonOffScreenLosesFocus()
135 … getTopWithinScrollView(mBottomButton) > mScrollView.getScrollY() + mScrollView.getHeight()); in testPanBottomButtonOffScreenLosesFocus()
DShortButtonsTest.java69 mScrollView.getScrollY()); in testScrollDownToBottomThroughButtons()
98 mScrollView.getScrollY()); in testScrollFromBottomToTopThroughButtons()
105 return mTempRect.bottom >= mScrollView.getScrollY() in isButtonOnScreen()
106 && mTempRect.top <= (mScrollView.getScrollY() + mScrollView.getHeight()); in isButtonOnScreen()
DMultiPageTextWithPaddingTest.java68 .getPaddingBottom()), mScrollView.getScrollY()); in testScrollDownToBottom()
/frameworks/base/core/java/com/android/internal/view/
DWebViewCaptureHelper.java52 mOriginScrollY = view.getScrollY(); in onPrepareForStart()
61 int scrollDelta = view.getScrollY() - mOriginScrollY; in onScrollRequested()
79 int upLimit = min(0, -view.getScrollY()); in onScrollRequested()
81 int downLimit = max(0, (contentHeightPx - view.getHeight()) - view.getScrollY()); in onScrollRequested()
87 scrollDelta = view.getScrollY() - mOriginScrollY; in onScrollRequested()
DScrollViewCaptureHelper.java55 mStartScrollY = view.getScrollY(); in onPrepareForStart()
101 int scrollDelta = view.getScrollY() - mStartScrollY; in onScrollRequested()
135 view.getScrollY() - contentView.getTop()); in onScrollRequested()
152 scrollDelta = view.getScrollY() - mStartScrollY; in onScrollRequested()
171 contentView.getTop() - view.getScrollY()); in onScrollRequested()
DScrollCaptureInternal.java117 if (view.getScrollY() != 0) { in detectScrollingType()
140 if (view.getScrollY() == 1) { in detectScrollingType()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DButtonAboveTallInternalSelectionViewTest.java40 getActivity().getScrollView().getScrollY()); in testPreconditions()
46 getActivity().getScrollView().getScrollY()); in testPreconditions()
62 getActivity().getScrollView().getScrollY()); in testMovingFocusDownToItemTallerThanScreenStillOnScreen()
DRequestRectangleVisibleWithInternalScroll.java68 rect.offset(0, mTextBlob.getScrollY()); in onCreate()
DRequestRectangleVisibleWithInternalScrollTest.java61 assertEquals(getActivity().getScrollYofBlob(), mTextBlob.getScrollY()); in testPreconditions()
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java432 return widget.getLayout().getLineForVertical(widget.getScrollY()); in getTopLine()
436 return widget.getLayout().getLineForVertical(widget.getScrollY() + getInnerHeight(widget)); in getBottomLine()
500 widget.scrollTo(scrollX, widget.getScrollY()); in scrollLeft()
521 widget.scrollTo(scrollX, widget.getScrollY()); in scrollRight()
539 final int top = widget.getScrollY(); in scrollUp()
567 final int bottom = widget.getScrollY() + innerHeight; in scrollDown()
596 final int top = widget.getScrollY() - getInnerHeight(widget); in scrollPageUp()
617 final int bottom = widget.getScrollY() + innerHeight + innerHeight; in scrollPageDown()
678 widget.scrollTo(minScrollX, widget.getScrollY()); in scrollLineStart()
697 widget.scrollTo(maxScrollX, widget.getScrollY()); in scrollLineEnd()
DTouch.java101 widget.getScrollX(), widget.getScrollY()), in onTouchEvent()
154 int ny = widget.getScrollY() + (int) dy; in onTouchEvent()
163 int oldY = widget.getScrollY(); in onTouchEvent()
168 if (oldX != widget.getScrollX() || oldY != widget.getScrollY()) { in onTouchEvent()
DLinkMovementMethod.java110 int areaTop = widget.getScrollY(); in action()
221 y += widget.getScrollY(); in onTouchEvent()
/frameworks/base/core/tests/coretests/src/android/widget/
DScrollViewFunctionalTest.java78 assertEquals(0, mScrollView.getScrollY()); in testScrollAfterFlingTop()
92 assertEquals(maxScroll, mScrollView.getScrollY()); in testScrollAfterFlingBottom()
121 PollingCheck.waitFor(() -> mMyScrollView.getScrollY() != 0); in hasVelocityInSmoothScrollBy()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DStickyHeaderScrollView.java87 final int drawTop = drawTarget.getTop() - getScrollY(); in updateStickyHeaderPosition()
90 drawTarget.setTranslationY(getScrollY() - drawOffset); in updateStickyHeaderPosition()
DBottomScrollView.java101 if (getScrollY() >= scrollThreshold) { in checkScroll()
/frameworks/base/core/java/android/widget/
DScrollView.java660 if (getScrollY() == 0 && !canScrollVertically(1)) { in onInterceptTouchEvent()
1248 mTempRect.top = getScrollY() + height; in pageScroll()
1257 mTempRect.top = getScrollY() - height; in pageScroll()
1314 int containerTop = getScrollY(); in scrollAndFocus()
1361 if (direction == View.FOCUS_UP && getScrollY() < scrollDelta) { in arrowScroll()
1362 scrollDelta = getScrollY(); in arrowScroll()
1366 int screenBottom = getScrollY() + getHeight() - mPaddingBottom; in arrowScroll()
1409 return (mTempRect.bottom + delta) >= getScrollY() in isWithinDeltaOfScreen()
1410 && (mTempRect.top - delta) <= (getScrollY() + height); in isWithinDeltaOfScreen()
1604 int scrollY = getScrollY(); in consumeFlingInStretch()
[all …]
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DPositionListenerActivity.java124 canvas.translate(0, parent.getScrollY()); in onDraw()
126 canvas.translate(0, -parent.getScrollY()); in onDraw()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java58 this.scrollY = node.getScrollY(); in TextEntry()
169 top -= root.getScrollY();
170 matrix.preTranslate(-root.getScrollX(), -root.getScrollY());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutTest.java782 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_shadeNotClosing_scrollYChanges()
789 assertEquals(1, mAmbientState.getScrollY()); in testSetOwnScrollY_shadeNotClosing_scrollYChanges()
793 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_shadeNotClosing_scrollYChanges()
800 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_shadeClosing_scrollYDoesNotChange()
807 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_shadeClosing_scrollYDoesNotChange()
812 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_shadeClosing_scrollYDoesNotChange()
819 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_clearAllInProgress_scrollYDoesNotChange()
826 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_clearAllInProgress_scrollYDoesNotChange()
831 assertEquals(0, mAmbientState.getScrollY()); in testSetOwnScrollY_clearAllInProgress_scrollYDoesNotChange()
845 assertEquals(mAmbientState.getScrollY(), 0); in onShadeFlingClosingEnd_scrollYShouldBeSetToZero()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/
DScrollViewScrollHandlingDelegateTest.java78 assertThat(scrollView.getScrollY()).isEqualTo(500); in testPageScrollDown()
/frameworks/base/core/java/android/transition/
DChangeScroll.java65 transitionValues.values.put(PROPNAME_SCROLL_Y, transitionValues.view.getScrollY()); in captureValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DObservableScrollView.java52 return getScrollY() == getMaxScrollY(); in isScrolledToBottom()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java380 } else if (event.getScrollX() != -1 && event.getScrollY() != -1) {
384 foundEnd = event.getScrollY() == 0 ||
385 event.getScrollY() == event.getMaxScrollY();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DStackScrollAlgorithm.java336 : ambientState.getStackY() - ambientState.getScrollY(); in updateClipping()
436 state.scrollY = ambientState.getScrollY(); in initAlgorithmState()
472 float currentY = -ambientState.getScrollY(); in initAlgorithmState()
912 if (!mIsExpanded && isTopEntry && ambientState.getScrollY() > 0) { in updateHeadsUpStates()
914 childState.getYTranslation() - ambientState.getScrollY()); in updateHeadsUpStates()
/frameworks/base/core/java/com/android/internal/policy/
DWearGestureInterceptionDetector.java184 final int scrollY = v.getScrollY();

123