Home
last modified time | relevance | path

Searched refs:DECELERATION_RATE (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java65 private static float DECELERATION_RATE = (float) (Math.log(0.75) / Math.log(0.9)); field in Scroller
396 mDuration = (int) (1000.0 * Math.exp(l / (DECELERATION_RATE - 1.0))); in fling()
405 (int) (ALPHA * Math.exp(DECELERATION_RATE / (DECELERATION_RATE - 1.0) * l)); in fling()
DOverScroller.java591 private static float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9)); field in OverScroller.SplineOverScroller
793 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDistance()
794 return mFlingFriction * PHYSICAL_COEF * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
800 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDuration()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java66 private static float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9)); field in LauncherScroller
465 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDuration()
471 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDistance()
472 return mFlingFriction * mPhysicalCoeff * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java593 private static float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9)); field in OverScrollerSGV.SplineOverScroller
792 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDistance()
793 … return mFlingFriction * mPhysicalCoeff * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
799 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDuration()