Home
last modified time | relevance | path

Searched refs:mDampingRatio (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DSpringForce.java85 double mDampingRatio = DAMPING_RATIO_MEDIUM_BOUNCY; field in SpringForce
174 mDampingRatio = dampingRatio; in setDampingRatio()
186 return (float) mDampingRatio; in getDampingRatio()
221 double c = 2 * mNaturalFreq * mDampingRatio; in getAcceleration()
256 if (mDampingRatio > 1) { in init()
258 mGammaPlus = -mDampingRatio * mNaturalFreq in init()
259 + mNaturalFreq * Math.sqrt(mDampingRatio * mDampingRatio - 1); in init()
260 mGammaMinus = -mDampingRatio * mNaturalFreq in init()
261 - mNaturalFreq * Math.sqrt(mDampingRatio * mDampingRatio - 1); in init()
262 } else if (mDampingRatio >= 0 && mDampingRatio < 1) { in init()
[all …]
DSpringAnimation.java191 return mSpring.mDampingRatio > 0; in canSkipToEnd()
/frameworks/support/samples/SupportAnimationDemos/src/main/java/com/example/android/support/animation/
DMainActivity.java34 private float mDampingRatio = 1.0f; field in MainActivity
87 anim1X.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()
88 anim1Y.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()
89 anim2X.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()
90 anim2Y.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()
126 mDampingRatio = i / 80.0f; in setupSeekBars()
128 mDampingRatio = (float) Math.exp((i - 90) / 10.0); in setupSeekBars()
130 mDampingRatio = 1; in setupSeekBars()
132 drTxt.setText(String.format("%.4f", (float) mDampingRatio)); in setupSeekBars()
DSpringActivity.java35 private float mDampingRatio; field in SpringActivity
93 anim.getSpring().setDampingRatio(mDampingRatio).setStiffness(mStiffness); in onCreate()
111 mDampingRatio = i / 80.0f; in setupSeekBars()
113 mDampingRatio = (float) Math.exp((i - 90) / 10.0); in setupSeekBars()
115 mDampingRatio = 1; in setupSeekBars()
117 drTxt.setText(String.format("%.4f", (float) mDampingRatio)); in setupSeekBars()