Home | History | Annotate | Download | only in animation

Lines Matching defs:animation

17 package android.animation;
26 import android.view.animation.Animation;
47 * its animations. For example, an animation a1 could be set up to start before animation a2, a2
56 * <a href="{@docRoot}guide/topics/graphics/prop-animation.html#choreography">Property
57 * Animation</a> developer guide.</p>
108 // The amount of time in ms to delay starting the animation after start() is called
115 // relationship captures the order of animation (i.e. parent and child will play sequentially),
134 // consistent within Animation framework, when end() is called without start(), we will start
139 // As a result, the start of the animation is inconsistent with what setCurrentPlayTime(0) would
142 // From O and forward, we will add an additional step of resetting the animation values (unless
143 // the animation was previously seeked and therefore doesn't start from the beginning).
151 // The time, in milliseconds, when last frame of the animation came in. -1 when the animation is
155 // The time, in milliseconds, when the first frame of the animation came in. This is the
157 // -1 when the animation is not running.
160 // The time, in milliseconds, when the first frame of the animation came in.
161 // -1 when the animation is not running.
164 // Indicates whether the animation is reversing.
167 // Indicates whether the animation should register frame callbacks. If false, the animation will
188 public void onAnimationEnd(Animator animation) {
189 if (mNodeMap.get(animation) == null) {
190 throw new AndroidRuntimeException("Error: animation ended is not in the node map");
192 mNodeMap.get(animation).mEnded = true;
260 * previous animation ends.
278 * previous animation ends.
326 Animator animation = node.mAnimation;
327 if (animation instanceof AnimatorSet) {
328 ((AnimatorSet)animation).setTarget(target);
329 } else if (animation instanceof ObjectAnimator) {
330 ((ObjectAnimator)animation).setTarget(target);
355 * @param interpolator the interpolator to be used by each child animation of this AnimatorSet
370 * tells the <code>Builder</code> the animation that is the dependency for
380 * <code>Builder</code> the animation upon which the dependency is created,
388 * @param anim The animation
524 * animation has been started and not yet ended.
540 * The amount of time, in milliseconds, to delay starting the animation after
543 * @return the number of milliseconds to delay running the animation
551 * The amount of time, in milliseconds, to delay starting the animation after
595 * @return The length of the animation, in milliseconds, of each of the child
605 * each child animation will use its own duration. If the duration is set on the AnimatorSet,
606 * then each child animation inherits this duration.
608 * @param duration The length of the animation, in milliseconds, of each of the child
786 // This makes sure the animation events are sorted an up to date.
810 * This method sets the animation values based on the play time. It also fast forward or
814 * {@link android.view.animation.Animation.AnimationListener#onAnimationRepeat(Animation)},
850 // This animation started prior to the current play time, and won't finish before the
861 // Skip to the end of the animation.
866 // Seek unfinished animation to the right time.
899 * Sets the position of the animation to the specified point in time. This time should
900 * be between 0 and the total duration of the animation, including any repetition. If
901 * the animation has not yet been started, then it will not advance forward after it is
903 * actions based on that time. If the animation is already running, then setCurrentPlayTime()
906 * @param playTime The time, in milliseconds, to which the animation is advanced or rewound.
907 * Unless the animation is reversing, the playtime is considered the time since
941 // If the animation is running, just set the seek time and wait until the next frame
942 // (i.e. doAnimationFrame(...)) to advance the animation.
948 * Returns the milliseconds elapsed since the start of the animation.
950 * <p>For ongoing animations, this method returns the current progress of the animation in
951 * terms of play time. For an animation that has not yet been started: if the animation has been
955 * @return the current position in time of the animation in milliseconds
978 // value of a child is dependent on a previous animation, the animation will be
994 // Duration scale is 0, end the animation right away.
1000 // any animation values.
1014 // Offset by the duration that the animation was paused
1068 // The only animation that is running is the delay animation.
1071 // The only remaining animation is the delay animation
1099 * When playing forward, we call start() at the animation's scheduled start time, and make sure
1100 * to pump a frame at the animation's scheduled end time.
1102 * When playing in reverse, we should reverse the animation when we hit animation's end event,
1103 * and expect the animation to end at the its delay ended event, rather than start event.
1113 // If the animation has already been started before its due time (i.e.
1115 // need to cancel the animation to reset the internal state (e.g. frame
1135 // If the animation has already been started before its due time (i.e.
1137 // need to cancel the animation to reset the internal state (e.g. frame
1153 * This method pulses frames into child animations. It scales the input animation play time
1154 * with the duration scale and pass that to the child animation via pulseAnimationFrame(long).
1184 // Register animation callback
1207 // values set at the right time (i.e. the next animation run)
1326 * manually, as we clone each Node (and its animation). The clone will then be sorted,
1344 public void onAnimationEnd(Animator animation) {
1345 if (anim.mNodeMap.get(animation) == null) {
1346 throw new AndroidRuntimeException("Error: animation ended is not in the node"
1349 anim.mNodeMap.get(animation).mEnded = true;
1400 * AnimatorSet is only reversible when the set contains no sequential animation, and no child
1410 * Plays the AnimatorSet in reverse. If the animation has been seeked to a specific play time
1413 * behavior is only set for the current animation; future playing of the animation will use the
1533 // Create the list including the delay animation.
1569 // For the same animation, start event has to happen before end.
1603 + "found after stop for an animation that has the same start and end"
1609 + "delay end is found after stop for an animation");
1731 // All the child nodes are set out to play right after the delay animation
1754 * any dependencies that are associated with that Animation. This includes
1768 * Flag indicating whether the animation in this node is finished. This flag
1769 * is used by AnimatorSet to check, as each animation ends, whether all child animations
1775 * Nodes with animations that are defined to play simultaneously with the animation
1781 * Parent nodes are the nodes with animations preceding current node's animation. Parent
1782 * nodes here are derived from user defined animation sequence.
1787 * Latest parent is the parent node associated with a animation that finishes after all
1798 * Constructs the Node with the animation that it encapsulates. A Node has no
1802 * @param animation The animation that the Node encapsulates.
1804 public Node(Animator animation) {
1805 this.mAnimation = animation;
1871 * This class is a wrapper around a node and an event for the animation corresponding to the
1872 * node. The 3 types of events represent the start of an animation, the end of a start delay of
1873 * an animation, and the end of an animation. When playing forward (i.e. in the non-reverse
1875 * when the animation should finish. When playing in reverse, start delay will not be a part
1876 * of the animation. Therefore, reverse() is called at the end event, and animation should end
1947 * Returns the playtime assuming the animation is forward playing
1989 * multiple relationships. However, note that it is only the animation passed into the initial
2025 * @param anim The animation that is the dependency for the other animations passed into
2034 * Sets up the given animation to play at the same time as the animation supplied in the
2037 * @param anim The animation that will play when the animation supplied to the
2047 * Sets up the given animation to play when the animation supplied in the
2051 * @param anim The animation that will play when the animation supplied to the
2061 * Sets up the given animation to play when the animation supplied in the
2063 * to start when the animation supplied in this method call ends.
2065 * @param anim The animation whose end will cause the animation supplied to the
2075 * Sets up the animation supplied in the
2080 * animation starts.