Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DOverScroller.java555 private float mDeceleration; field in OverScroller.SplineOverScroller
688 mDeceleration = 0.0f; in startScroll()
737 mDeceleration = getDeceleration(delta); in startSpringback()
741 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback()
799 final float durationToApex = - velocity / mDeceleration; in fitOnBounceCurve()
802 final float distanceToApex = velocitySquared / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve()
805 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve()
808 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
812 mDeceleration = getDeceleration(velocity == 0 ? start - end : velocity); in startBounceAfterEdge()
855 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
[all …]
DScroller.java108 private float mDeceleration; field in Scroller
177 mDeceleration = computeDeceleration(ViewConfiguration.getScrollFriction()); in Scroller()
191 mDeceleration = computeDeceleration(friction); in setFriction()
256 mCurrVelocity : mVelocity - mDeceleration * timePassed() / 2000.0f; in getCurrVelocity()