Home
last modified time | relevance | path

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

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java64 private static float DECELERATION_RATE = (float) (Math.log(0.75) / Math.log(0.9)); field in Scroller
395 mDuration = (int) (1000.0 * Math.exp(l / (DECELERATION_RATE - 1.0))); in fling()
404 (int) (ALPHA * Math.exp(DECELERATION_RATE / (DECELERATION_RATE - 1.0) * l)); in fling()
DOverScroller.java588 private static float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9)); field in OverScroller.SplineOverScroller
790 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDistance()
791 return mFlingFriction * PHYSICAL_COEF * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
797 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDuration()