Home
last modified time | relevance | path

Searched refs:scrollY (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/widget/
DEditTextCursorAnchorInfoTest.java262 int scrollY = 2 * LINE_HEIGHT; in testVisibleLineBounds_scrolled_cutTopLines() local
264 /* scrollY= */ scrollY); in testVisibleLineBounds_scrolled_cutTopLines()
271 expectedLineBounds.forEach(rectF -> rectF.offset(0, -scrollY)); in testVisibleLineBounds_scrolled_cutTopLines()
281 int scrollY = 2 * LINE_HEIGHT; in testVisibleLineBounds_scrolled_cutTopAndBottomLines() local
283 /* scrollY= */ scrollY); in testVisibleLineBounds_scrolled_cutTopAndBottomLines()
290 expectedLineBounds.forEach(rectF -> rectF.offset(0, -scrollY)); in testVisibleLineBounds_scrolled_cutTopAndBottomLines()
298 int scrollY = 2 * LINE_HEIGHT + LINE_HEIGHT / 2; in testVisibleLineBounds_scrolled_partiallyVisibleLines() local
300 /* scrollY= */ scrollY); in testVisibleLineBounds_scrolled_partiallyVisibleLines()
307 expectedLineBounds.forEach(rectF -> rectF.offset(0f, -scrollY)); in testVisibleLineBounds_scrolled_partiallyVisibleLines()
358 int scrollY = LINE_HEIGHT; in testVisibleLineBounds_withCompoundDrawable_scrolled() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DObservableScrollView.java119 protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, in overScrollBy() argument
122 mLastOverscrollAmount = Math.max(0, scrollY + deltaY - getMaxScrollY()); in overScrollBy()
123 return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
139 protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { in onOverScrolled() argument
140 super.onOverScrolled(scrollX, scrollY, clampedX, clampedY); in onOverScrolled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DAmbientStateTest.kt250 sut.scrollY = 0 in <lambda>()
252 sut.scrollY = 1 in <lambda>()
254 assertThat(sut.scrollY).isEqualTo(1) in <lambda>()
259 sut.scrollY = 0 in <lambda>()
261 sut.scrollY = -1 in <lambda>()
263 assertThat(sut.scrollY).isEqualTo(0) in <lambda>()
/frameworks/base/core/java/com/android/internal/policy/
DWearGestureInterceptionDetector.java184 final int scrollY = v.getScrollY();
191 || y + scrollY < child.getTop()
192 || y + scrollY >= child.getBottom()) {
203 /* y= */ y + scrollY - child.getTop())) {
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextHelper.kt49 view.scrollY + view.extendedPaddingTop, in applyShadows()
51 view.scrollY + view.height in applyShadows()
/frameworks/base/core/java/android/widget/
DScrollView.java581 final int scrollY = mScrollY; in inChild() local
583 return !(y < child.getTop() - scrollY in inChild()
584 || y >= child.getBottom() - scrollY in inChild()
1050 protected void onOverScrolled(int scrollX, int scrollY, in onOverScrolled() argument
1057 mScrollY = scrollY; in onOverScrolled()
1064 super.scrollTo(scrollX, scrollY); in onOverScrolled()
1444 final int scrollY = mScrollY; in smoothScrollBy() local
1445 dy = Math.max(0, Math.min(scrollY + dy, maxY)) - scrollY; in smoothScrollBy()
1447 mScroller.startScroll(mScrollX, scrollY, 0, dy); in smoothScrollBy()
1485 final int scrollY = mScrollY; in computeVerticalScrollRange() local
[all …]
DCompoundButton.java564 final int scrollY = mScrollY; in onDraw() local
565 if (scrollX == 0 && scrollY == 0) { in onDraw()
568 canvas.translate(scrollX, scrollY); in onDraw()
570 canvas.translate(-scrollX, -scrollY); in onDraw()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java43 final int scrollY; field in AssistVisualizer.TextEntry
58 this.scrollY = node.getScrollY(); in TextEntry()
199 canvas.drawLine(0, te.lineBaselines[j] - te.scrollY,
200 te.bounds.right - te.bounds.left, te.lineBaselines[j] - te.scrollY,
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaScrollView.kt121 scrollY: Int, in overScrollBy()
136 scrollY, in overScrollBy()
DMediaCarouselScrollHandler.kt169 scrollY: Int, in onTouchEvent()
302 mainExecutor.execute { scrollView.smoothScrollTo(newScrollX, scrollView.scrollY) } in onTouch()
448 mainExecutor.execute { scrollView.smoothScrollTo(view.left, scrollView.scrollY) } in onFling()
585 { scrollView.smoothScrollTo(view.left, scrollView.scrollY) }, in scrollToPlayer()
/frameworks/base/core/java/com/android/internal/view/
DRootViewSurfaceTaker.java30 void onRootViewScrollYChanged(int scrollY); in onRootViewScrollYChanged() argument
DScrollCaptureViewSupport.java102 public static Rect transformFromRequestToContainer(int scrollY, Rect requestBounds, in transformFromRequestToContainer() argument
105 requestedContainerBounds.offset(0, -scrollY); in transformFromRequestToContainer()
119 public static Rect transformFromContainerToRequest(int scrollY, Rect requestBounds, in transformFromContainerToRequest() argument
123 requestRect.offset(0, scrollY); in transformFromContainerToRequest()
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/
DViewCapture.java529 public int scrollX, scrollY;
552 out.scrollY = this.scrollY;
586 .setScrollY(scrollY)
629 out.scrollY = view.getScrollY();
/frameworks/base/core/java/android/text/method/
DTouch.java206 public DragState(float x, float y, int scrollX, int scrollY) { in DragState() argument
210 mScrollY = scrollY; in DragState()
/frameworks/base/core/java/android/view/
DGestureDetector.java698 final float scrollY = mLastFocusY - focusY; in onTouchEvent() local
742 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
754 } else if ((Math.abs(scrollX) >= 1) || (Math.abs(scrollY) >= 1)) { in onTouchEvent()
756 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
DViewStructure.java128 public abstract void setDimens(int left, int top, int scrollX, int scrollY, int width, in setDimens() argument
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQS.java174 void onQsPanelScrollChanged(int scrollY); in onQsPanelScrollChanged() argument
/frameworks/base/core/java/android/webkit/
DWebView.java2430 public void super_scrollTo(int scrollX, int scrollY) { in super_scrollTo() argument
2431 WebView.super.scrollTo(scrollX, scrollY); in super_scrollTo()
2484 int scrollX, int scrollY, in overScrollBy() argument
2488 WebView.this.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
2532 public void setScrollYRaw(int scrollY) { in setScrollYRaw() argument
2533 WebView.this.mScrollY = scrollY; in setScrollYRaw()
2930 protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { in onOverScrolled() argument
2931 mProvider.getViewDelegate().onOverScrolled(scrollX, scrollY, clampedX, clampedY); in onOverScrolled()
/frameworks/base/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/
DActionBarShadowController.java111 public void onScrollChange(View view, int scrollX, int scrollY, int oldScrollX, in onScrollChange() argument
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java715 int scrollY = 0; in scrollIfNecessary() local
735 scrollY = topDiff; in scrollIfNecessary()
740 scrollY = bottomDiff; in scrollIfNecessary()
749 if (scrollY != 0) { in scrollIfNecessary()
750 scrollY = mCallback.interpolateOutOfBoundsScroll(mRecyclerView, in scrollIfNecessary()
751 mSelected.itemView.getHeight(), scrollY, in scrollIfNecessary()
754 if (scrollX != 0 || scrollY != 0) { in scrollIfNecessary()
758 mRecyclerView.scrollBy(scrollX, scrollY); in scrollIfNecessary()
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java212 anchor.setOnScrollChangeListener((v, scrollX, scrollY, oldScrollX, oldScrollY) -> { in update() argument
214 mLocationOnScreen[1] = mLocationOnScreen[1] - (scrollY - oldScrollY); in update()
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/proto/
Dview_capture.proto70 optional int32 scrollY = 10; field
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DAmbientState.java356 public void setScrollY(int scrollY) { in setScrollY() argument
360 this.mScrollY = Math.max(scrollY, 0); in setScrollY()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java532 public void setScrollY(int scrollY) { in setScrollY() argument
534 mScrollY = scrollY; in setScrollY()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationController.java543 final float scrollY; in requestRectangleOnScreen() local
567 scrollY = top - magnifFrameInScreenCoords.top; in requestRectangleOnScreen()
569 scrollY = top - magnifFrameInScreenCoords.top - offsetViewportY; in requestRectangleOnScreen()
571 scrollY = bottom - magnifFrameInScreenCoords.bottom + offsetViewportY; in requestRectangleOnScreen()
573 scrollY = 0; in requestRectangleOnScreen()
577 offsetMagnifiedRegion(scrollX * scale, scrollY * scale, INVALID_SERVICE_ID); in requestRectangleOnScreen()

123