Home
last modified time | relevance | path

Searched refs:mScroller (Results 1 – 11 of 11) 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
94 mScroller = new ScrollerHelper((Context) activity); in SlotView()
141 mScroller.setPosition(position); in setScrollPosition()
208 mDownInScrolling = !mScroller.isFinished(); in onTouch()
209 mScroller.forceFinished(); in onTouch()
229 mScroller.setOverfling(kind == OVERSCROLL_SYSTEM); in setOverscrollEffect()
247 boolean more = mScroller.advanceAnimation(animTime); in render()
250 updateScrollPosition(mScroller.getPosition(), false); in render()
258 float v = mScroller.getCurrVelocity(); in render()
664 mScroller.fling((int) -velocity, 0, scrollLimit); in onFling()
[all …]
/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()
175 mScroller.setOnLayoutListener(new OnLayoutListener() { in openNewTab()
183 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.java364 mNavScreen.mScroller.finishScroller(); in hideNavScreen()
371 int fromLeft = tabview.getLeft() + target.getLeft() - mNavScreen.mScroller.getScrollX(); in hideNavScreen()
372 int fromTop = tabview.getTop() + target.getTop() - mNavScreen.mScroller.getScrollY(); in hideNavScreen()
/packages/apps/Launcher2/src/com/android/launcher2/
DPagedView.java94 protected Scroller mScroller; field in PagedView
235 mScroller = new Scroller(getContext(), new ScrollInterpolator()); in init()
303 mScroller.setFinalX(newX); in updateCurrentPageScroll()
304 mScroller.forceFinished(true); in updateCurrentPageScroll()
311 if (!mScroller.isFinished()) { in setCurrentPage()
312 mScroller.abortAnimation(); in setCurrentPage()
404 if (mScroller.computeScrollOffset()) { in computeScrollHelper()
406 if (getScrollX() != mScroller.getCurrX() in computeScrollHelper()
407 || getScrollY() != mScroller.getCurrY() in computeScrollHelper()
408 || mOverScrollX != mScroller.getCurrX()) { in computeScrollHelper()
[all …]
DSmoothPagedView.java105 mScroller = new Scroller(getContext(), mScrollInterpolator); in init()
137 if (!mScroller.isFinished()) { in snapToPageWithVelocity()
138 mScroller.abortAnimation(); in snapToPageWithVelocity()
DWorkspace.java2553 scrollX = mScroller.getFinalX();
2584 scrollX = mScroller.getFinalX();
/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/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/Calendar/src/com/android/calendar/
DDayView.java636 private final OverScroller mScroller; field in DayView
768 mScroller = new OverScroller(context); in DayView()
4086 mScroller.fling(0 /* startX */, mViewStartY /* startY */, 0 /* velocityX */, in doFling()
4723 mScrolling = mScrolling && mScroller.computeScrollOffset(); in run()
4730 mViewStartY = mScroller.getCurrY(); in run()
4740 mLastVelocity = mScroller.getCurrVelocity(); in run()