Searched refs:mMassState (Results 1 – 2 of 2) sorted by relevance
174 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in FlingAnimation.DragForce182 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()
106 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in SpringForce304 mMassState.mValue = (float) (displacement + mFinalPosition); in updateValues()305 mMassState.mVelocity = (float) currentVelocity; in updateValues()306 return mMassState; in updateValues()