Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DScroller.java317 float velocityCoef = 0.f; in computeScrollOffset() local
323 velocityCoef = (d_sup - d_inf) / (t_sup - t_inf); in computeScrollOffset()
324 distanceCoef = d_inf + (t - t_inf) * velocityCoef; in computeScrollOffset()
327 mCurrVelocity = velocityCoef * mDistance / mDuration * 1000.0f; in computeScrollOffset()
DOverScroller.java924 float velocityCoef = 0.f; in update() local
930 velocityCoef = (d_sup - d_inf) / (t_sup - t_inf); in update()
931 distanceCoef = d_inf + (t - t_inf) * velocityCoef; in update()
935 mCurrVelocity = velocityCoef * mSplineDistance / mSplineDuration * 1000.0f; in update()