Lines Matching refs:animation
19 import android.animation.Animator;
20 import android.animation.AnimatorListenerAdapter;
21 import android.animation.ValueAnimator;
22 import android.animation.Animator.AnimatorListener;
29 * This is a helper class that listens to updates from the corresponding animation.
30 * For the first two frames, it adjusts the current play time of the animation to
31 * prevent jank at the beginning of the animation
54 public void onAnimationStart (Animator animation) {
55 final ValueAnimator va = (ValueAnimator) animation;
80 public void onAnimationUpdate(final ValueAnimator animation) {
95 // force an invalidate here to make sure the animation continues to advance
97 animation.setCurrentPlayTime(0);
101 // prevents a large jump in the animation due to an expensive first frame
105 animation.setCurrentPlayTime(IDEAL_FRAME_DURATION);
111 animation.removeUpdateListener(FirstFrameAnimatorHelper.this);
115 if (DEBUG) print(animation);
119 if (DEBUG) print(animation);
123 public void print(ValueAnimator animation) {
124 float flatFraction = animation.getCurrentPlayTime() / (float) animation.getDuration();
127 mTarget.isDirty() + " " + flatFraction + " " + this + " " + animation);