Home
last modified time | relevance | path

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

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java556 private float mDeceleration; field in OverScroller.SplineOverScroller
692 mDeceleration = 0.0f; in startScroll()
741 mDeceleration = getDeceleration(delta); in startSpringback()
745 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback()
803 final float durationToApex = - velocity / mDeceleration; in fitOnBounceCurve()
804 final float distanceToApex = velocity * velocity / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve()
807 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve()
810 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
814 mDeceleration = getDeceleration(velocity == 0 ? start - end : velocity); in startBounceAfterEdge()
855 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
[all …]
DScroller.java71 private float mDeceleration; field in Scroller
129 mDeceleration = computeDeceleration(ViewConfiguration.getScrollFriction()); in Scroller()
141 mDeceleration = computeDeceleration(friction); in setFriction()
204 return mVelocity - mDeceleration * timePassed() / 2000.0f; in getCurrVelocity()
/packages/apps/DeskClock/src/com/android/deskclock/
DMoveScreensaverRunnable.kt47 private val mDeceleration: Interpolator = DecelerateInterpolator() constant in com.android.deskclock.MoveScreensaverRunnable
95 mActiveAnimator?.interpolator = mDeceleration in run()
112 show.interpolator = mDeceleration in run()