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

/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
H A DOverScrollerSGV.java555 private int mVelocity; field in class:OverScrollerSGV.SplineOverScroller
695 mVelocity = 0;
722 mVelocity = 0;
745 mVelocity = -delta; // only sign is used
753 mCurrVelocity = mVelocity = velocity;
812 mVelocity = (int) (- mDeceleration * totalDuration);
857 // mStart, mVelocity and mStartTime were adjusted to their values when edge was reached.
858 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration));
859 final float sign = Math.signum(mVelocity);
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DOverScroller.java553 private int mVelocity; field in class:OverScroller.SplineOverScroller
696 mVelocity = 0;
723 mVelocity = 0;
746 mVelocity = -delta; // only sign is used
754 mCurrVelocity = mVelocity = velocity;
813 mVelocity = (int) (- mDeceleration * totalDuration);
857 // mStart, mVelocity and mStartTime were adjusted to their values when edge was reached.
858 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration));
859 final float sign = Math.signum(mVelocity);
[all...]
H A DScroller.java59 private float mVelocity; field in class:Scroller
205 return mVelocity - mDeceleration * timePassed() / 2000.0f;
394 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 DDeleteDropTarget.java438 private PointF mVelocity; field in class:DeleteDropTarget.FlingAlongVectorAnimatorUpdateListener
449 mVelocity = vel;
471 mFrom.left += (mVelocity.x * (curTime - mPrevTime) / 1000f);
472 mFrom.top += (mVelocity.y * (curTime - mPrevTime) / 1000f);
478 mVelocity.x *= mFriction;
479 mVelocity.y *= mFriction;
H A DLauncherScroller.java56 private float mVelocity; field in class:LauncherScroller
235 mCurrVelocity : mVelocity - mDeceleration * timePassed() / 2000.0f;
431 mVelocity = velocity;
H A DPagedView.java2603 private PointF mVelocity; field in class:PagedView.FlingAlongVectorAnimatorUpdateListener
2613 mVelocity = vel;
2624 mFrom.left += (mVelocity.x * (curTime - mPrevTime) / 1000f);
2625 mFrom.top += (mVelocity.y * (curTime - mPrevTime) / 1000f);
2631 mVelocity.x *= mFriction;
2632 mVelocity.y *= mFriction;

Completed in 183 milliseconds