Home
last modified time | relevance | path

Searched refs:floatValueHolder (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/dynamic-animation/src/androidTest/java/androidx/dynamicanimation/tests/
DFlingTests.java109 FloatValueHolder floatValueHolder = new FloatValueHolder(); in testFloatValueHolder() local
110 assertEquals(0.0f, floatValueHolder.getValue(), 0.01f); in testFloatValueHolder()
112 final FlingAnimation anim = new FlingAnimation(floatValueHolder).setStartVelocity(-2500); in testFloatValueHolder()
134 FloatValueHolder floatValueHolder = new FloatValueHolder(); in testFriction() local
137 final FlingAnimation animLowFriction = new FlingAnimation(floatValueHolder); in testFriction()
138 final FlingAnimation animHighFriction = new FlingAnimation(floatValueHolder); in testFriction()
177 FloatValueHolder floatValueHolder = new FloatValueHolder(); in testVelocityThreshold() local
180 final FlingAnimation animLowThreshold = new FlingAnimation(floatValueHolder); in testVelocityThreshold()
181 final FlingAnimation animHighThreshold = new FlingAnimation(floatValueHolder); in testVelocityThreshold()
DSpringTests.java117 final FloatValueHolder floatValueHolder = new FloatValueHolder(0f); in testFloatValueHolder() local
126 assertEquals(value, floatValueHolder.getValue(), 0f); in testFloatValueHolder()
133 final SpringAnimation anim = new SpringAnimation(floatValueHolder) in testFloatValueHolder()
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DSpringAnimation.java77 public SpringAnimation(FloatValueHolder floatValueHolder) { in SpringAnimation() argument
78 super(floatValueHolder); in SpringAnimation()
DFlingAnimation.java57 public FlingAnimation(FloatValueHolder floatValueHolder) { in FlingAnimation() argument
58 super(floatValueHolder); in FlingAnimation()
DDynamicAnimation.java333 DynamicAnimation(final FloatValueHolder floatValueHolder) { in DynamicAnimation() argument
338 return floatValueHolder.getValue(); in DynamicAnimation()
343 floatValueHolder.setValue(value); in DynamicAnimation()