Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DScroller.java97 private static float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9)); field in Scroller
480 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDuration()
486 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDistance()
487 return mFlingFriction * mPhysicalCoeff * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
DOverScroller.java587 private static float DECELERATION_RATE = (float) (Math.log(0.78) / Math.log(0.9)); field in OverScroller.SplineOverScroller
786 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDistance()
787 … return mFlingFriction * mPhysicalCoeff * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
793 final double decelMinusOne = DECELERATION_RATE - 1.0; in getSplineFlingDuration()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java1241 private static final float DECELERATION_RATE = 20000f; field in PhotoView.TranslateRunnable
1273 mDecelerationX = (float) (DECELERATION_RATE * Math.cos(angle)); in start()
1274 mDecelerationY = (float) (DECELERATION_RATE * Math.sin(angle)); in start()
1322 mDecelerationX = (mVelocityX > 0) ? DECELERATION_RATE : -DECELERATION_RATE; in run()
1327 mDecelerationY = (mVelocityY > 0) ? DECELERATION_RATE : -DECELERATION_RATE; in run()