Home
last modified time | relevance | path

Searched refs:mVelocity (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java550 private int mVelocity; field in OverScroller.SplineOverScroller
693 mVelocity = 0; in startScroll()
720 mVelocity = 0; in springback()
743 mVelocity = -delta; // only sign is used in startSpringback()
751 mCurrVelocity = mVelocity = velocity; in fling()
810 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
855 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
856 final float sign = Math.signum(mVelocity); in onEdgeReached()
860 mDeceleration = - sign * mVelocity * mVelocity / (2.0f * mOver); in onEdgeReached()
866 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached()
[all …]
DScroller.java58 private float mVelocity; field in Scroller
204 return mVelocity - mDeceleration * timePassed() / 2000.0f; in getCurrVelocity()
393 mVelocity = velocity; in fling()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DOverScroller.java396 private int mVelocity; field in OverScroller.SplineOverScroller
576 mVelocity = 0; in startScroll()
609 mVelocity = 0; in springback()
632 mVelocity = -delta; // only sign is used in startSpringback()
640 mCurrVelocity = mVelocity = velocity; in fling()
701 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
747 final float velocitySquared = (float) mVelocity * mVelocity; in onEdgeReached()
749 final float sign = Math.signum(mVelocity); in onEdgeReached()
759 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached()
760 mDuration = - (int) (1000.0f * mVelocity / mDeceleration); in onEdgeReached()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DDampedSpring.java33 private float mVelocity = 0f; field in DampedSpring
114 float force = delta - 2.0f * mVelocity; in update()
116 mVelocity += force * dts; in update()
117 mValue += mVelocity * dts; in update()
132 boolean hasVelocity = Math.abs(mVelocity) >= EPSILON; in isActive()
143 mVelocity = 0.0f;
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringAnimationBuilder.java39 private float mVelocity = 0; field in SpringAnimationBuilder
127 mVelocity = startVelocity; in setStartVelocity()
152 b = beta * a / (2 * gamma) + mVelocity / gamma; in build()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DStaggeredWorkspaceAnim.java64 private final float mVelocity; field in StaggeredWorkspaceAnim
72 mVelocity = velocity; in StaggeredWorkspaceAnim()
178 ((SpringObjectAnimator) a).startSpring(1f, mVelocity, null); in start()