Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java402 private float mDeceleration; field in OverScroller.SplineOverScroller
575 mDeceleration = 0.0f; in startScroll()
630 mDeceleration = getDeceleration(delta); in startSpringback()
634 mDuration = (int) (1000.0 * Math.sqrt(-2.0 * delta / mDeceleration)); in startSpringback()
692 final float durationToApex = - velocity / mDeceleration; in fitOnBounceCurve()
695 final float distanceToApex = velocitySquared / 2.0f / Math.abs(mDeceleration); in fitOnBounceCurve()
698 2.0 * (distanceToApex + distanceToEdge) / Math.abs(mDeceleration)); in fitOnBounceCurve()
701 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
705 mDeceleration = getDeceleration(velocity == 0 ? start - end : velocity); in startBounceAfterEdge()
748 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
[all …]
/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.java47 private final Interpolator mDeceleration = new DecelerateInterpolator(); field in MoveScreensaverRunnable
115 mActiveAnimator.setInterpolator(mDeceleration); in run()
132 show.setInterpolator(mDeceleration); in run()