/frameworks/base/core/java/android/text/method/ |
D | BaseMovementMethod.java | 468 int scrollX = widget.getScrollX(); in scrollLeft() local 469 if (scrollX > minScrollX) { in scrollLeft() 470 scrollX = Math.max(scrollX - getCharacterWidth(widget) * amount, minScrollX); in scrollLeft() 471 widget.scrollTo(scrollX, widget.getScrollY()); in scrollLeft() 489 int scrollX = widget.getScrollX(); in scrollRight() local 490 if (scrollX < maxScrollX) { in scrollRight() 491 scrollX = Math.min(scrollX + getCharacterWidth(widget) * amount, maxScrollX); in scrollRight() 492 widget.scrollTo(scrollX, widget.getScrollY()); in scrollRight() 647 int scrollX = widget.getScrollX(); in scrollLineStart() local 648 if (scrollX > minScrollX) { in scrollLineStart() [all …]
|
D | Touch.java | 206 public DragState(float x, float y, int scrollX, int scrollY) { in DragState() argument 209 mScrollX = scrollX; in DragState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ObservableScrollView.java | 119 protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, in overScrollBy() argument 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/support/core-ui/java/android/support/v4/view/ |
D | ViewPager.java | 1713 final int scrollX = getScrollX(); 1762 childLeft += scrollX; 1890 final int scrollX = getScrollX(); 1919 childLeft += scrollX; 1931 final int scrollX = getScrollX(); 1938 final float transformPos = (float) (child.getLeft() - scrollX) / getClientWidth(); 2277 final int scrollX = getScrollX(); 2281 final float pageOffset = (((float) scrollX / width) - ii.offset) 2339 float scrollX = oldScrollX + deltaX; 2358 if (scrollX < leftBound) { [all …]
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 416 final int scrollX = mScrollX; in inChild() local 420 || x < child.getLeft() - scrollX in inChild() 421 || x >= child.getRight() - scrollX); in inChild() 773 protected void onOverScrolled(int scrollX, int scrollY, in onOverScrolled() argument 779 mScrollX = scrollX; in onOverScrolled() 787 super.scrollTo(scrollX, scrollY); in onOverScrolled() 1205 final int scrollX = mScrollX; in smoothScrollBy() local 1206 dx = Math.max(0, Math.min(scrollX + dx, maxX)) - scrollX; in smoothScrollBy() 1208 mScroller.startScroll(scrollX, mScrollY, dx, 0); in smoothScrollBy() 1242 final int scrollX = mScrollX; in computeHorizontalScrollRange() local [all …]
|
D | CompoundButton.java | 435 final int scrollX = mScrollX; in onDraw() local 437 if (scrollX == 0 && scrollY == 0) { in onDraw() 440 canvas.translate(scrollX, scrollY); in onDraw() 442 canvas.translate(-scrollX, -scrollY); in onDraw()
|
D | ExpandableListView.java | 362 final int scrollX = mScrollX; in dispatchDraw() local 364 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop, in dispatchDraw() 365 scrollX + mRight - mLeft - mPaddingRight, in dispatchDraw()
|
D | ImageView.java | 1304 final int scrollX = mScrollX; 1306 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop, 1307 scrollX + mRight - mLeft - mPaddingRight,
|
/frameworks/support/core-ui/tests/java/android/support/v4/widget/ |
D | ExploreByTouchHelperTest.java | 77 final int scrollX = 100; in testBoundsInScreen() local 79 mHost.scrollTo(scrollX, scrollY); in testBoundsInScreen() 94 expectedBoundsInScreen.offset(-scrollX, -scrollY); in testBoundsInScreen()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MagnificationController.java | 689 final float scrollX; in requestRectangleOnScreen() local 695 scrollX = left - magnifFrameInScreenCoords.left; in requestRectangleOnScreen() 697 scrollX = right - magnifFrameInScreenCoords.right; in requestRectangleOnScreen() 700 scrollX = left - magnifFrameInScreenCoords.left; in requestRectangleOnScreen() 702 scrollX = right - magnifFrameInScreenCoords.right; in requestRectangleOnScreen() 704 scrollX = 0; in requestRectangleOnScreen() 718 offsetMagnifiedRegionCenter(scrollX * scale, scrollY * scale, INVALID_ID); in requestRectangleOnScreen()
|
/frameworks/support/compat/java/android/support/v4/view/accessibility/ |
D | AccessibilityRecordCompat.java | 59 public void setScrollX(Object record, int scrollX); in setScrollX() argument 284 public void setScrollX(Object record, int scrollX) { in setScrollX() argument 497 public void setScrollX(Object record, int scrollX) { in setScrollX() argument 498 AccessibilityRecordCompatIcs.setScrollX(record, scrollX); in setScrollX() 865 public void setScrollX(int scrollX) { in setScrollX() argument 866 IMPL.setScrollX(mRecord, scrollX); in setScrollX()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SwipeDismissLayout.java | 385 final int scrollX = v.getScrollX(); 390 if (x + scrollX >= child.getLeft() && x + scrollX < child.getRight() && 392 canScroll(child, true, dx, x + scrollX - child.getLeft(),
|
D | ViewPager.java | 1501 final int scrollX = getScrollX(); 1550 childLeft += scrollX; 1640 private boolean pageScrolled(int scrollX) { 1654 scrollStart = MAX_SCROLL_X - scrollX; 1656 scrollStart = scrollX; 1692 final int scrollX = getScrollX(); 1721 childLeft += scrollX; 1738 final int scrollX = getScrollX(); 1746 final float transformPos = (float) (child.getLeft() - scrollX) / getPaddedWidth(); 2289 final int scrollX = getScrollX(); [all …]
|
/frameworks/support/compat/java/android/support/v4/view/ |
D | GestureDetectorCompat.java | 330 final float scrollX = mLastFocusX - focusX; in onTouchEvent() local 340 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent() 351 } else if ((Math.abs(scrollX) >= 1) || (Math.abs(scrollY) >= 1)) { in onTouchEvent() 352 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
|
/frameworks/base/core/java/android/webkit/ |
D | WebView.java | 2176 public void super_scrollTo(int scrollX, int scrollY) { in super_scrollTo() argument 2177 WebView.super.scrollTo(scrollX, scrollY); in super_scrollTo() 2222 int scrollX, int scrollY, in overScrollBy() argument 2226 WebView.this.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy() 2265 public void setScrollXRaw(int scrollX) { in setScrollXRaw() argument 2266 WebView.this.mScrollX = scrollX; in setScrollXRaw() 2538 protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { in onOverScrolled() argument 2539 mProvider.getViewDelegate().onOverScrolled(scrollX, scrollY, clampedX, clampedY); in onOverScrolled()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 597 final float scrollX = mLastFocusX - focusX; in onTouchEvent() local 607 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent() 618 } else if ((Math.abs(scrollX) >= 1) || (Math.abs(scrollY) >= 1)) { in onTouchEvent() 619 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
|
D | ViewStructure.java | 50 public abstract void setDimens(int left, int top, int scrollX, int scrollY, int width, in setDimens() argument
|
/frameworks/support/compat/ics/android/support/v4/view/accessibility/ |
D | AccessibilityRecordCompatIcs.java | 174 public static void setScrollX(Object record, int scrollX) { in setScrollX() argument 175 ((AccessibilityRecord) record).setScrollX(scrollX); in setScrollX()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
D | ItemTouchHelper.java | 720 int scrollX = 0; in scrollIfNecessary() local 727 scrollX = leftDiff; in scrollIfNecessary() 733 scrollX = rightDiff; in scrollIfNecessary() 750 if (scrollX != 0) { in scrollIfNecessary() 751 scrollX = mCallback.interpolateOutOfBoundsScroll(mRecyclerView, in scrollIfNecessary() 752 mSelected.itemView.getWidth(), scrollX, in scrollIfNecessary() 760 if (scrollX != 0 || scrollY != 0) { in scrollIfNecessary() 764 mRecyclerView.scrollBy(scrollX, scrollY); in scrollIfNecessary()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | AccessibilityRecord.java | 422 public void setScrollX(int scrollX) { in setScrollX() argument 424 mScrollX = scrollX; in setScrollX()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FrameBuilderTests.cpp | 1538 static const int scrollX = 5; in RENDERTHREAD_TEST() local 1556 expectedMatrix.loadTranslate(50 - scrollX, 50 - scrollY, 0); in RENDERTHREAD_TEST() 1564 expectedMatrix.loadTranslate(-scrollX, 50 - scrollY, 0); in RENDERTHREAD_TEST() 1587 properties.setTranslationX(scrollX); in RENDERTHREAD_TEST() 1615 canvas.translate(-scrollX, -scrollY); // Apply scroll (note: bg undoes this internally) in RENDERTHREAD_TEST() 1631 static const int scrollX = 5; in RENDERTHREAD_TEST() local 1653 expected.loadTranslate(100 - scrollX, 100 - scrollY, 0); in RENDERTHREAD_TEST() 1668 properties.setTranslationX(scrollX); in RENDERTHREAD_TEST() 1689 canvas.translate(-scrollX, -scrollY); // Apply scroll (note: bg undoes this internally) in RENDERTHREAD_TEST() 1722 static const int scrollX = 500000; in RENDERTHREAD_TEST() local [all …]
|
/frameworks/base/core/java/android/app/assist/ |
D | AssistStructure.java | 1073 public void setDimens(int left, int top, int scrollX, int scrollY, int width, int height) { in setDimens() argument 1076 mNode.mScrollX = scrollX; in setDimens() 1377 int scrollX = node.getScrollX(); in dump() local 1379 if (scrollX != 0 || scrollY != 0) { in dump() 1380 Log.i(TAG, prefix + " Scroll: " + scrollX + "," + scrollY); in dump()
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 925 final int scrollX = v.getScrollX(); in canScroll() local 933 if (x + scrollX >= child.getLeft() && x + scrollX < child.getRight() in canScroll() 935 && canScroll(child, true, dx, dy, x + scrollX - child.getLeft(), in canScroll()
|
D | NestedScrollView.java | 92 void onScrollChange(NestedScrollView v, int scrollX, int scrollY, in onScrollChange() argument 941 protected void onOverScrolled(int scrollX, int scrollY, in onOverScrolled() argument 943 super.scrollTo(scrollX, scrollY); in onOverScrolled() 947 int scrollX, int scrollY, in overScrollByCompat() argument 961 int newScrollX = scrollX + deltaX; in overScrollByCompat()
|
D | SlidingPaneLayout.java | 1235 final int scrollX = v.getScrollX(); in canScroll() local 1243 if (x + scrollX >= child.getLeft() && x + scrollX < child.getRight() in canScroll() 1245 && canScroll(child, true, dx, x + scrollX - child.getLeft(), in canScroll()
|