OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:FloatValueHolder
(Results
1 - 7
of
7
) sorted by null
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
FloatValueHolder.java
20
* <p>
FloatValueHolder
holds a float value.
FloatValueHolder
provides a setter and a getter (
22
* be performed on a
FloatValueHolder
instance. During each frame of the animation, the
23
*
FloatValueHolder
will have its value updated via {@link #setValue(float)}. The caller can
24
* obtain the up-to-date animation value via {@link
FloatValueHolder
#getValue()}.
26
* <p> Here is an example for creating a {@link FlingAnimation} with a
FloatValueHolder
:
30
*
FloatValueHolder
floatValueHolder
= new
FloatValueHolder
(20f);
31
* FlingAnimation anim = new FlingAnimation(
floatValueHolder
).setStartVelocity(5000)
[
all
...]
FlingAnimation.java
46
* <p>This creates a FlingAnimation that animates a {@link
FloatValueHolder
} instance. During
47
* the animation, the {@link
FloatValueHolder
} instance will be updated via
48
* {@link
FloatValueHolder
#setValue(float)} each frame. The caller can obtain the up-to-date
49
* animation value via {@link
FloatValueHolder
#getValue()}.
51
* <p><strong>Note:</strong> changing the value in the {@link
FloatValueHolder
} via
52
* {@link
FloatValueHolder
#setValue(float)} outside of the animation during an
55
* @param
floatValueHolder
the property to be animated
57
public FlingAnimation(
FloatValueHolder
floatValueHolder
) {
58
super(
floatValueHolder
);
[
all
...]
SpringAnimation.java
66
* <p>This creates a SpringAnimation that animates a {@link
FloatValueHolder
} instance. During
67
* the animation, the {@link
FloatValueHolder
} instance will be updated via
68
* {@link
FloatValueHolder
#setValue(float)} each frame. The caller can obtain the up-to-date
69
* animation value via {@link
FloatValueHolder
#getValue()}.
71
* <p><strong>Note:</strong> changing the value in the {@link
FloatValueHolder
} via
72
* {@link
FloatValueHolder
#setValue(float)} outside of the animation during an
75
* @param
floatValueHolder
the property to be animated
77
public SpringAnimation(
FloatValueHolder
floatValueHolder
) {
78
super(
floatValueHolder
);
[
all
...]
DynamicAnimation.java
329
* Creates a dynamic animation with the given
FloatValueHolder
instance.
331
* @param
floatValueHolder
the
FloatValueHolder
instance to be animated.
333
DynamicAnimation(final
FloatValueHolder
floatValueHolder
) {
335
mProperty = new FloatPropertyCompat("
FloatValueHolder
") {
338
return
floatValueHolder
.getValue();
343
floatValueHolder
.setValue(value);
/frameworks/support/dynamic-animation/src/androidTest/java/androidx/dynamicanimation/tests/
FlingTests.java
36
import androidx.dynamicanimation.animation.
FloatValueHolder
;
109
FloatValueHolder
floatValueHolder
= new
FloatValueHolder
();
110
assertEquals(0.0f,
floatValueHolder
.getValue(), 0.01f);
112
final FlingAnimation anim = new FlingAnimation(
floatValueHolder
).setStartVelocity(-2500);
134
FloatValueHolder
floatValueHolder
= new
FloatValueHolder
();
137
final FlingAnimation animLowFriction = new FlingAnimation(
floatValueHolder
);
[
all
...]
SpringTests.java
46
import androidx.dynamicanimation.animation.
FloatValueHolder
;
117
final
FloatValueHolder
floatValueHolder
= new
FloatValueHolder
(0f);
126
assertEquals(value,
floatValueHolder
.getValue(), 0f);
133
final SpringAnimation anim = new SpringAnimation(
floatValueHolder
)
571
FloatValueHolder
valueHolder = new
FloatValueHolder
(0.5f);
/frameworks/base/packages/EasterEgg/src/com/android/egg/octo/
OctopusDrawable.java
34
import android.support.animation.
FloatValueHolder
;
284
final
FloatValueHolder
[] coords = new
FloatValueHolder
[2];
291
coords[0] = new
FloatValueHolder
(x1);
292
coords[1] = new
FloatValueHolder
(y1);
Completed in 337 milliseconds