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

/packages/apps/Camera2/src/com/android/camera/ui/motion/
H A DDampedSpring.java33 private float mVelocity = 0f; field in class:DampedSpring
114 float force = delta - 2.0f * mVelocity;
116 mVelocity += force * dts;
117 mValue += mVelocity * dts;
132 boolean hasVelocity = Math.abs(mVelocity) >= EPSILON;
143 mVelocity = 0.0f;
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DVerticalPullDetector.java100 private float mVelocity; field in class:VerticalPullDetector
159 mVelocity = 0;
223 mDisplacementY, mVelocity));
226 return mListener.onDrag(mDisplacementY - mSubtractDisplacement, mVelocity);
234 mDisplacementY, mVelocity));
236 mListener.onDragEnd(mVelocity, Math.abs(mVelocity) > RELEASE_VELOCITY_PX_MS);
253 if (Math.abs(mVelocity) < 0.001f) {
254 mVelocity = velocity;
257 mVelocity
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DOverScroller.java550 private int mVelocity; field in class:OverScroller.SplineOverScroller
693 mVelocity = 0;
720 mVelocity = 0;
743 mVelocity = -delta; // only sign is used
751 mCurrVelocity = mVelocity = velocity;
810 mVelocity = (int) (- mDeceleration * totalDuration);
854 // mStart, mVelocity and mStartTime were adjusted to their values when edge was reached.
855 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration));
856 final float sign = Math.signum(mVelocity);
[all...]
H A DScroller.java58 private float mVelocity; field in class:Scroller
204 return mVelocity - mDeceleration * timePassed() / 2000.0f;
393 mVelocity = velocity;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDeleteDropTarget.java324 private PointF mVelocity; field in class:DeleteDropTarget.FlingAlongVectorAnimatorUpdateListener
335 mVelocity = vel;
357 mFrom.left += (mVelocity.x * (curTime - mPrevTime) / 1000f);
358 mFrom.top += (mVelocity.y * (curTime - mPrevTime) / 1000f);
364 mVelocity.x *= mFriction;
365 mVelocity.y *= mFriction;
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherScroller.java55 private float mVelocity; field in class:LauncherScroller
234 mCurrVelocity : mVelocity - mDeceleration * timePassed() / 2000.0f;
430 mVelocity = velocity;

Completed in 259 milliseconds