/packages/apps/Launcher2/src/com/android/launcher2/ |
InterruptibleInOutAnimator.java | 35 private ValueAnimator mAnimator; 49 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration); 54 mAnimator.addListener(new AnimatorListenerAdapter() { 63 final long currentPlayTime = mAnimator.getCurrentPlayTime(); 66 ((Float) mAnimator.getAnimatedValue()).floatValue(); 77 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); 79 mAnimator.setFloatValues(startValue, toValue); 80 mAnimator.start(); 85 mAnimator.cancel(); 90 mAnimator.end() [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
InterruptibleInOutAnimator.java | 35 private ValueAnimator mAnimator; 49 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration); 54 mAnimator.addListener(new AnimatorListenerAdapter() { 63 final long currentPlayTime = mAnimator.getCurrentPlayTime(); 66 ((Float) mAnimator.getAnimatedValue()).floatValue(); 77 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); 79 mAnimator.setFloatValues(startValue, toValue); 80 mAnimator.start(); 85 mAnimator.cancel(); 90 mAnimator.end() [all...] |
/cts/tests/tests/animation/src/android/animation/cts/ |
AnimatorTest.java | 28 private Animator mAnimator; 39 mAnimator = mActivity.createAnimatorWithDuration(mDuration); 43 mAnimator = new ValueAnimator(); 44 assertNotNull(mAnimator); 48 Animator animatorClone = mAnimator.clone(); 49 assertEquals(mAnimator.getDuration(), animatorClone.getDuration()); 54 mAnimator.setStartDelay(startDelay); 55 assertEquals(startDelay, mAnimator.getStartDelay()); 59 mAnimator.start(); 60 assertTrue(mAnimator.isRunning()) [all...] |
PropertyValuesHolderTest.java | 31 private Animator mAnimator; 46 mAnimator = mActivity.createAnimatorWithDuration(mDuration);
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
ValueAnimatorEventsTest.java | 25 mAnimator = ValueAnimator.ofFloat(0, 1);
|
ViewPropertyAnimatorTest.java | 33 * the mAnimator object. 57 protected ViewPropertyAnimator mAnimator; // The animator used in the tests. Must be set in subclass 134 * the protected mAnimator object used in all tests. Overrides must create that animator 143 mAnimator = button.animate().x(100).y(100); 180 mAnimator.setListener(mListener); 181 mAnimator.setDuration(ANIM_DURATION); 196 mAnimator.cancel(); 211 mAnimator.start(); 212 mAnimator.cancel(); 228 mAnimator.setStartDelay(ANIM_DELAY) [all...] |
EventsTest.java | 31 * the mAnimator object. 58 protected Animator mAnimator; // The animator used in the tests. Must be set in subclass 198 * the protected mAnimator object used in all tests. Overrides must create that animator 237 mAnimator.addListener(mListener); 238 mAnimator.setDuration(ANIM_DURATION); 253 mAnimator.cancel(); 263 mAnimator.end(); 278 mAnimator.start(); 279 mAnimator.cancel(); 301 mAnimator.start() [all...] |
AnimatorSetEventsTest.java | 38 mAnimator = new AnimatorSet(); 39 ((AnimatorSet)mAnimator).playSequentially(xAnim, yAnim); 45 return (2 * mAnimator.getDuration()) + (2 * mAnimator.getStartDelay()) +
|
ObjectAnimatorEventsTest.java | 31 mAnimator = ObjectAnimator.ofFloat(button, "translationX", 0, 100);
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
TransitionAnimationView.java | 31 private ObjectAnimator mAnimator; 77 if (mAnimator != null && mAnimator.isRunning()) { 78 mAnimator.end(); 82 mAnimator = ObjectAnimator.ofFloat(mMaskingView, View.ALPHA, 0.0f, 1.0f); 85 mAnimator = ObjectAnimator.ofFloat(mMaskingView, View.ALPHA, 1.0f, 0.0f); 88 mAnimator.setDuration(duration); 90 mAnimator.start();
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ButteryProgressBar.java | 31 private final ValueAnimator mAnimator; 85 mAnimator = new ValueAnimator(); 86 mAnimator.setFloatValues(1.0f, 2.0f); 87 mAnimator.setRepeatCount(ValueAnimator.INFINITE); 88 mAnimator.setInterpolator(new ExponentialInterpolator()); 89 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { 115 mAnimator.setDuration((int) (BASE_DURATION_MS * durationMult)); 122 if (!mAnimator.isStarted()) { 128 final float val = (Float) mAnimator.getAnimatedValue(); 158 if (mAnimator == null) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
PlayAnimationThread.java | 28 private final Animator mAnimator; 33 mAnimator = animator; 40 mAnimator.start();
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
BitmapMutateActivity.java | 34 private ObjectAnimator mAnimator; 46 mAnimator = ObjectAnimator.ofInt(view, "offset", 0, PATTERN_SIZE - 1); 47 mAnimator.setDuration(1500); 48 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); 49 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); 50 mAnimator.start(); 56 mAnimator.cancel();
|
LinesActivity.java | 33 private ObjectAnimator mAnimator; 42 mAnimator = ObjectAnimator.ofFloat(view, "offset", 0.0f, 15.0f); 43 mAnimator.setDuration(1500); 44 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); 45 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); 46 mAnimator.start(); 52 mAnimator.cancel();
|
ColoredRectsActivity.java | 32 private ObjectAnimator mAnimator;
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardGlowStripView.java | 50 private ValueAnimator mAnimator; 107 if (mAnimator != null) { 108 mAnimator.cancel(); 112 mAnimator = ValueAnimator.ofFloat(from, to); 113 mAnimator.setDuration(DURATION); 114 mAnimator.setInterpolator(new LinearInterpolator()); 115 mAnimator.addListener(new AnimatorListenerAdapter() { 128 mAnimator.addUpdateListener(new AnimatorUpdateListener() { 135 mAnimator.start();
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
DatePickerDialog.java | 84 private AccessibleDateAnimator mAnimator; 231 mAnimator = (AccessibleDateAnimator) view.findViewById(R.id.animator); 232 mAnimator.addView(mDayPickerView); 233 mAnimator.addView(mYearPickerView); 234 mAnimator.setDateMillis(mCalendar.getTimeInMillis()); 238 mAnimator.setInAnimation(animation); 242 mAnimator.setOutAnimation(animation2); 300 mAnimator.setDisplayedChild(MONTH_AND_DAY_VIEW); 307 mAnimator.setContentDescription(mDayPickerDescription+": "+dayString); 308 Utils.tryAccessibilityAnnounce(mAnimator, mSelectDay) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
MasterImage.java | 89 private ValueAnimator mAnimator = null; 415 if (mAnimator != null) { 416 mAnimator.cancel(); 426 mAnimator = ValueAnimator.ofFloat(0, 1); 427 mAnimator.setDuration(650); 431 mAnimator = ValueAnimator.ofFloat(0, 90); 432 mAnimator.setDuration(500); 436 mAnimator = ValueAnimator.ofFloat(1, 0, -1); 437 mAnimator.setDuration(500); 439 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() [all...] |
ImageStraighten.java | 60 private ValueAnimator mAnimator = null; 92 mAnimator = ValueAnimator.ofFloat(1, 0); 93 mAnimator.setStartDelay(delay); 94 mAnimator.setDuration(mAnimDelay); 95 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { 102 mAnimator.start();
|
/packages/apps/Browser/src/com/android/browser/ |
NavTabScroller.java | 63 private AnimatorSet mAnimator; 272 if ((v == null) || (mAnimator != null)) return; 317 mAnimator = new AnimatorSet(); 336 mAnimator.playSequentially(set1, set2); 339 mAnimator.playSequentially(set1, scroll1); 344 mAnimator.playSequentially(set1, trans2); 347 mAnimator.addListener(new AnimatorListenerAdapter() { 351 mAnimator = null; 358 mAnimator.start(); 433 if ((v != null) && (mAnimator == null)) [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
AppWindowAnimator.java | 22 final WindowAnimator mAnimator; 30 // Protect with mAnimator. 63 mAnimator = atoken.mAnimator; 151 mAnimator.getScreenRotationAnimationLocked(Display.DEFAULT_DISPLAY); 247 mAnimator.setAppLayoutChanges(this, WindowManagerPolicy.FINISH_LAYOUT_REDO_ANIM, 291 pw.print(prefix); pw.print("mAnimator="); pw.println(mAnimator);
|
WindowStateAnimator.java | 60 final WindowAnimator mAnimator; 159 mAnimator = service.mAnimator; 321 if (mAnimator.mWindowDetachedWallpaper == mWin) { 322 mAnimator.mWindowDetachedWallpaper = null; 371 mAnimator.setPendingLayoutChanges(displayId, WindowManagerPolicy.FINISH_LAYOUT_REDO_ANIM); 373 "WindowStateAnimator", mAnimator.getPendingLayoutChanges(displayId)); 417 mAnimator.hideWallpapersLocked(mWin); 805 mAnimator.hideWallpapersLocked(mWin); [all...] |
AppWindowToken.java | 51 final WindowAnimator mAnimator; 114 mAnimator = service.mAnimator;
|
/packages/apps/InCallUI/src/com/android/incallui/ |
AnimationUtils.java | 154 private final ObjectAnimator mAnimator; 158 mAnimator = ObjectAnimator.ofInt(this, "crossFadeAlpha", 0xff, 0); 175 return mAnimator;
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
MonthWeekEventsView.java | 182 private volatile Animator mAnimator = null; 188 if (mAnimator != animation) { 200 mAnimator = mTodayAnimator; 208 mAnimator.removeAllListeners(); 209 mAnimator = null; 217 mAnimator = animation; [all...] |