/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | OverScroller.java | 41 private final SplineOverScroller mScroller; field in OverScroller 83 mScroller = new SplineOverScroller(context); in OverScroller() 102 mScroller.setFriction(friction); in setFriction() 112 return mScroller.mFinished; in isFinished() 124 mScroller.mFinished = finished; in forceFinished() 133 return mScroller.mCurrentPosition; in getCurrPos() 142 return mScroller.mCurrVelocity; in getCurrVelocity() 151 return mScroller.mStart; in getStartPos() 160 return mScroller.mFinal; in getFinalPos() 169 return mScroller.mDuration; in getDuration() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | ScrollerHelper.java | 26 private OverScroller mScroller; field in ScrollerHelper 31 mScroller = new OverScroller(context); in ScrollerHelper() 46 return mScroller.computeScrollOffset(); in advanceAnimation() 50 return mScroller.isFinished(); in isFinished() 54 mScroller.forceFinished(true); in forceFinished() 58 return mScroller.getCurrX(); in getPosition() 62 return mScroller.getCurrVelocity(); in getCurrVelocity() 66 mScroller.startScroll( in setPosition() 71 mScroller.abortAnimation(); in setPosition() 76 mScroller.fling( in fling() [all …]
|
D | SlotView.java | 64 private final ScrollerHelper mScroller; field in SlotView 93 mScroller = new ScrollerHelper(activity); in SlotView() 140 mScroller.setPosition(position); in setScrollPosition() 207 mDownInScrolling = !mScroller.isFinished(); in onTouch() 208 mScroller.forceFinished(); in onTouch() 228 mScroller.setOverfling(kind == OVERSCROLL_SYSTEM); in setOverscrollEffect() 246 boolean more = mScroller.advanceAnimation(animTime); in render() 249 updateScrollPosition(mScroller.getPosition(), false); in render() 257 float v = mScroller.getCurrVelocity(); in render() 664 mScroller.fling((int) -velocity, 0, scrollLimit); in onFling() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 104 protected OverScroller mScroller; field in PagedView 171 mScroller = new OverScroller(getContext()); in init() 191 mScroller.setInterpolator(mDefaultInterpolator); in setDefaultInterpolator() 246 mScroller.startScroll(mScroller.getCurrPos(), newX - mScroller.getCurrPos()); in updateCurrentPageScroll() 251 mScroller.abortAnimation(); in abortScrollerAnimation() 261 mScroller.forceFinished(true); in forceFinishScroller() 312 if (!mScroller.isFinished()) { in setCurrentPage() 453 if (mScroller.computeScrollOffset()) { in computeScrollHelper() 455 if (getUnboundedScrollX() != mScroller.getCurrPos() in computeScrollHelper() 456 || getScrollX() != mScroller.getCurrPos()) { in computeScrollHelper() [all …]
|
D | Workspace.java | 1014 boolean shouldScrollOverlay = mLauncherOverlay != null && !mScroller.isSpringing() && in overScroll()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 151 private final Scroller mScroller; field in MultiShrinkScroller 255 mScroller = new Scroller(context, sInterpolator); in MultiShrinkScroller() 482 if (!mScroller.isFinished()) { in shouldStartDrag() 592 mScroller.abortAnimation(); in startDrag() 601 onDragFinished(mScroller.getFinalY() - mScroller.getStartY()); in stopDrag() 646 mScroller.forceFinished(true); in snapToTopOnDragFinished() 653 mScroller.forceFinished(true); in snapToTopOnDragFinished() 701 mScroller.forceFinished(true); in scrollOffBottom() 860 if (mScroller.computeScrollOffset()) { in computeScroll() 863 scrollTo(0, mScroller.getCurrY()); in computeScroll() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 141 private Scroller mScroller = null; field in GridViewSpecial 311 if (mScroller != null && !mScroller.isFinished()) { in onDown() 312 mScroller.forceFinished(true); in onDown() 335 mScroller = new Scroller(getContext()); in onFling() 336 mScroller.fling(0, mScrollY, 0, -(int) velocityY, 0, 0, 0, in onFling() 435 mScroller = new Scroller(getContext()); in ensureVisible() 436 mScroller.startScroll(mScrollX, mScrollY, 0, in ensureVisible() 440 mScroller = new Scroller(getContext()); in ensureVisible() 441 mScroller.startScroll(mScrollX, mScrollY, 0, r.top - mScrollY, 200); in ensureVisible() 467 mScroller = null; in stop() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | QuickContactActivity.java | 287 private MultiShrinkScroller mScroller; field in QuickContactActivity 414 mScroller.prepareForShrinkingScrollChild(heightDelta); 419 mScroller.setDisableTouchesForSuppressLayout(/* areTouchesDisabled = */ true); 424 mScroller.setDisableTouchesForSuppressLayout(/* areTouchesDisabled = */ false); 671 mScroller = (MultiShrinkScroller) findViewById(R.id.multiscroller); in onCreate() 686 if (mScroller != null) { in onCreate() 690 mScroller.scrollOffBottom(); in onCreate() 711 mScroller.initialize(mMultiShrinkScrollerListener, mExtraMode == MODE_FULLY_EXPANDED, in onCreate() 716 mScroller.setVisibility(View.INVISIBLE); in onCreate() 720 SchedulingUtils.doOnPreDraw(mScroller, /* drawNextFrame = */ true, in onCreate() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | PinDialogFragment.java | 395 private final OverScroller mScroller; 426 mScroller = new OverScroller(context); 435 if (!mScroller.isFinished() || mCancelAnimation) { 438 if (mScroller.isFinished() || mCancelAnimation) { 443 mScroller.startScroll(0, 0, 0, mNumberViewHeight, 449 mScroller.startScroll(0, 0, 0, -mNumberViewHeight, 497 if (mScroller.computeScrollOffset()) { 498 mNumberViewHolder.setScrollY(mScroller.getCurrY() + mNumberViewHeight); 609 if (!mScroller.isFinished()) { 611 mScroller.abortAnimation();
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | GalleryThumbnailView.java | 84 private final OverScroller mScroller; field in GalleryThumbnailView 109 mScroller = new OverScroller(context); in GalleryThumbnailView() 286 mScroller.abortAnimation(); in onInterceptTouchEvent() 327 mScroller.abortAnimation(); in onTouchEvent() 370 mScroller.fling(0, 0, (int) velocity, 0, in onTouchEvent() 534 if (mScroller.computeScrollOffset()) { in computeScroll() 535 final int x = mScroller.getCurrX(); in computeScroll() 540 if (!stopped && !mScroller.isFinished()) { in computeScroll() 552 edge.onAbsorb(Math.abs((int) mScroller.getCurrVelocity())); in computeScroll() 555 mScroller.abortAnimation(); in computeScroll()
|
/packages/apps/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 113 private Scroller mScroller; field in WearableListView 574 if (mScroller == null) { in fling() 575 mScroller = new Scroller(getContext(), null, true); in fling() 577 mScroller.fling(0, 0, 0, velocityY, Integer.MIN_VALUE, Integer.MAX_VALUE, in fling() 579 int finalY = mScroller.getFinalY(); in fling()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | FilmstripView.java | 2498 private final Scroller mScroller; 2504 boolean newPosition = mScroller.computeScrollOffset(); 2510 mListener.onScrollUpdate(mScroller.getCurrX(), mScroller.getCurrY()); 2555 mScroller = new Scroller(ctx); 2567 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY); 2572 mScroller.startScroll(startX, startY, dx, dy); 2585 return (mScroller.isFinished() && !mXScrollAnimator.isRunning()); 2589 mScroller.forceFinished(finished);
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderPagedView.java | 432 mScroller.setInterpolator(Interpolators.DEACCEL); in showScrollHint() 433 mScroller.startScroll(getScrollX(), delta, Folder.SCROLL_HINT_DURATION); in showScrollHint()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 630 private final OverScroller mScroller; field in DayView 752 mScroller = new OverScroller(context); in DayView() 3315 mScroller.fling(0 /* startX */, mViewStartY /* startY */, 0 /* velocityX */, in doFling() 3761 mScrolling = mScrolling && mScroller.computeScrollOffset(); in run() 3768 mViewStartY = mScroller.getCurrY(); in run() 3778 mLastVelocity = mScroller.getCurrVelocity(); in run()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | RecentsView.java | 362 return mScroller; in getScroller() 684 isFlingingFast = mScroller.getCurrVelocity() > mFastFlingVelocity; in computeScrollHelper()
|