Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/java/android/widget/
H A DScroller.java324 float velocityCoef = 0.f; in computeScrollOffset() local
330 velocityCoef = (d_sup - d_inf) / (t_sup - t_inf); in computeScrollOffset()
331 distanceCoef = d_inf + (t - t_inf) * velocityCoef; in computeScrollOffset()
334 mCurrVelocity = velocityCoef * mDistance / mDuration * 1000.0f; in computeScrollOffset()
H A DOverScroller.java916 float velocityCoef = 0.f; in update() local
922 velocityCoef = (d_sup - d_inf) / (t_sup - t_inf); in update()
923 distanceCoef = d_inf + (t - t_inf) * velocityCoef; in update()
927 mCurrVelocity = velocityCoef * mSplineDistance / mSplineDuration * 1000.0f; in update()
/aosp12/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DOverScroller.java918 float velocityCoef = 0.f; in update() local
924 velocityCoef = (d_sup - d_inf) / (t_sup - t_inf); in update()
925 distanceCoef = d_inf + (t - t_inf) * velocityCoef; in update()
929 mCurrVelocity = velocityCoef * mSplineDistance / mSplineDuration * 1000.0f; in update()