/frameworks/base/core/tests/coretests/src/android/animation/ |
D | EventsTest.java | 70 protected Animator mAnimator; // The animator used in the tests. Must be set in subclass field in EventsTest 242 mAnimator.addListener(listener); in setUp() 243 mAnimator.setDuration(ANIM_DURATION); in setUp() 258 mAnimator.cancel(); in testCancel() 269 mAnimator.end(); in testEnd() 283 mAnimator.start(); in testStartCancel() 284 mAnimator.cancel(); in testStartCancel() 304 mAnimator.start(); in testStartEnd() 305 mAnimator.end(); in testStartEnd() 321 mAnimator.setStartDelay(ANIM_DELAY); in testStartDelayedCancel() [all …]
|
D | ViewPropertyAnimatorTest.java | 70 …protected ViewPropertyAnimator mAnimator; // The animator used in the tests. Must be set in subcla… field in ViewPropertyAnimatorTest 142 mAnimator = button.animate().x(100).y(100); in setUp() 177 mAnimator.setListener(mListener); in setUp() 178 mAnimator.setDuration(ANIM_DURATION); in setUp() 194 mAnimator.cancel(); in testCancel() 208 mAnimator.start(); in testStartCancel() 209 mAnimator.cancel(); in testStartCancel() 225 mAnimator.setStartDelay(ANIM_DELAY); in testStartDelayedCancel() 229 mAnimator.start(); in testStartDelayedCancel() 230 mAnimator.cancel(); in testStartDelayedCancel() [all …]
|
D | AnimatorSetEventsTest.java | 42 mAnimator = new AnimatorSet(); in setUp() 43 ((AnimatorSet)mAnimator).playSequentially(xAnim, yAnim); in setUp() 49 return (2 * mAnimator.getDuration()) + (2 * mAnimator.getStartDelay()) + in getTimeout()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDetailClipper.java | 32 private Animator mAnimator; field in QSDetailClipper 40 if (mAnimator != null) { in animateCircularClip() 41 mAnimator.cancel(); in animateCircularClip() 57 mAnimator = ViewAnimationUtils.createCircularReveal(mDetail, x, y, innerR, r); in animateCircularClip() 59 mAnimator = ViewAnimationUtils.createCircularReveal(mDetail, x, y, r, innerR); in animateCircularClip() 61 mAnimator.setDuration((long)(mAnimator.getDuration() * 1.5)); in animateCircularClip() 63 mAnimator.addListener(listener); in animateCircularClip() 66 mBackground.startTransition((int)(mAnimator.getDuration() * 0.6)); in animateCircularClip() 67 mAnimator.addListener(mVisibleOnStart); in animateCircularClip() 69 mDetail.postDelayed(mReverseBackground, (long)(mAnimator.getDuration() * 0.65)); in animateCircularClip() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SettingsButton.java | 43 private ObjectAnimator mAnimator; field in SettingsButton 53 return mAnimator != null && mAnimator.isRunning(); in isAnimating() 95 if (mAnimator != null) { in cancelAnimation() 96 mAnimator.removeAllListeners(); in cancelAnimation() 97 mAnimator.cancel(); in cancelAnimation() 98 mAnimator = null; in cancelAnimation() 134 mAnimator = ObjectAnimator.ofFloat(this, View.ROTATION, 0, 360); in startAccelSpin() 135 mAnimator.setInterpolator(AnimationUtils.loadInterpolator(mContext, in startAccelSpin() 137 mAnimator.setDuration(ACCEL_LENGTH); in startAccelSpin() 138 mAnimator.addListener(new AnimatorListener() { in startAccelSpin() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleBackground.java | 36 private ObjectAnimator mAnimator; field in RippleBackground 85 if (mAnimator != null) { in onStateChanged() 86 mAnimator.cancel(); in onStateChanged() 87 mAnimator = null; in onStateChanged() 89 mAnimator = ObjectAnimator.ofFloat(this, OPACITY, newOpacity); in onStateChanged() 90 mAnimator.setDuration(OPACITY_DURATION); in onStateChanged() 91 mAnimator.setInterpolator(LINEAR_INTERPOLATOR); in onStateChanged() 92 mAnimator.start(); in onStateChanged() 96 if (mAnimator != null) { in jumpToFinal() 97 mAnimator.end(); in jumpToFinal() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/ |
D | ImageRevealHelper.java | 36 private final ValueAnimator mAnimator; field in ImageRevealHelper 43 mAnimator = ValueAnimator.ofFloat(); in ImageRevealHelper() 44 mAnimator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in ImageRevealHelper() 45 mAnimator.addUpdateListener(animator -> { in ImageRevealHelper() 51 mAnimator.addListener(new AnimatorListenerAdapter() { in ImageRevealHelper() 92 mAnimator.cancel(); in updateAwake() 102 mAnimator.setDuration(duration); in updateAwake() 103 mAnimator.setFloatValues(mReveal, mAwake ? MAX_REVEAL : MIN_REVEAL); in updateAwake() 104 mAnimator.start(); in updateAwake()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | TintController.java | 27 private ColorDisplayService.TintValueAnimator mAnimator; field in TintController 31 return mAnimator; in getAnimator() 35 mAnimator = animator; in setAnimator() 42 if (mAnimator != null) { in cancelAnimator() 43 mAnimator.cancel(); in cancelAnimator() 51 if (mAnimator != null) { in endAnimator() 52 mAnimator.end(); in endAnimator() 53 mAnimator = null; in endAnimator()
|
/frameworks/base/core/java/android/animation/ |
D | StateListAnimator.java | 84 tuple.mAnimator.addListener(mAnimatorListener); in addState() 128 mTuples.get(i).mAnimator.setTarget(null); in clearTarget() 148 final Animator animatorClone = tuple.mAnimator.clone(); in clone() 186 match.mAnimator.setTarget(getTarget()); in start() 187 mRunningAnimator = match.mAnimator; in start() 280 final Animator mAnimator; field in StateListAnimator.Tuple 284 mAnimator = animator; in Tuple() 298 return mAnimator; in getAnimator() 311 final StateListAnimator mAnimator; field in StateListAnimator.StateListAnimatorConstantState 316 mAnimator = animator; in StateListAnimatorConstantState() [all …]
|
D | Animator.java | 656 final Animator mAnimator; field in Animator.AnimatorConstantState 660 mAnimator = animator; in AnimatorConstantState() 662 mAnimator.mConstantState = this; in AnimatorConstantState() 663 mChangingConf = mAnimator.getChangingConfigurations(); in AnimatorConstantState() 673 final Animator clone = mAnimator.clone(); in newInstance()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | DividerHandleView.java | 75 private AnimatorSet mAnimator; field in DividerHandleView 93 if (mAnimator != null) { in setTouching() 94 mAnimator.cancel(); in setTouching() 95 mAnimator = null; in setTouching() 118 mAnimator = new AnimatorSet(); in animateToTarget() 119 mAnimator.playTogether(widthAnimator, heightAnimator); in animateToTarget() 120 mAnimator.setDuration(touching in animateToTarget() 123 mAnimator.setInterpolator(touching in animateToTarget() 126 mAnimator.addListener(new AnimatorListenerAdapter() { in animateToTarget() 129 mAnimator = null; in animateToTarget() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | MovingSurfaceViewActivity.java | 34 ObjectAnimator mAnimator; field in MovingSurfaceViewActivity 93 mAnimator = ObjectAnimator.ofFloat(mSurfaceView, "myTranslationY", in onCreate() 95 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate() 96 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate() 97 mAnimator.setDuration(200); in onCreate() 98 mAnimator.setInterpolator(new LinearInterpolator()); in onCreate() 120 mAnimator.start(); in onResume() 125 mAnimator.pause(); in onPause()
|
D | CustomRenderer.java | 34 private ObjectAnimator mAnimator; field in CustomRenderer 46 mAnimator = ObjectAnimator.ofFloat(mChildNode, "translationY", 0, 300); in onStart() 47 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onStart() 48 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onStart() 50 mAnimator.addUpdateListener(animation -> { in onStart() 58 mAnimator.end(); in onStop() 59 mAnimator = null; in onStop() 118 if (!mAnimator.isStarted()) { 119 mAnimator.start();
|
D | BitmapMutateActivity.java | 34 private ObjectAnimator mAnimator; field in BitmapMutateActivity 46 mAnimator = ObjectAnimator.ofInt(view, "offset", 0, PATTERN_SIZE - 1); in onCreate() 47 mAnimator.setDuration(1500); in onCreate() 48 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate() 49 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate() 50 mAnimator.start(); in onCreate() 56 mAnimator.cancel(); in onDestroy()
|
D | LinesActivity.java | 33 private ObjectAnimator mAnimator; field in LinesActivity 42 mAnimator = ObjectAnimator.ofFloat(view, "offset", 0.0f, 15.0f); in onCreate() 43 mAnimator.setDuration(1500); in onCreate() 44 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate() 45 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate() 46 mAnimator.start(); in onCreate() 52 mAnimator.cancel(); in onDestroy()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | BoundsAnimationControllerTests.java | 210 private BoundsAnimator mAnimator; field in BoundsAnimationControllerTests.BoundsAnimationDriver 226 if (mAnimator != null) { in start() 244 assertTrue(mAnimator.isPaused()); in start() 247 assertTrue(!mAnimator.isPaused()); in start() 258 if (mAnimator == null) { in restart() 262 BoundsAnimator oldAnimator = mAnimator; in restart() 263 boolean toSameBounds = mAnimator.isStarted() && to.equals(mTo); in restart() 273 assertSame(oldAnimator, mAnimator); in restart() 305 mAnimator = mController.animateBoundsImpl(mTarget, from, to, DURATION, in startImpl() 315 assertFalse(mAnimator.animatingToLargerSize()); in startImpl() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowSurfaceController.java | 49 final WindowStateAnimator mAnimator; field in WindowSurfaceController 89 mAnimator = animator; in WindowSurfaceController() 141 mAnimator.destroyPreservedSurfaceLocked(); in hide() 188 mAnimator.destroyPreservedSurfaceLocked(); in setCropInTransaction() 195 mAnimator.reclaimSomeSurfaceMemory("crop", true); in setCropInTransaction() 213 mAnimator.reclaimSomeSurfaceMemory("crop", true); in clearCropInTransaction() 242 mAnimator.reclaimSomeSurfaceMemory("position", true); in setPosition() 285 mAnimator.reclaimSomeSurfaceMemory("matrix", true); in setMatrix() 307 mAnimator.reclaimSomeSurfaceMemory("size", true); in setBufferSizeInTransaction() 332 mAnimator.reclaimSomeSurfaceMemory("update", true); in prepareToShowInTransaction() [all …]
|
D | LocalAnimationAdapter.java | 39 private final SurfaceAnimationRunner mAnimator; field in LocalAnimationAdapter 43 mAnimator = animator; in LocalAnimationAdapter() 59 mAnimator.startAnimation(mSpec, animationLeash, t, in startAnimation() 65 mAnimator.onAnimationCancelled(animationLeash); in onAnimationCancelled()
|
D | DragState.java | 116 @Nullable private ValueAnimator mAnimator; field in DragState 244 if (mAnimator != null && !mAnimationCompleted) { in closeLocked() 468 if (mAnimator != null) { in endDragLocked() 472 mAnimator = createReturnAnimationLocked(); in endDragLocked() 479 if (mAnimator != null) { in cancelDragLocked() 491 mAnimator = createCancelAnimationLocked(); in cancelDragLocked() 495 if (mAnimator != null) { in notifyMoveLocked() 560 if (mAnimator != null) { in notifyDropLocked()
|
D | WindowStateAnimator.java | 102 final WindowAnimator mAnimator; field in WindowStateAnimator 240 mAnimator = service.mAnimator; in WindowStateAnimator() 273 mAnimator.setPendingLayoutChanges(displayId, pendingLayoutChanges); in onAnimationFinished() 276 "WindowStateAnimator", mAnimator.getPendingLayoutChanges(displayId)); in onAnimationFinished() 657 mAnimator.getScreenRotationAnimationLocked(displayId); in computeShownFrameLocked() 1051 mAnimator.setPendingLayoutChanges(w.getDisplayId(), in setSurfaceBoundariesLocked() 1142 mAnimator.requestRemovalOfReplacedWindows(w); in prepareSurfaceLocked() 1151 mAnimator.setPendingLayoutChanges(w.getDisplayId(), in prepareSurfaceLocked() 1156 mAnimator.getPendingLayoutChanges(w.getDisplayId())); in prepareSurfaceLocked() 1176 mAnimator.mBulkUpdateParams &= ~SET_ORIENTATION_CHANGE_COMPLETE; in prepareSurfaceLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | AssistDisclosure.java | 108 private final AnimatorSet mAnimator; field in AssistDisclosure.AssistDisclosureView 123 mAnimator = new AnimatorSet(); in AssistDisclosureView() 124 mAnimator.play(mAlphaInAnimator).before(mAlphaOutAnimator); in AssistDisclosureView() 125 mAnimator.addListener(new AnimatorListenerAdapter() { in AssistDisclosureView() 169 mAnimator.cancel(); in onDetachedFromWindow() 174 mAnimator.cancel(); in startAnimation() 175 mAnimator.start(); in startAnimation()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | PlayAnimationThread.java | 28 private final Animator mAnimator; field in PlayAnimationThread 33 mAnimator = animator; in PlayAnimationThread() 40 mAnimator.start(); in preAnimation()
|
/frameworks/base/core/java/android/widget/ |
D | DatePickerCalendarDelegate.java | 75 private ViewAnimator mAnimator; field in DatePickerCalendarDelegate 157 mAnimator = mContainer.findViewById(R.id.animator); in DatePickerCalendarDelegate() 160 mDayPickerView = mAnimator.findViewById(R.id.date_picker_day_picker); in DatePickerCalendarDelegate() 168 mYearPickerView = mAnimator.findViewById(R.id.date_picker_year_picker); in DatePickerCalendarDelegate() 321 mAnimator.announceForAccessibility(getFormattedCurrentDate()); in onCurrentDateChanged() 333 mAnimator.setDisplayedChild(VIEW_MONTH_DAY); in setCurrentView() 337 mAnimator.announceForAccessibility(mSelectDay); in setCurrentView() 353 mAnimator.setDisplayedChild(VIEW_YEAR); in setCurrentView() 357 mAnimator.announceForAccessibility(mSelectYear); in setCurrentView()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | PlatLogoActivity.java | 315 TimeAnimator mAnimator = new TimeAnimator(); field in PlatLogoActivity.BackslashDrawable 324 mAnimator.setTimeListener(this); in BackslashDrawable() 354 if (!mAnimator.isStarted()) { in startAnimating() 355 mAnimator.start(); in startAnimating() 360 if (mAnimator.isStarted()) { in stopAnimating() 361 mAnimator.cancel(); in stopAnimating()
|
/frameworks/base/core/java/android/view/ |
D | InsetsController.java | 503 private ObjectAnimator mAnimator; in applyAnimation() 513 mAnimator = ObjectAnimator.ofObject( in applyAnimation() 520 mAnimator.setDuration(show in applyAnimation() 523 mAnimator.setInterpolator(INTERPOLATOR); in applyAnimation() 524 mAnimator.addListener(new AnimatorListenerAdapter() { in applyAnimation() 531 mAnimator.start(); in applyAnimation() 536 mAnimator.cancel(); in applyAnimation()
|