Home
last modified time | relevance | path

Searched refs:mScroller (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DScrollerHelper.java26 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 …]
DSlotView.java64 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/
DPagedView.java110 protected OverScroller mScroller; field in PagedView
178 mScroller = new OverScroller(context, SCROLL); in PagedView()
255 mScroller.startScroll(mScroller.getCurrX(), 0, newPosition - mScroller.getCurrX(), 0); in updateCurrentPageScroll()
273 mScroller.abortAnimation(); in abortScrollerAnimation()
288 mScroller.forceFinished(true); in forceFinishScroller()
438 if (!mScroller.isFinished()) { in setCurrentPage()
475 if (mIsPageInTransition && !mIsBeingDragged && mScroller.isFinished() in pageEndTransition()
561 if (mScroller.computeScrollOffset()) { in computeScrollHelper()
564 int newPos = mScroller.getCurrX(); in computeScrollHelper()
566 mOrientationHandler.setPrimary(this, VIEW_SCROLL_TO, mScroller.getCurrX()); in computeScrollHelper()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java151 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/
DGridViewSpecial.java141 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/TvSettings/Settings/src/com/android/tv/settings/dialog/
DPinDialogFragment.java488 private final OverScroller mScroller;
519 mScroller = new OverScroller(context);
528 if (!mScroller.isFinished() || mCancelAnimation) {
531 if (mScroller.isFinished() || mCancelAnimation) {
536 mScroller.startScroll(0, 0, 0, mNumberViewHeight,
542 mScroller.startScroll(0, 0, 0, -mNumberViewHeight,
590 if (mScroller.computeScrollOffset()) {
591 mNumberViewHolder.setScrollY(mScroller.getCurrY() + mNumberViewHeight);
702 if (!mScroller.isFinished()) {
704 mScroller.abortAnimation();
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java84 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/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java288 private MultiShrinkScroller mScroller; field in QuickContactActivity
415 mScroller.prepareForShrinkingScrollChild(heightDelta);
420 mScroller.setDisableTouchesForSuppressLayout(/* areTouchesDisabled = */ true);
425 mScroller.setDisableTouchesForSuppressLayout(/* areTouchesDisabled = */ false);
672 mScroller = (MultiShrinkScroller) findViewById(R.id.multiscroller); in onCreate()
687 if (mScroller != null) { in onCreate()
691 mScroller.scrollOffBottom(); in onCreate()
712 mScroller.initialize(mMultiShrinkScrollerListener, mExtraMode == MODE_FULLY_EXPANDED, in onCreate()
717 mScroller.setVisibility(View.INVISIBLE); in onCreate()
721 SchedulingUtils.doOnPreDraw(mScroller, /* drawNextFrame = */ true, in onCreate()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/widget/
DResolverDrawerLayout.java116 private final OverScroller mScroller; field in ResolverDrawerLayout
187 mScroller = new OverScroller(context, AnimationUtils.loadInterpolator(context, in ResolverDrawerLayout()
272 return mIsDragging || !mScroller.isFinished(); in isMoving()
566 if (mScroller.computeScrollOffset()) {
567 final boolean keepGoing = !mScroller.isFinished();
568 performDrag(mScroller.getCurrY() - mCollapseOffset);
578 mScroller.abortAnimation();
693 mScroller.startScroll(0, sy, 0, dy, duration);
825 if (mScroller.isFinished()) {
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java2498 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/quickstep/src/com/android/quickstep/views/
DRecentsView.java938 return mScroller; in getScroller()
1623 int finalPos = mScroller.getFinalX(); in onNotSnappingToPageInFreeScroll()
1652 mScroller.setFinalX(pageSnapped); in onNotSnappingToPageInFreeScroll()
1655 - mScroller.getDuration(); in onNotSnappingToPageInFreeScroll()
1657 mScroller.extendDuration(extraScrollDuration); in onNotSnappingToPageInFreeScroll()
2272 isFlingingFast = mScroller.getCurrVelocity() > mFastFlingVelocity; in computeScrollHelper()
2355 boolean hasLeftOverview = !mOverviewStateEnabled && mScroller.isFinished(); in loadVisibleTaskData()
4195 if (!mScroller.isFinished()) { in snapToPageRelative()
6225 return mScroller.isFinished() || isKeyboardTaskFocusPendingForChild(child);
/packages/apps/Calendar/src/com/android/calendar/
DDayView.kt405 private val mScroller: OverScroller constant
2941 mScroller.fling( in doFling()
3391 mScrolling = mScrolling && mScroller.computeScrollOffset() in run()
3397 mViewStartY = mScroller.getCurrY() in run()
3406 mLastVelocity = mScroller.getCurrVelocity() in run()
3980 mScroller = OverScroller(context)
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java470 mScroller.startScroll(getScrollX(), 0, delta, 0, Folder.SCROLL_HINT_DURATION); in showScrollHint()