Home
last modified time | relevance | path

Searched refs:mScroller (Results 1 – 22 of 22) 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/Launcher2/src/com/android/launcher2/
DPagedView.java94 protected Scroller mScroller; field in PagedView
236 mScroller = new Scroller(getContext(), new ScrollInterpolator()); in init()
315 mScroller.setFinalX(newX); in updateCurrentPageScroll()
316 mScroller.forceFinished(true); in updateCurrentPageScroll()
325 mScroller.forceFinished(true); in pauseScrolling()
341 if (!mScroller.isFinished()) { in setCurrentPage()
342 mScroller.abortAnimation(); in setCurrentPage()
445 if (mScroller.computeScrollOffset()) { in computeScrollHelper()
447 if (getScrollX() != mScroller.getCurrX() in computeScrollHelper()
448 || getScrollY() != mScroller.getCurrY() in computeScrollHelper()
[all …]
DSmoothPagedView.java105 mScroller = new Scroller(getContext(), mScrollInterpolator); in init()
137 if (!mScroller.isFinished()) { in snapToPageWithVelocity()
138 mScroller.abortAnimation(); in snapToPageWithVelocity()
DWorkspace.java2587 scrollX = mScroller.getFinalX();
2612 scrollX = mScroller.getFinalX();
/packages/apps/Browser/src/com/android/browser/
DNavScreen.java66 NavTabScroller mScroller; field in NavScreen
102 int sv = mScroller.getScrollValue(); in onConfigurationChanged()
106 mScroller.setScrollValue(sv); in onConfigurationChanged()
112 mScroller.handleDataChanged( in refreshAdapter()
126 mScroller = (NavTabScroller) findViewById(R.id.scroller); in init()
130 mScroller.setOrientation(mOrientation == Configuration.ORIENTATION_LANDSCAPE in init()
133 mScroller.setAdapter(mAdapter, in init()
135 mScroller.setOnRemoveListener(new OnRemoveListener() { in init()
176 mScroller.setOnLayoutListener(new OnLayoutListener() { in openNewTab()
185 mScroller.handleDataChanged(tix); in openNewTab()
[all …]
DNavTabScroller.java220 mScroller.forceFinished(true); in finishScroller()
227 mScroller.forceFinished(true); in onLayout()
542 NavTabScroller mScroller; field in NavTabScroller.ContentLayout
546 mScroller = scroller; in ContentLayout()
552 if (mScroller.getGap() != 0) { in onMeasure()
555 if (mScroller.isHorizontal()) { in onMeasure()
DPhoneUi.java380 mNavScreen.mScroller.finishScroller(); in hideNavScreen()
387 int fromLeft = tabview.getLeft() + target.getLeft() - mNavScreen.mScroller.getScrollX(); in hideNavScreen()
388 int fromTop = tabview.getTop() + target.getTop() - mNavScreen.mScroller.getScrollY(); in hideNavScreen()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java109 protected LauncherScroller mScroller; field in PagedView
243 mScroller = new LauncherScroller(getContext()); in init()
267 mScroller.setInterpolator(mDefaultInterpolator); in setDefaultInterpolator()
433 mScroller.setFinalX(newX); in updateCurrentPageScroll()
438 mScroller.abortAnimation(); in abortScrollerAnimation()
447 mScroller.forceFinished(true); in forceFinishScroller()
470 if (!mScroller.isFinished()) { in setCurrentPage()
570 if (!mScroller.isFinished() && in scrollTo()
641 if (mScroller.computeScrollOffset()) { in computeScrollHelper()
643 if (getScrollX() != mScroller.getCurrX() in computeScrollHelper()
[all …]
DFolderPagedView.java470 mScroller.setInterpolator(new DecelerateInterpolator()); in showScrollHint()
471 mScroller.startScroll(getScrollX(), 0, delta, 0, Folder.SCROLL_HINT_DURATION); in showScrollHint()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java144 private final Scroller mScroller; field in MultiShrinkScroller
248 mScroller = new Scroller(context, sInterpolator); in MultiShrinkScroller()
421 if (!mScroller.isFinished()) { in shouldStartDrag()
528 mScroller.abortAnimation(); in startDrag()
537 onDragFinished(mScroller.getFinalY() - mScroller.getStartY()); in stopDrag()
582 mScroller.forceFinished(true); in snapToTopOnDragFinished()
589 mScroller.forceFinished(true); in snapToTopOnDragFinished()
637 mScroller.forceFinished(true); in scrollOffBottom()
796 if (mScroller.computeScrollOffset()) { in computeScroll()
799 scrollTo(0, mScroller.getCurrY()); in computeScroll()
[all …]
/packages/apps/Browser/src/com/android/browser/view/
DScrollerView.java73 protected OverScroller mScroller; field in ScrollerView
177 mScroller = new OverScroller(getContext()); in initScrollView()
581 mIsBeingDragged = !mScroller.isFinished(); in onInterceptTouchEvent()
600 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, in onInterceptTouchEvent()
634 if (!mScroller.isFinished()) { in onTouchEvent()
635 mScroller.abortAnimation(); in onTouchEvent()
726 if (mScroller.springBack(mScrollX, mScrollY, 0, bottom, 0, 0)) { in onTouchEvent()
730 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, bottom)) { in onTouchEvent()
749 if (mScroller.springBack(mScrollX, mScrollY, 0, getScrollRange(), 0, 0)) { in onTouchEvent()
753 if (mScroller.springBack(mScrollX, mScrollY, 0, 0, 0, getScrollRange())) { in onTouchEvent()
[all …]
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorResult.java48 final OverScroller mScroller; field in CalculatorResult
113 mScroller = new OverScroller(context); in CalculatorResult()
123 if (!mScroller.isFinished()) { in CalculatorResult()
124 mCurrentPos = mScroller.getFinalX(); in CalculatorResult()
126 mScroller.forceFinished(true); in CalculatorResult()
131 mScroller.fling(mCurrentPos, 0, - (int) velocityX, 0 /* horizontal only */, in CalculatorResult()
140 if (!mScroller.isFinished()) { in CalculatorResult()
141 mCurrentPos = mScroller.getFinalX(); in CalculatorResult()
143 mScroller.forceFinished(true); in CalculatorResult()
154 mScroller.startScroll(mCurrentPos, 0, distance, 0, (int)duration); in CalculatorResult()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java227 private MultiShrinkScroller mScroller; field in QuickContactActivity
431 mScroller.prepareForShrinkingScrollChild(heightDelta);
436 mScroller.setDisableTouchesForSuppressLayout(/* areTouchesDisabled = */ true);
441 mScroller.setDisableTouchesForSuppressLayout(/* areTouchesDisabled = */ false);
711 mScroller = (MultiShrinkScroller) findViewById(R.id.multiscroller); in onCreate()
732 if (mScroller != null) { in onCreate()
736 mScroller.scrollOffBottom(); in onCreate()
757 mScroller.initialize(mMultiShrinkScrollerListener, mExtraMode == MODE_FULLY_EXPANDED); in onCreate()
760 mScroller.setVisibility(View.INVISIBLE); in onCreate()
774 SchedulingUtils.doOnPreDraw(mScroller, /* drawNextFrame = */ true, in onCreate()
[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/FMRadio/src/com/android/fmradio/
DFmMainActivity.java153 private FmScroller mScroller; field in FmMainActivity
313 mScroller.notifyAdatperChange();
456 mScroller.onRemoveFavorite(); in updateFavoriteStation()
470 mScroller.onAddFavorite(); in updateFavoriteStation()
507 mScroller = (FmScroller) findViewById(R.id.multiscroller); in onCreate()
508 mScroller.initialize(); in onCreate()
525 mScroller.onRemoveFavorite(); in onCreate()
536 mScroller.registerListener(mEventListener); in onCreate()
546 mScroller.notifyAdatperChange(); in editFavorite()
672 mScroller.onResume(); in onResume()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DPinDialogFragment.java337 private final OverScroller mScroller;
365 mScroller = new OverScroller(context);
381 if (!mScroller.isFinished() || mCancelAnimation) {
384 if (mScroller.isFinished() || mCancelAnimation) {
389 mScroller.startScroll(0, 0, 0, mNumberViewHeight,
395 mScroller.startScroll(0, 0, 0, -mNumberViewHeight,
444 if (mScroller.computeScrollOffset()) {
445 mNumberViewHolder.setScrollY(mScroller.getCurrY() + mNumberViewHeight);
556 if (!mScroller.isFinished()) {
558 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/FMRadio/src/com/android/fmradio/views/
DFmScroller.java112 private final Scroller mScroller; field in FmScroller
178 mScroller = new Scroller(context, INTERPOLATOR); in FmScroller()
322 if (!mScroller.isFinished()) { in shouldStartDrag()
434 mScroller.abortAnimation(); in startDrag()
536 if (mScroller.computeScrollOffset()) { in computeScroll()
540 scrollTo(0, mScroller.getCurrY()); in computeScroll()
541 final int delta = mScroller.getCurrY() - oldScroll; in computeScroll()
544 mEdgeGlowBottom.onAbsorb((int) mScroller.getCurrVelocity()); in computeScroll()
551 if (mScroller.getCurrY() >= getMaximumScrollUpwards()) { in computeScroll()
552 mScroller.abortAnimation(); in computeScroll()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DStaggeredGridView.java210 private final OverScrollerSGV mScroller; field in StaggeredGridView
402 mScroller = new OverScrollerSGV(context); in StaggeredGridView()
910 mScroller.abortAnimation(); in onInterceptTouchEvent()
952 mScroller.abortAnimation(); in onTouchEvent()
998 mScroller.fling(0, 0, 0, (int) velocity, 0, 0, in onTouchEvent()
1016 mScroller.abortAnimation(); in resetScroller()
1355 } else if (mScroller.computeScrollOffset()) { in computeScroll()
1358 final int y = mScroller.getCurrY(); in computeScroll()
1370 if (!stopped && !mScroller.isFinished()) { in computeScroll()
1390 edge.onAbsorb(Math.abs((int) mScroller.getCurrVelocity())); in computeScroll()
[all …]
/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/Calendar/src/com/android/calendar/
DDayView.java638 private final OverScroller mScroller; field in DayView
767 mScroller = new OverScroller(context); in DayView()
4124 mScroller.fling(0 /* startX */, mViewStartY /* startY */, 0 /* velocityX */, in doFling()
4767 mScrolling = mScrolling && mScroller.computeScrollOffset(); in run()
4774 mViewStartY = mScroller.getCurrY(); in run()
4784 mLastVelocity = mScroller.getCurrVelocity(); in run()