Home
last modified time | relevance | path

Searched refs:mVelocity (Results 1 – 7 of 7) 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/touch/
DSwipeDetector.java163 private float mVelocity; field in SwipeDetector
217 mVelocity = 0; in onTouchEvent()
294 mDisplacement, mVelocity)); in reportDragging()
298 return mListener.onDrag(mDisplacement - mSubtractDisplacement, mVelocity); in reportDragging()
306 mDisplacement, mVelocity)); in reportDragEnd()
308 mListener.onDragEnd(mVelocity, Math.abs(mVelocity) > RELEASE_VELOCITY_PX_MS); in reportDragEnd()
321 if (Math.abs(mVelocity) < 0.001f) { in computeVelocity()
322 mVelocity = velocity; in computeVelocity()
325 mVelocity = interpolate(mVelocity, velocity, alpha); in computeVelocity()
327 return mVelocity; in computeVelocity()
/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/Launcher2/src/com/android/launcher2/
DDeleteDropTarget.java324 private PointF mVelocity;
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/Dialer/java/com/android/incallui/answer/impl/utils/
DFlingAnimationUtils.java272 private float mVelocity; field in FlingAnimationUtils.VelocityInterpolator
277 mVelocity = velocity; in VelocityInterpolator()
284 return time * mVelocity / mDiff; in getInterpolation()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java55 private float mVelocity; field in LauncherScroller
234 mCurrVelocity : mVelocity - mDeceleration * timePassed() / 2000.0f; in getCurrVelocity()
430 mVelocity = velocity; in fling()