Home
last modified time | relevance | path

Searched refs:scrollX (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java468 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 …]
DTouch.java206 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/
DObservableScrollView.java119 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/
DViewPager.java1681 final int scrollX = getScrollX();
1730 childLeft += scrollX;
1858 final int scrollX = getScrollX();
1887 childLeft += scrollX;
1899 final int scrollX = getScrollX();
1906 final float transformPos = (float) (child.getLeft() - scrollX) / getClientWidth();
2244 final int scrollX = getScrollX();
2248 final float pageOffset = (((float) scrollX / width) - ii.offset)
2308 float scrollX = oldScrollX + deltaX;
2327 if (scrollX < leftBound) {
[all …]
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java416 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 …]
DCompoundButton.java453 final int scrollX = mScrollX; in onDraw() local
455 if (scrollX == 0 && scrollY == 0) { in onDraw()
458 canvas.translate(scrollX, scrollY); in onDraw()
460 canvas.translate(-scrollX, -scrollY); in onDraw()
DExpandableListView.java362 final int scrollX = mScrollX; in dispatchDraw() local
364 canvas.clipRect(scrollX + mPaddingLeft, scrollY + mPaddingTop, in dispatchDraw()
365 scrollX + mRight - mLeft - mPaddingRight, in dispatchDraw()
/frameworks/support/core-ui/tests/java/android/support/v4/widget/
DExploreByTouchHelperTest.java79 final int scrollX = 100; in testBoundsInScreen() local
81 mHost.scrollTo(scrollX, scrollY); in testBoundsInScreen()
95 expectedBoundsInScreen.offset(-scrollX, -scrollY); in testBoundsInScreen()
/frameworks/support/transition/tests/src/android/support/transition/
DChangeScrollTest.java59 final int scrollX = view.getScrollX(); in testChangeScroll()
61 assertThat(scrollX, is(both(greaterThan(0)).and(lessThan(150)))); in testChangeScroll()
/frameworks/support/wear/src/android/support/wear/widget/
DSwipeDismissLayout.java433 final int scrollX = v.getScrollX(); in canScroll() local
438 if (x + scrollX >= child.getLeft() in canScroll()
439 && x + scrollX < child.getRight() in canScroll()
443 child, true, dx, x + scrollX - child.getLeft(), in canScroll()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java714 final float scrollX; in requestRectangleOnScreen() local
720 scrollX = left - magnifFrameInScreenCoords.left; in requestRectangleOnScreen()
722 scrollX = right - magnifFrameInScreenCoords.right; in requestRectangleOnScreen()
725 scrollX = left - magnifFrameInScreenCoords.left; in requestRectangleOnScreen()
727 scrollX = right - magnifFrameInScreenCoords.right; in requestRectangleOnScreen()
729 scrollX = 0; in requestRectangleOnScreen()
743 offsetMagnifiedRegion(scrollX * scale, scrollY * scale, INVALID_ID); in requestRectangleOnScreen()
/frameworks/support/compat/java/android/support/v4/view/
DGestureDetectorCompat.java332 final float scrollX = mLastFocusX - focusX; in onTouchEvent() local
342 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
353 } else if ((Math.abs(scrollX) >= 1) || (Math.abs(scrollY) >= 1)) { in onTouchEvent()
354 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
/frameworks/base/core/java/com/android/internal/widget/
DSwipeDismissLayout.java393 final int scrollX = v.getScrollX();
398 if (x + scrollX >= child.getLeft() && x + scrollX < child.getRight() &&
400 canScroll(child, true, dx, x + scrollX - child.getLeft(),
DViewPager.java1503 final int scrollX = getScrollX();
1552 childLeft += scrollX;
1642 private boolean pageScrolled(int scrollX) {
1656 scrollStart = MAX_SCROLL_X - scrollX;
1658 scrollStart = scrollX;
1694 final int scrollX = getScrollX();
1723 childLeft += scrollX;
1740 final int scrollX = getScrollX();
1748 final float transformPos = (float) (child.getLeft() - scrollX) / getPaddedWidth();
2291 final int scrollX = getScrollX();
[all …]
/frameworks/base/core/java/android/view/
DGestureDetector.java600 final float scrollX = mLastFocusX - focusX; in onTouchEvent() local
611 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
623 } else if ((Math.abs(scrollX) >= 1) || (Math.abs(scrollY) >= 1)) { in onTouchEvent()
624 handled = mListener.onScroll(mCurrentDownEvent, ev, scrollX, scrollY); in onTouchEvent()
DViewStructure.java60 public abstract void setDimens(int left, int top, int scrollX, int scrollY, int width, in setDimens() argument
/frameworks/base/core/java/android/webkit/
DWebView.java2365 public void super_scrollTo(int scrollX, int scrollY) { in super_scrollTo() argument
2366 WebView.super.scrollTo(scrollX, scrollY); in super_scrollTo()
2411 int scrollX, int scrollY, in overScrollBy() argument
2415 WebView.this.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, in overScrollBy()
2454 public void setScrollXRaw(int scrollX) { in setScrollXRaw() argument
2455 WebView.this.mScrollX = scrollX; in setScrollXRaw()
2812 protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { in onOverScrolled() argument
2813 mProvider.getViewDelegate().onOverScrolled(scrollX, scrollY, clampedX, clampedY); in onOverScrolled()
/frameworks/support/compat/java/android/support/v4/view/accessibility/
DAccessibilityRecordCompat.java432 public void setScrollX(int scrollX) { in setScrollX() argument
433 mRecord.setScrollX(scrollX); in setScrollX()
/frameworks/support/wear/src/android/support/wear/widget/drawer/
DScrollViewFlingWatcher.java74 public void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, in onScrollChange() argument
DNestedScrollViewFlingWatcher.java74 public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, in onScrollChange() argument
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java714 int scrollX = 0; in scrollIfNecessary() local
721 scrollX = leftDiff; in scrollIfNecessary()
727 scrollX = rightDiff; in scrollIfNecessary()
744 if (scrollX != 0) { in scrollIfNecessary()
745 scrollX = mCallback.interpolateOutOfBoundsScroll(mRecyclerView, in scrollIfNecessary()
746 mSelected.itemView.getWidth(), scrollX, in scrollIfNecessary()
754 if (scrollX != 0 || scrollY != 0) { in scrollIfNecessary()
758 mRecyclerView.scrollBy(scrollX, scrollY); in scrollIfNecessary()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java712 int scrollX = 0; in scrollIfNecessary() local
719 scrollX = leftDiff; in scrollIfNecessary()
725 scrollX = rightDiff; in scrollIfNecessary()
742 if (scrollX != 0) { in scrollIfNecessary()
743 scrollX = mCallback.interpolateOutOfBoundsScroll(mRecyclerView, in scrollIfNecessary()
744 mSelected.itemView.getWidth(), scrollX, in scrollIfNecessary()
752 if (scrollX != 0 || scrollY != 0) { in scrollIfNecessary()
756 mRecyclerView.scrollBy(scrollX, scrollY); in scrollIfNecessary()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRecord.java443 public void setScrollX(int scrollX) { in setScrollX() argument
445 mScrollX = scrollX; in setScrollX()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridWidgetPrefetchTest.java40 public void validatePrefetch(BaseGridView gridView, int scrollX, int scrollY, in validatePrefetch() argument
48 gridView.getLayoutManager().collectAdjacentPrefetchPositions(scrollX, scrollY, in validatePrefetch()
/frameworks/support/core-ui/java/android/support/v4/widget/
DViewDragHelper.java924 final int scrollX = v.getScrollX(); in canScroll() local
932 if (x + scrollX >= child.getLeft() && x + scrollX < child.getRight() in canScroll()
934 && canScroll(child, true, dx, dy, x + scrollX - child.getLeft(), in canScroll()

12