Searched refs:mMassState (Results 1 – 2 of 2) sorted by relevance
206 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in FlingAnimation.DragForce217 mMassState.mVelocity = (float) (velocity * Math.exp((deltaT / 1000f) * mFriction)); in updateValueAndVelocity()218 mMassState.mValue = (float) (value - velocity / mFriction in updateValueAndVelocity()220 if (isAtEquilibrium(mMassState.mValue, mMassState.mVelocity)) { in updateValueAndVelocity()221 mMassState.mVelocity = 0f; in updateValueAndVelocity()223 return mMassState; in updateValueAndVelocity()
107 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in SpringForce313 mMassState.mValue = (float) (displacement + mFinalPosition); in updateValues()314 mMassState.mVelocity = (float) currentVelocity; in updateValues()315 return mMassState; in updateValues()