Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DOverScroller.java552 private int mVelocity; field in OverScroller.SplineOverScroller
692 mVelocity = 0; in startScroll()
719 mVelocity = 0; in springback()
742 mVelocity = -delta; // only sign is used in startSpringback()
750 mCurrVelocity = mVelocity = velocity; in fling()
809 mVelocity = (int) (- mDeceleration * totalDuration); in fitOnBounceCurve()
854 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached()
855 final float sign = Math.signum(mVelocity); in onEdgeReached()
859 mDeceleration = - sign * mVelocity * mVelocity / (2.0f * mOver); in onEdgeReached()
865 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached()
[all …]
DScroller.java88 private float mVelocity; field in Scroller
257 mCurrVelocity : mVelocity - mDeceleration * timePassed() / 2000.0f; in getCurrVelocity()
447 mVelocity = velocity; in fling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java284 private float mVelocity; field in FlingAnimationUtils.VelocityInterpolator
289 mVelocity = velocity; in VelocityInterpolator()
296 return time * mVelocity / mDiff; in getInterpolation()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java129 private final VelocityTracker mVelocity; field in PointerLocationView
177 mVelocity = VelocityTracker.obtain(); in PointerLocationView()
543 mVelocity.clear(); in onPointerEvent()
575 mVelocity.addMovement(event); in onPointerEvent()
576 mVelocity.computeCurrentVelocity(1); in onPointerEvent()
607 ps.mXVelocity = mVelocity.getXVelocity(id); in onPointerEvent()
608 ps.mYVelocity = mVelocity.getYVelocity(id); in onPointerEvent()
609 mVelocity.getEstimator(id, ps.mEstimator); in onPointerEvent()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java1154 private float mVelocity; field in PhotoView.ScaleRunnable
1180 mVelocity = (mTargetScale - mStartScale) / ZOOM_ANIMATION_DURATION; in start()
1204 float newScale = (mStartScale + mVelocity * ellapsed); in run()
1425 private float mVelocity; field in PhotoView.RotateRunnable
1444 mVelocity = mTargetRotation / ROTATE_ANIMATION_DURATION; in start()
1469 float rotationAmount = mVelocity * delta; in run()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DPagedView.java2412 private PointF mVelocity; field in PagedView.FlingAlongVectorAnimatorUpdateListener
2422 mVelocity = vel; in FlingAlongVectorAnimatorUpdateListener()
2433 mFrom.left += (mVelocity.x * (curTime - mPrevTime) / 1000f); in onAnimationUpdate()
2434 mFrom.top += (mVelocity.y * (curTime - mPrevTime) / 1000f); in onAnimationUpdate()
2440 mVelocity.x *= mFriction; in onAnimationUpdate()
2441 mVelocity.y *= mFriction; in onAnimationUpdate()