Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 396a4820 authored by Doris Liu's avatar Doris Liu Committed by Android (Google) Code Review
Browse files

Merge "Refactor AnimatorSet in prep for adding more functionalities"

parents 8b707fbf 1309914e
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -26,6 +26,11 @@ import java.util.ArrayList;
 */
public abstract class Animator implements Cloneable {

    /**
     * The value used to indicate infinite duration (e.g. when Animators repeat infinitely).
     * @hide
     */
    public static final long DURATION_INFINITE = -1;
    /**
     * The set of listeners to be sent events through the life of an animation.
     */
@@ -183,6 +188,16 @@ public abstract class Animator implements Cloneable {
     */
    public abstract long getDuration();

    /**
     * Gets the total duration of the animation, accounting for animation sequences, start delay,
     * and repeating. Return {@link #DURATION_INFINITE} if the duration is infinite.
     * @hide
     * TODO: Unhide
     */
    public long getTotalDuration() {
        return getStartDelay() + getDuration();
    }

    /**
     * The time interpolator used in calculating the elapsed fraction of the
     * animation. The interpolator determines whether the animation runs with