/frameworks/support/compat/java/android/support/v4/widget/ |
D | ScrollerCompat.java | 34 OverScroller mScroller; field in ScrollerCompat 51 mScroller = interpolator != null ? in ScrollerCompat() 61 return mScroller.isFinished(); in isFinished() 70 return mScroller.getCurrX(); in getCurrX() 79 return mScroller.getCurrY(); in getCurrY() 86 return mScroller.getFinalX(); in getFinalX() 93 return mScroller.getFinalY(); in getFinalY() 107 return mIsIcsOrNewer ? ScrollerCompatIcs.getCurrVelocity(mScroller) : 0; in getCurrVelocity() 116 return mScroller.computeScrollOffset(); in computeScrollOffset() 134 mScroller.startScroll(startX, startY, dx, dy); in startScroll() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/widget/ |
D | ScrollerCompatTestBase.java | 43 private ScrollerCompat mScroller; field in ScrollerCompatTestBase 53 mScroller = new ScrollerCompat(mIsIcsOrNewer, InstrumentationRegistry.getContext(), in createScroller() 63 mScroller.fling(0, 0, 0, 1000, in testTargetReached() 65 int target = mScroller.getFinalY(); in testTargetReached() 66 while (mScroller.computeScrollOffset()) { in testTargetReached() 70 mScroller.getCurrY()); in testTargetReached() 79 mScroller.fling(0, 0, 0, 10000, in testAbort() 81 assertTrue("Scroller should have some offset", mScroller.computeScrollOffset()); in testAbort() 82 mScroller.abortAnimation(); in testAbort() 84 mScroller.computeScrollOffset()); in testAbort()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | TaskStackViewScroller.java | 75 OverScroller mScroller; field in TaskStackViewScroller 83 mScroller = new OverScroller(context); in TaskStackViewScroller() 155 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll); in fling() 213 mScroller.forceFinished(true); in animateScroll() 249 if (mScroller.computeScrollOffset()) { in computeScroll() 250 float deltaP = mLayoutAlgorithm.getDeltaPForY(mFlingDownY, mScroller.getCurrY()); in computeScroll() 262 return !mScroller.isFinished(); in isScrolling() 267 if (!mScroller.isFinished()) { in stopScroller() 268 mScroller.abortAnimation(); in stopScroller()
|
D | TaskStackViewTouchHandler.java | 76 TaskStackViewScroller mScroller; field in TaskStackViewTouchHandler 116 mScroller = scroller; in TaskStackViewTouchHandler() 228 mScroller.stopScroller(); in handleTouchEvent() 229 mScroller.stopBoundScrollAnimation(); in handleTouchEvent() 230 mScroller.resetDeltaScroll(); in handleTouchEvent() 238 mDownScrollP = mScroller.getStackScroll(); in handleTouchEvent() 253 mDownScrollP = mScroller.getStackScroll(); in handleTouchEvent() 254 mScroller.resetDeltaScroll(); in handleTouchEvent() 267 float stackScroll = mScroller.getStackScroll(); in handleTouchEvent() 301 mDownScrollP += mScroller.setDeltaStackScroll(mDownScrollP, in handleTouchEvent() [all …]
|
/frameworks/support/design/src/android/support/design/widget/ |
D | HeaderBehavior.java | 40 ScrollerCompat mScroller; field in HeaderBehavior 235 if (mScroller == null) { in fling() 236 mScroller = ScrollerCompat.create(layout.getContext()); in fling() 239 mScroller.fling( in fling() 245 if (mScroller.computeScrollOffset()) { in fling() 298 if (mLayout != null && mScroller != null) { in run() 299 if (mScroller.computeScrollOffset()) { in run() 300 setHeaderTopBottomOffset(mParent, mLayout, mScroller.getCurrY()); in run()
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
D | AutoScrollHelper.java | 137 final ClampedScroller mScroller = new ClampedScroller(); field in AutoScrollHelper 427 mScroller.setRampUpDuration(durationMillis); in setRampUpDuration() 442 mScroller.setRampDownDuration(durationMillis); in setRampDownDuration() 471 mScroller.setTargetVelocity(xTargetVelocity, yTargetVelocity); in onTouch() 492 final ClampedScroller scroller = mScroller; in shouldAnimate() 533 mScroller.requestStop(); in requestStop() 696 mScroller.start(); in run() 699 final ClampedScroller scroller = mScroller; in run()
|
D | ViewDragHelper.java | 133 private ScrollerCompat mScroller; field in ViewDragHelper 394 mScroller = ScrollerCompat.create(context, sInterpolator); in ViewDragHelper() 517 final int oldX = mScroller.getCurrX(); in abort() 518 final int oldY = mScroller.getCurrY(); in abort() 519 mScroller.abortAnimation(); in abort() 520 final int newX = mScroller.getCurrX(); in abort() 521 final int newY = mScroller.getCurrY(); in abort() 594 mScroller.abortAnimation(); in forceSettleCapturedViewAt() 600 mScroller.startScroll(startLeft, startTop, dx, dy, duration); in forceSettleCapturedViewAt() 705 mScroller.fling(mCapturedView.getLeft(), mCapturedView.getTop(), in flingCapturedView() [all …]
|
D | NestedScrollView.java | 99 private ScrollerCompat mScroller; field in NestedScrollView 359 mScroller = ScrollerCompat.create(getContext(), null); in initScrollView() 691 mScroller.computeScrollOffset(); in onInterceptTouchEvent() 692 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent() 703 if (mScroller.springBack(getScrollX(), getScrollY(), 0, 0, 0, getScrollRange())) { in onInterceptTouchEvent() 738 if ((mIsBeingDragged = !mScroller.isFinished())) { in onTouchEvent() 749 if (!mScroller.isFinished()) { in onTouchEvent() 750 mScroller.abortAnimation(); in onTouchEvent() 842 } else if (mScroller.springBack(getScrollX(), getScrollY(), 0, 0, 0, in onTouchEvent() 852 if (mScroller.springBack(getScrollX(), getScrollY(), 0, 0, 0, in onTouchEvent() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 79 private OverScroller mScroller; field in HorizontalScrollView 217 mScroller = new OverScroller(getContext()); in initScrollView() 536 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent() 545 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onInterceptTouchEvent() 580 if ((mIsBeingDragged = !mScroller.isFinished())) { in onTouchEvent() 591 if (!mScroller.isFinished()) { in onTouchEvent() 592 mScroller.abortAnimation(); in onTouchEvent() 672 if (mScroller.springBack(mScrollX, mScrollY, 0, in onTouchEvent() 691 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onTouchEvent() 776 if (!mScroller.isFinished()) { in onOverScrolled() [all …]
|
D | ScrollView.java | 85 private OverScroller mScroller; field in ScrollView 243 mScroller = new OverScroller(getContext()); in initScrollView() 577 mScroller.computeScrollOffset(); in onInterceptTouchEvent() 578 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent() 592 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onInterceptTouchEvent() 627 if ((mIsBeingDragged = !mScroller.isFinished())) { in onTouchEvent() 638 if (!mScroller.isFinished()) { in onTouchEvent() 639 mScroller.abortAnimation(); in onTouchEvent() 732 } else if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, in onTouchEvent() 743 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onTouchEvent() [all …]
|
D | Gallery.java | 1086 if (mFlingRunnable.mScroller.isFinished()) { in onUp() 1455 private Scroller mScroller; field in Gallery.FlingRunnable 1463 mScroller = new Scroller(getContext()); in FlingRunnable() 1478 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity() 1489 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration); 1503 mScroller.forceFinished(true); 1518 final Scroller scroller = mScroller;
|
D | AbsListView.java | 4561 private final OverScroller mScroller; field in AbsListView.FlingRunnable 4573 final OverScroller scroller = mScroller; 4596 mScroller = new OverScroller(getContext()); in FlingRunnable() 4602 mScroller.setInterpolator(null); in start() 4603 mScroller.fling(0, initialY, 0, initialVelocity, in start() 4621 if (mScroller.springBack(0, mScrollY, 0, 0, 0, 0)) { 4632 mScroller.setInterpolator(null); 4633 mScroller.fling(0, mScrollY, 0, initialVelocity, 0, 0, 4641 mScroller.notifyVerticalEdgeReached(mScrollY, 0, mOverflingDistance); 4646 final int vel = (int) mScroller.getCurrVelocity(); [all …]
|
D | TextView.java | 614 private Scroller mScroller; field in TextView 7603 if (mScroller == null) { in bringPointIntoView() 7611 mScroller.startScroll(mScrollX, mScrollY, dx, dy); in bringPointIntoView() 7612 awakenScrollBars(mScroller.getDuration()); in bringPointIntoView() 7615 if (!mScroller.isFinished()) { in bringPointIntoView() 7616 mScroller.abortAnimation(); in bringPointIntoView() 7713 if (mScroller != null) { in computeScroll() 7714 if (mScroller.computeScrollOffset()) { in computeScroll() 7715 mScrollX = mScroller.getCurrX(); in computeScroll() 7716 mScrollY = mScroller.getCurrY(); in computeScroll() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AutoScrollHelper.java | 136 private final ClampedScroller mScroller = new ClampedScroller(); field in AutoScrollHelper 426 mScroller.setRampUpDuration(durationMillis); in setRampUpDuration() 441 mScroller.setRampDownDuration(durationMillis); in setRampDownDuration() 470 mScroller.setTargetVelocity(xTargetVelocity, yTargetVelocity); in onTouch() 491 final ClampedScroller scroller = mScroller; in shouldAnimate() 532 mScroller.requestStop(); in requestStop() 692 mScroller.start(); in run() 695 final ClampedScroller scroller = mScroller; in run()
|
D | ResolverDrawerLayout.java | 91 private final OverScroller mScroller; field in ResolverDrawerLayout 139 mScroller = new OverScroller(context, AnimationUtils.loadInterpolator(context, in ResolverDrawerLayout() 191 return mIsDragging || !mScroller.isFinished(); in isMoving() 417 if (mScroller.computeScrollOffset()) { 418 final boolean keepGoing = !mScroller.isFinished(); 419 performDrag(mScroller.getCurrY() - mCollapseOffset); 430 mScroller.abortAnimation(); 504 mScroller.startScroll(0, sy, 0, dy, duration); 627 if (mScroller.isFinished()) {
|
D | ViewPager.java | 121 private final Scroller mScroller; field in ViewPager 343 mScroller = new Scroller(context, sInterpolator); in ViewPager() 801 mScroller.startScroll(sx, sy, dx, dy, duration); in smoothScrollTo() 1473 if (!mScroller.isFinished()) { 1475 final int newDuration = mScroller.getDuration() - mScroller.timePassed(); 1477 mScroller.startScroll(newOffsetPixels, 0, 1616 if (!mScroller.isFinished() && mScroller.computeScrollOffset()) { 1619 final int x = mScroller.getCurrX(); 1620 final int y = mScroller.getCurrY(); 1626 mScroller.abortAnimation(); [all …]
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | ViewPager.java | 169 private Scroller mScroller; field in ViewPager 409 mScroller = new Scroller(context, sInterpolator); in initViewPager() 485 if ((mScroller != null) && !mScroller.isFinished()) { in onDetachedFromWindow() 486 mScroller.abortAnimation(); in onDetachedFromWindow() 985 boolean wasScrolling = (mScroller != null) && !mScroller.isFinished(); in smoothScrollTo() 991 sx = mIsScrollStarted ? mScroller.getCurrX() : mScroller.getStartX(); in smoothScrollTo() 993 mScroller.abortAnimation(); in smoothScrollTo() 1031 mScroller.startScroll(sx, sy, dx, dy, duration); in smoothScrollTo() 1680 if (!mScroller.isFinished()) { 1681 mScroller.setFinalX(getCurrentItem() * getClientWidth()); [all …]
|
/frameworks/base/docs/html/training/gestures/ |
D | scroll.jd | 157 private OverScroller mScroller; 168 mScroller.forceFinished(true); 194 mScroller.forceFinished(true); 196 mScroller.fling( 255 if (mScroller.computeScrollOffset()) { 257 int currX = mScroller.getCurrX(); 258 int currY = mScroller.getCurrY(); 276 OverScrollerCompat.getCurrVelocity(mScroller)); 284 OverScrollerCompat.getCurrVelocity(mScroller)); 294 OverScrollerCompat.getCurrVelocity(mScroller)); [all …]
|
/frameworks/base/docs/html/training/custom-views/ |
D | making-interactive.jd | 166 … mScroller.fling(currentX, currentY, velocityX / SCALE, velocityY / SCALE, minX, minY, maxX, maxY); 198 if (!mScroller.isFinished()) { 199 mScroller.computeScrollOffset(); 200 setPieRotation(mScroller.getCurrY()); 238 mScroller = new Scroller(getContext(), null, true); 243 if (!mScroller.isFinished()) { 244 mScroller.computeScrollOffset(); 245 setPieRotation(mScroller.getCurrY());
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 130 private final ScrollerCompat mScroller; field in StaggeredGridView 212 mScroller = ScrollerCompat.from(context); in StaggeredGridView() 285 mScroller.abortAnimation(); in onInterceptTouchEvent() 326 mScroller.abortAnimation(); in onTouchEvent() 369 mScroller.fling(0, 0, 0, (int) velocity, 0, 0, in onTouchEvent() 543 if (mScroller.computeScrollOffset()) { in computeScroll() 544 final int y = mScroller.getCurrY(); in computeScroll() 549 if (!stopped && !mScroller.isFinished()) { in computeScroll() 561 edge.onAbsorb(Math.abs((int) mScroller.getCurrVelocity())); in computeScroll() 564 mScroller.abortAnimation(); in computeScroll()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | NotificationStackScrollLayout.java | 120 private OverScroller mScroller; field in NotificationStackScrollLayout 452 mScroller = new OverScroller(getContext()); in initView() 1118 mScroller.startScroll(mScrollX, mOwnScrollY, 0, targetScroll - mOwnScrollY); in scrollTo() 1157 mScroller.startScroll(mScrollX, mOwnScrollY, 0, range - mOwnScrollY); 1273 boolean isBeingDragged = !mScroller.isFinished(); in onScrollTouch() 1280 if (!mScroller.isFinished()) { in onScrollTouch() 1281 mScroller.forceFinished(true); in onScrollTouch() 1353 if (mScroller.springBack(mScrollX, mOwnScrollY, 0, 0, 0, in onScrollTouch() 1368 if (mScroller.springBack(mScrollX, mOwnScrollY, 0, 0, 0, getScrollRange())) { in onScrollTouch() 1507 if (mScroller.computeScrollOffset()) { in computeScroll() [all …]
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 339 Scroller mScroller; field in ViewRootImpl 1870 if (mScroller != null) { in performTraversals() 1871 mScroller.abortAnimation(); in performTraversals() 2690 boolean animating = mScroller != null && mScroller.computeScrollOffset(); in draw() 2693 curScrollY = mScroller.getCurrY(); in draw() 2714 if (animating && mScroller != null) { in draw() 2715 mScroller.abortAnimation(); in draw() 3124 if (mScroller == null) { in scrollToRectOrFocus() 3125 mScroller = new Scroller(mView.getContext()); in scrollToRectOrFocus() 3127 mScroller.startScroll(0, mScrollY, 0, scrollY-mScrollY); in scrollToRectOrFocus() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 4540 private ScrollerCompat mScroller; field in RecyclerView.ViewFlinger 4551 mScroller = ScrollerCompat.create(getContext(), sQuinticInterpolator); in ViewFlinger() 4564 final ScrollerCompat scroller = mScroller; in run() 4697 mScroller.fling(0, 0, velocityX, velocityY, in fling() 4745 mScroller = ScrollerCompat.create(getContext(), interpolator); in smoothScrollBy() 4749 mScroller.startScroll(0, 0, dx, dy, duration); in smoothScrollBy() 4755 mScroller.abortAnimation(); in stop()
|