Loading core/java/android/animation/ValueAnimator.java +11 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.os.Message; import android.util.AndroidRuntimeException; import android.view.animation.AccelerateDecelerateInterpolator; import android.view.animation.AnimationUtils; import android.view.animation.LinearInterpolator; import java.util.ArrayList; import java.util.HashMap; Loading Loading @@ -478,12 +479,17 @@ public class ValueAnimator extends Animator { /** * Sets the length of the animation. The default duration is 300 milliseconds. * * @param duration The length of the animation, in milliseconds. * @param duration The length of the animation, in milliseconds. This value cannot * be negative. * @return ValueAnimator The object called with setDuration(). This return * value makes it easier to compose statements together that construct and then set the * duration, as in <code>ValueAnimator.ofInt(0, 10).setDuration(500).start()</code>. */ public ValueAnimator setDuration(long duration) { if (duration < 0) { throw new IllegalArgumentException("Animators cannot have negative duration: " + duration); } mDuration = duration; return this; } Loading Loading @@ -829,12 +835,15 @@ public class ValueAnimator extends Animator { * such as acceleration and deceleration. The default value is * {@link android.view.animation.AccelerateDecelerateInterpolator} * * @param value the interpolator to be used by this animation * @param value the interpolator to be used by this animation. A value of <code>null</code> * will result in linear interpolation. */ @Override public void setInterpolator(TimeInterpolator value) { if (value != null) { mInterpolator = value; } else { mInterpolator = new LinearInterpolator(); } } Loading graphics/java/android/graphics/Paint.java +1 −1 Original line number Diff line number Diff line Loading @@ -559,7 +559,7 @@ public class Paint { } /** * Helper for setFlags(), setting or clearing the STRIKE_THRU_TEXT_FLAG bit * Helper for setFlags(), setting or clearing the FAKE_BOLD_TEXT_FLAG bit * * @param fakeBoldText true to set the fakeBoldText bit in the paint's * flags, false to clear it. Loading Loading
core/java/android/animation/ValueAnimator.java +11 −2 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.os.Message; import android.util.AndroidRuntimeException; import android.view.animation.AccelerateDecelerateInterpolator; import android.view.animation.AnimationUtils; import android.view.animation.LinearInterpolator; import java.util.ArrayList; import java.util.HashMap; Loading Loading @@ -478,12 +479,17 @@ public class ValueAnimator extends Animator { /** * Sets the length of the animation. The default duration is 300 milliseconds. * * @param duration The length of the animation, in milliseconds. * @param duration The length of the animation, in milliseconds. This value cannot * be negative. * @return ValueAnimator The object called with setDuration(). This return * value makes it easier to compose statements together that construct and then set the * duration, as in <code>ValueAnimator.ofInt(0, 10).setDuration(500).start()</code>. */ public ValueAnimator setDuration(long duration) { if (duration < 0) { throw new IllegalArgumentException("Animators cannot have negative duration: " + duration); } mDuration = duration; return this; } Loading Loading @@ -829,12 +835,15 @@ public class ValueAnimator extends Animator { * such as acceleration and deceleration. The default value is * {@link android.view.animation.AccelerateDecelerateInterpolator} * * @param value the interpolator to be used by this animation * @param value the interpolator to be used by this animation. A value of <code>null</code> * will result in linear interpolation. */ @Override public void setInterpolator(TimeInterpolator value) { if (value != null) { mInterpolator = value; } else { mInterpolator = new LinearInterpolator(); } } Loading
graphics/java/android/graphics/Paint.java +1 −1 Original line number Diff line number Diff line Loading @@ -559,7 +559,7 @@ public class Paint { } /** * Helper for setFlags(), setting or clearing the STRIKE_THRU_TEXT_FLAG bit * Helper for setFlags(), setting or clearing the FAKE_BOLD_TEXT_FLAG bit * * @param fakeBoldText true to set the fakeBoldText bit in the paint's * flags, false to clear it. Loading