Loading core/java/android/view/animation/AnimationUtils.java +1 −8 Original line number Diff line number Diff line Loading @@ -32,7 +32,6 @@ import android.os.SystemClock; import android.util.AttributeSet; import android.util.TimeUtils; import android.util.Xml; import android.view.Choreographer; import android.view.InflateException; import org.xmlpull.v1.XmlPullParser; Loading Loading @@ -154,14 +153,8 @@ public class AnimationUtils { */ public static long getExpectedPresentationTimeNanos() { AnimationState state = sAnimationState.get(); if (state.animationClockLocked) { return state.mExpectedPresentationTimeNanos; } // When this methoed is called outside of a Choreographer callback, // we obtain the value of expectedPresentTimeNanos from the Choreographer. // This helps avoid returning a time that could potentially be earlier than current time. return Choreographer.getInstance().getLatestExpectedPresentTimeNanos(); } /** * The expected presentation time of a frame in the {@link SystemClock#uptimeMillis()}. Loading Loading
core/java/android/view/animation/AnimationUtils.java +1 −8 Original line number Diff line number Diff line Loading @@ -32,7 +32,6 @@ import android.os.SystemClock; import android.util.AttributeSet; import android.util.TimeUtils; import android.util.Xml; import android.view.Choreographer; import android.view.InflateException; import org.xmlpull.v1.XmlPullParser; Loading Loading @@ -154,14 +153,8 @@ public class AnimationUtils { */ public static long getExpectedPresentationTimeNanos() { AnimationState state = sAnimationState.get(); if (state.animationClockLocked) { return state.mExpectedPresentationTimeNanos; } // When this methoed is called outside of a Choreographer callback, // we obtain the value of expectedPresentTimeNanos from the Choreographer. // This helps avoid returning a time that could potentially be earlier than current time. return Choreographer.getInstance().getLatestExpectedPresentTimeNanos(); } /** * The expected presentation time of a frame in the {@link SystemClock#uptimeMillis()}. Loading