Home
last modified time | relevance | path

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

12

/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/core/java/android/widget/
DScrollView.java546 final int scrollY = mScrollY; in inChild() local
548 return !(y < child.getTop() - scrollY in inChild()
549 || y >= child.getBottom() - scrollY in inChild()
929 protected void onOverScrolled(int scrollX, int scrollY, in onOverScrolled() argument
936 mScrollY = scrollY; in onOverScrolled()
943 super.scrollTo(scrollX, scrollY); in onOverScrolled()
1325 final int scrollY = mScrollY; in smoothScrollBy() local
1326 dy = Math.max(0, Math.min(scrollY + dy, maxY)) - scrollY; in smoothScrollBy()
1328 mScroller.startScroll(mScrollX, scrollY, 0, dy); in smoothScrollBy()
1366 final int scrollY = mScrollY; in computeVerticalScrollRange() local
[all …]
DCompoundButton.java494 final int scrollY = mScrollY; in onDraw() local
495 if (scrollX == 0 && scrollY == 0) { in onDraw()
498 canvas.translate(scrollX, scrollY); in onDraw()
500 canvas.translate(-scrollX, -scrollY); in onDraw()
DExpandableListView.java372 final int scrollY = mScrollY; in dispatchDraw() local
373 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop, in dispatchDraw()
375 scrollY + mBottom - mTop - mPaddingBottom); in dispatchDraw()
DAbsListView.java2675 final int scrollY = mScrollY; in dispatchDraw() local
2676 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop, in dispatchDraw()
2678 scrollY + mBottom - mTop - mPaddingBottom); in dispatchDraw()
4276 protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { in onOverScrolled() argument
4277 if (mScrollY != scrollY) { in onOverScrolled()
4278 onScrollChanged(mScrollX, scrollY, mScrollX, mScrollY); in onOverScrolled()
4279 mScrollY = scrollY; in onOverScrolled()
4390 final int scrollY = mScrollY; in draw() local
4414 final int edgeY = Math.min(0, scrollY + mFirstPositionDistanceGuess) + translateY; in draw()
4426 final int edgeY = Math.max(getHeight(), scrollY + mLastPositionDistanceGuess) in draw()
[all …]
DImageView.java1425 final int scrollY = mScrollY; in onDraw() local
1426 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop, in onDraw()
1428 scrollY + mBottom - mTop - mPaddingBottom); in onDraw()
DListView.java3492 final int scrollY = mScrollY;
3493 if (count > 0 && scrollY < 0) {
3496 bounds.top = scrollY;
3546 final int scrollY = mScrollY;
3549 bounds.top = scrollY;
3588 if (count > 0 && scrollY > 0) {
3592 bounds.bottom = absListBottom + scrollY;
/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/statusbar/notification/stack/
DStackScrollAlgorithm.java238 int scrollY = ambientState.getScrollY(); in initAlgorithmState() local
242 scrollY = Math.max(0, scrollY); in initAlgorithmState()
243 state.scrollY = (int) (scrollY + bottomOverScroll); in initAlgorithmState()
381 float currentYPosition = -algorithmState.scrollY; in updatePositionsForState()
708 public int scrollY;
DAmbientState.java140 public void setScrollY(int scrollY) { in setScrollY() argument
141 this.mScrollY = scrollY; in setScrollY()
/frameworks/base/core/java/com/android/internal/widget/
DSwipeDismissLayout.java394 final int scrollY = v.getScrollY();
399 y + scrollY >= child.getTop() && y + scrollY < child.getBottom() &&
401 y + scrollY - child.getTop())) {
DDecorCaptionView.java433 public void onRootViewScrollYChanged(int scrollY) { in onRootViewScrollYChanged() argument
437 mRootScrollY = scrollY; in onRootViewScrollYChanged()
438 mCaption.setTranslationY(scrollY); in onRootViewScrollYChanged()
/frameworks/base/core/java/com/android/internal/view/
DRootViewSurfaceTaker.java28 void onRootViewScrollYChanged(int scrollY); in onRootViewScrollYChanged() argument
/frameworks/base/tests/ActivityViewTest/src/com/google/android/test/activityview/
DActivityViewScrollActivity.java41 (View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) in onCreate()
/frameworks/base/core/java/android/view/
DGestureDetector.java642 final float scrollY = mLastFocusY - focusY; in onTouchEvent() local
686 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
698 } else if ((Math.abs(scrollX) >= 1) || (Math.abs(scrollY) >= 1)) { in onTouchEvent()
700 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
DViewStructure.java68 public abstract void setDimens(int left, int top, int scrollX, int scrollY, int width, in setDimens() argument
/frameworks/base/core/java/android/webkit/
DWebView.java2391 public void super_scrollTo(int scrollX, int scrollY) { in super_scrollTo() argument
2392 WebView.super.scrollTo(scrollX, scrollY); in super_scrollTo()
2437 int scrollX, int scrollY, in overScrollBy() argument
2441 WebView.this.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
2485 public void setScrollYRaw(int scrollY) { in setScrollYRaw() argument
2486 WebView.this.mScrollY = scrollY; in setScrollYRaw()
2859 protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { in onOverScrolled() argument
2860 mProvider.getViewDelegate().onOverScrolled(scrollX, scrollY, clampedX, clampedY); in onOverScrolled()
DWebViewProvider.java375 public void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY); in onOverScrolled() argument
/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/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java357 final float scrollY; in requestRectangleOnScreen() local
375 scrollY = top - magnifFrameInScreenCoords.top; in requestRectangleOnScreen()
377 scrollY = top - magnifFrameInScreenCoords.top; in requestRectangleOnScreen()
379 scrollY = bottom - magnifFrameInScreenCoords.bottom; in requestRectangleOnScreen()
381 scrollY = 0; in requestRectangleOnScreen()
385 offsetMagnifiedRegion(scrollX * scale, scrollY * scale, INVALID_ID); in requestRectangleOnScreen()
/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.java210 anchor.setOnScrollChangeListener((v, scrollX, scrollY, oldScrollX, oldScrollY) -> { in update() argument
212 mLocationOnScreen[1] = mLocationOnScreen[1] - (scrollY - oldScrollY); in update()
/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/android/view/accessibility/
DAccessibilityRecord.java472 public void setScrollY(int scrollY) { in setScrollY() argument
474 mScrollY = scrollY; in setScrollY()
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java1684 public void setDimens(int left, int top, int scrollX, int scrollY, int width, int height) { in setDimens() argument
1688 mNode.mScrollY = scrollY; in setDimens()
2219 int scrollY = node.getScrollY(); in dump() local
2220 if (scrollX != 0 || scrollY != 0) { in dump()
2221 Log.i(TAG, prefix + " Scroll: " + scrollX + "," + scrollY); in dump()

12