Home
last modified time | relevance | path

Searched refs:mFinalX (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java39 private int mFinalX; field in Scroller
231 return mFinalX; in getFinalX()
277 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset()
287 if (mCurrX == mFinalX && mCurrY == mFinalY) { in computeScrollOffset()
295 mCurrX = mFinalX; in computeScrollOffset()
340 mFinalX = startX + dx; in startScroll()
372 float dx = mFinalX - mStartX; in fling()
411 mFinalX = startX + Math.round(totalDistance * coeffX); in fling()
413 mFinalX = Math.min(mFinalX, mMaxX); in fling()
414 mFinalX = Math.max(mFinalX, mMinX); in fling()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java36 private int mFinalX; field in LauncherScroller
261 return mFinalX; in getFinalX()
313 mCurrX = mStartX + Math.round(distanceCoef * (mFinalX - mStartX)); in computeScrollOffset()
323 if (mCurrX == mFinalX && mCurrY == mFinalY) { in computeScrollOffset()
331 mCurrX = mFinalX; in computeScrollOffset()
377 mFinalX = startX + dx; in startScroll()
409 float dx = (float) (mFinalX - mStartX); in fling()
447 mFinalX = startX + (int) Math.round(totalDistance * coeffX); in fling()
449 mFinalX = Math.min(mFinalX, mMaxX); in fling()
450 mFinalX = Math.max(mFinalX, mMinX); in fling()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java42 private int mFinalX, mFinalY; field in FlingScroller
48 return mFinalX; in getFinalX()
103 mFinalX = getX(1.0f); in fling()