Home
last modified time | relevance | path

Searched refs:mMassState (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
DFlingAnimation.java174 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in FlingAnimation.DragForce
182 mMassState.mVelocity = (float) (velocity * Math.exp((deltaT / 1000f) * mFriction)); in updateValueAndVelocity()
183 mMassState.mValue = (float) (value - velocity / mFriction in updateValueAndVelocity()
185 if (isAtEquilibrium(mMassState.mValue, mMassState.mVelocity)) { in updateValueAndVelocity()
186 mMassState.mVelocity = 0f; in updateValueAndVelocity()
188 return mMassState; in updateValueAndVelocity()
DSpringForce.java106 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in SpringForce
304 mMassState.mValue = (float) (displacement + mFinalPosition); in updateValues()
305 mMassState.mVelocity = (float) currentVelocity; in updateValues()
306 return mMassState; in updateValues()