Loading core/java/android/view/animation/AnimationUtils.java +15 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,9 @@ package android.view.animation; import android.annotation.AnimRes; import android.annotation.InterpolatorRes; import android.annotation.TestApi; import android.compat.annotation.ChangeId; import android.compat.annotation.EnabledSince; import android.compat.annotation.Overridable; import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.res.Resources; Loading Loading @@ -47,6 +50,18 @@ public class AnimationUtils { private static final int TOGETHER = 0; private static final int SEQUENTIALLY = 1; /** * For apps targeting {@link Build.VERSION_CODES#VANILLA_ICE_CREAM} and above, * this change ID enables to use expectedPresentationTime instead of the frameTime * for the frame start time . * * @hide */ @ChangeId @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM) @Overridable public static final long OVERRIDE_ENABLE_EXPECTED_PRSENTATION_TIME = 278730197L; private static class AnimationState { boolean animationClockLocked; long currentVsyncTimeMillis; Loading Loading
core/java/android/view/animation/AnimationUtils.java +15 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,9 @@ package android.view.animation; import android.annotation.AnimRes; import android.annotation.InterpolatorRes; import android.annotation.TestApi; import android.compat.annotation.ChangeId; import android.compat.annotation.EnabledSince; import android.compat.annotation.Overridable; import android.compat.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.res.Resources; Loading Loading @@ -47,6 +50,18 @@ public class AnimationUtils { private static final int TOGETHER = 0; private static final int SEQUENTIALLY = 1; /** * For apps targeting {@link Build.VERSION_CODES#VANILLA_ICE_CREAM} and above, * this change ID enables to use expectedPresentationTime instead of the frameTime * for the frame start time . * * @hide */ @ChangeId @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.VANILLA_ICE_CREAM) @Overridable public static final long OVERRIDE_ENABLE_EXPECTED_PRSENTATION_TIME = 278730197L; private static class AnimationState { boolean animationClockLocked; long currentVsyncTimeMillis; Loading