/frameworks/support/v4/java/android/support/v4/widget/ |
D | ScrollerCompat.java | 32 Object mScroller; field in ScrollerCompat 259 mScroller = IMPL.createScroller(context, interpolator); in ScrollerCompat() 268 return IMPL.isFinished(mScroller); in isFinished() 277 return IMPL.getCurrX(mScroller); in getCurrX() 286 return IMPL.getCurrY(mScroller); in getCurrY() 293 return IMPL.getFinalX(mScroller); in getFinalX() 300 return IMPL.getFinalY(mScroller); in getFinalY() 314 return IMPL.getCurrVelocity(mScroller); in getCurrVelocity() 323 return IMPL.computeScrollOffset(mScroller); in computeScrollOffset() 341 IMPL.startScroll(mScroller, startX, startY, dx, dy); in startScroll() [all …]
|
D | AutoScrollHelper.java | 137 private 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() 693 mScroller.start(); in run() 696 final ClampedScroller scroller = mScroller; in run()
|
D | ViewDragHelper.java | 132 private ScrollerCompat mScroller; field in ViewDragHelper 391 mScroller = ScrollerCompat.create(context, sInterpolator); in ViewDragHelper() 514 final int oldX = mScroller.getCurrX(); in abort() 515 final int oldY = mScroller.getCurrY(); in abort() 516 mScroller.abortAnimation(); in abort() 517 final int newX = mScroller.getCurrX(); in abort() 518 final int newY = mScroller.getCurrY(); in abort() 584 mScroller.abortAnimation(); in forceSettleCapturedViewAt() 590 mScroller.startScroll(startLeft, startTop, dx, dy, duration); in forceSettleCapturedViewAt() 695 mScroller.fling(mCapturedView.getLeft(), mCapturedView.getTop(), in flingCapturedView() [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()
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 74 private OverScroller mScroller; field in HorizontalScrollView 201 mScroller = new OverScroller(getContext()); in initScrollView() 507 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent() 516 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onInterceptTouchEvent() 551 if ((mIsBeingDragged = !mScroller.isFinished())) { in onTouchEvent() 562 if (!mScroller.isFinished()) { in onTouchEvent() 563 mScroller.abortAnimation(); in onTouchEvent() 641 if (mScroller.springBack(mScrollX, mScrollY, 0, in onTouchEvent() 660 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onTouchEvent() 740 if (!mScroller.isFinished()) { in onOverScrolled() [all …]
|
D | ScrollView.java | 81 private OverScroller mScroller; field in ScrollView 222 mScroller = new OverScroller(getContext()); in initScrollView() 542 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent() 555 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onInterceptTouchEvent() 583 if ((mIsBeingDragged = !mScroller.isFinished())) { in onTouchEvent() 594 if (!mScroller.isFinished()) { in onTouchEvent() 595 mScroller.abortAnimation(); in onTouchEvent() 677 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, in onTouchEvent() 690 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onTouchEvent() 761 if (!mScroller.isFinished()) { in onOverScrolled() [all …]
|
D | Gallery.java | 1075 if (mFlingRunnable.mScroller.isFinished()) { in onUp() 1424 private Scroller mScroller; field in Gallery.FlingRunnable 1432 mScroller = new Scroller(getContext()); in FlingRunnable() 1447 mScroller.fling(initialX, 0, initialVelocity, 0, in startUsingVelocity() 1458 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration); 1472 mScroller.forceFinished(true); 1487 final Scroller scroller = mScroller;
|
D | AbsListView.java | 4065 private final OverScroller mScroller; field in AbsListView.FlingRunnable 4077 final OverScroller scroller = mScroller; 4100 mScroller = new OverScroller(getContext()); in FlingRunnable() 4106 mScroller.setInterpolator(null); in start() 4107 mScroller.fling(0, initialY, 0, initialVelocity, in start() 4125 if (mScroller.springBack(0, mScrollY, 0, 0, 0, 0)) { 4136 mScroller.setInterpolator(null); 4137 mScroller.fling(0, mScrollY, 0, initialVelocity, 0, 0, 4145 mScroller.notifyVerticalEdgeReached(mScrollY, 0, mOverflingDistance); 4150 final int vel = (int) mScroller.getCurrVelocity(); [all …]
|
D | TextView.java | 545 private Scroller mScroller; field in TextView 6835 if (mScroller == null) { in bringPointIntoView() 6843 mScroller.startScroll(mScrollX, mScrollY, dx, dy); in bringPointIntoView() 6844 awakenScrollBars(mScroller.getDuration()); in bringPointIntoView() 6847 if (!mScroller.isFinished()) { in bringPointIntoView() 6848 mScroller.abortAnimation(); in bringPointIntoView() 6945 if (mScroller != null) { in computeScroll() 6946 if (mScroller.computeScrollOffset()) { in computeScroll() 6947 mScrollX = mScroller.getCurrX(); in computeScroll() 6948 mScrollY = mScroller.getCurrY(); in computeScroll() [all …]
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | PagedView.java | 115 protected Scroller mScroller; field in PagedView 312 mScroller = new Scroller(getContext(), new ScrollInterpolator()); in init() 449 mScroller.setFinalX(newX); in updateCurrentPageScroll() 450 mScroller.forceFinished(true); in updateCurrentPageScroll() 458 if (!mScroller.isFinished()) { in setCurrentPage() 459 mScroller.abortAnimation(); in setCurrentPage() 606 if (mScroller.computeScrollOffset()) { in computeScrollHelper() 608 if (getScrollX() != mScroller.getCurrX() in computeScrollHelper() 609 || getScrollY() != mScroller.getCurrY() in computeScrollHelper() 610 || mOverScrollX != mScroller.getCurrX()) { in computeScrollHelper() [all …]
|
D | SlidingChallengeLayout.java | 79 private final Scroller mScroller; field in SlidingChallengeLayout 239 mScroller = new Scroller(context, sMotionInterpolator); in SlidingChallengeLayout() 429 mScroller.startScroll(0, sy, 0, dy, duration); in animateChallengeTo() 1019 if (!mScroller.isFinished()) { 1023 mScroller.abortAnimation(); 1027 mScroller.computeScrollOffset(); 1028 moveChallengeTo(mScroller.getCurrY()); 1030 if (mScroller.isFinished()) { 1037 if (!mScroller.isFinished()) { 1038 mScroller.abortAnimation();
|
/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/support/v4/java/android/support/v4/view/ |
D | ViewPager.java | 140 private Scroller mScroller; field in ViewPager 358 mScroller = new Scroller(context, sInterpolator); in initViewPager() 825 mScroller.startScroll(sx, sy, dx, dy, duration); in smoothScrollTo() 1477 if (!mScroller.isFinished()) { 1479 final int newDuration = mScroller.getDuration() - mScroller.timePassed(); 1481 mScroller.startScroll(newOffsetPixels, 0, 1607 if (!mScroller.isFinished() && mScroller.computeScrollOffset()) { 1610 int x = mScroller.getCurrX(); 1611 int y = mScroller.getCurrY(); 1616 mScroller.abortAnimation(); [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/core/java/android/view/ |
D | ViewRootImpl.java | 266 Scroller mScroller; field in ViewRootImpl 1464 final boolean scrolling = mScroller != null in performTraversals() 1465 && mScroller.computeScrollOffset(); in performTraversals() 1467 yoff = mScroller.getCurrY(); in performTraversals() 1468 mScroller.abortAnimation(); in performTraversals() 1561 if (mScroller != null) { in performTraversals() 1562 mScroller.abortAnimation(); in performTraversals() 2309 boolean animating = mScroller != null && mScroller.computeScrollOffset(); in draw() 2311 yoff = mScroller.getCurrY(); in draw() 2341 if (mScroller != null) { in draw() [all …]
|