Loading core/api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -3901,7 +3901,7 @@ package android.animation { method public Object getAnimatedValue(String); method public long getCurrentPlayTime(); method public long getDuration(); method @FloatRange(from=0, to=1) public static float getDurationScale(); method @FloatRange(from=0) public static float getDurationScale(); method public static long getFrameDelay(); method public int getRepeatCount(); method public int getRepeatMode(); Loading Loading @@ -3941,7 +3941,7 @@ package android.animation { } public static interface ValueAnimator.DurationScaleChangeListener { method public void onChanged(float); method public void onChanged(@FloatRange(from=0) float); } } core/api/test-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ package android.accessibilityservice { package android.animation { public class ValueAnimator extends android.animation.Animator { method @MainThread public static void setDurationScale(@FloatRange(from=0, to=1) float); method @MainThread public static void setDurationScale(@FloatRange(from=0) float); } } Loading core/java/android/animation/ValueAnimator.java +4 −4 Original line number Diff line number Diff line Loading @@ -316,7 +316,7 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio @UnsupportedAppUsage @TestApi @MainThread public static void setDurationScale(@FloatRange(from = 0, to = 1) float durationScale) { public static void setDurationScale(@FloatRange(from = 0) float durationScale) { sDurationScale = durationScale; List<WeakReference<DurationScaleChangeListener>> listenerCopy; Loading @@ -340,7 +340,7 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio * * @return the duration scale. */ @FloatRange(from = 0, to = 1) @FloatRange(from = 0) public static float getDurationScale() { return sDurationScale; } Loading Loading @@ -1798,8 +1798,8 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio public interface DurationScaleChangeListener { /** * Called when the duration scale changes. * @param scale the duration scalel * @param scale the duration scale */ void onChanged(float scale); void onChanged(@FloatRange(from = 0) float scale); } } Loading
core/api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -3901,7 +3901,7 @@ package android.animation { method public Object getAnimatedValue(String); method public long getCurrentPlayTime(); method public long getDuration(); method @FloatRange(from=0, to=1) public static float getDurationScale(); method @FloatRange(from=0) public static float getDurationScale(); method public static long getFrameDelay(); method public int getRepeatCount(); method public int getRepeatMode(); Loading Loading @@ -3941,7 +3941,7 @@ package android.animation { } public static interface ValueAnimator.DurationScaleChangeListener { method public void onChanged(float); method public void onChanged(@FloatRange(from=0) float); } }
core/api/test-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ package android.accessibilityservice { package android.animation { public class ValueAnimator extends android.animation.Animator { method @MainThread public static void setDurationScale(@FloatRange(from=0, to=1) float); method @MainThread public static void setDurationScale(@FloatRange(from=0) float); } } Loading
core/java/android/animation/ValueAnimator.java +4 −4 Original line number Diff line number Diff line Loading @@ -316,7 +316,7 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio @UnsupportedAppUsage @TestApi @MainThread public static void setDurationScale(@FloatRange(from = 0, to = 1) float durationScale) { public static void setDurationScale(@FloatRange(from = 0) float durationScale) { sDurationScale = durationScale; List<WeakReference<DurationScaleChangeListener>> listenerCopy; Loading @@ -340,7 +340,7 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio * * @return the duration scale. */ @FloatRange(from = 0, to = 1) @FloatRange(from = 0) public static float getDurationScale() { return sDurationScale; } Loading Loading @@ -1798,8 +1798,8 @@ public class ValueAnimator extends Animator implements AnimationHandler.Animatio public interface DurationScaleChangeListener { /** * Called when the duration scale changes. * @param scale the duration scalel * @param scale the duration scale */ void onChanged(float scale); void onChanged(@FloatRange(from = 0) float scale); } }