Home
last modified time | relevance | path

Searched refs:finalPosition (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DSpringAnimation.java105 float finalPosition) { in SpringAnimation() argument
107 mSpring = new SpringForce(finalPosition); in SpringAnimation()
151 public void animateToFinalPosition(float finalPosition) { in animateToFinalPosition() argument
153 mPendingPosition = finalPosition; in animateToFinalPosition()
156 mSpring = new SpringForce(finalPosition); in animateToFinalPosition()
158 mSpring.setFinalPosition(finalPosition); in animateToFinalPosition()
201 double finalPosition = mSpring.getFinalPosition(); in sanityCheck() local
202 if (finalPosition > mMaxValue) { in sanityCheck()
205 } else if (finalPosition < mMinValue) { in sanityCheck()
DSpringForce.java122 public SpringForce(float finalPosition) { in SpringForce() argument
123 mFinalPosition = finalPosition; in SpringForce()
195 public SpringForce setFinalPosition(float finalPosition) { in setFinalPosition() argument
196 mFinalPosition = finalPosition; in setFinalPosition()
/frameworks/support/dynamic-animation/src/androidTest/java/androidx/dynamicanimation/tests/
DSpringTests.java523 final float finalPosition = 10f; in testSkipToEnd() local
525 finalPosition); in testSkipToEnd()
545 verify(mockListener, timeout(100).times(1)).onAnimationEnd(anim, false, finalPosition, 0); in testSkipToEnd()
554 anim.animateToFinalPosition(finalPosition + 1000f); in testSkipToEnd()
563 finalPosition + 1000f, 0); in testSkipToEnd()