/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() 144 mAnimator.start(); in setUp() 145 mAnimator.cancel(); in setUp() 181 mAnimator.setListener(mListener); in setUp() 182 mAnimator.setDuration(ANIM_DURATION); in setUp() 198 mAnimator.cancel(); in testCancel() 212 mAnimator.start(); in testStartCancel() 213 mAnimator.cancel(); in testStartCancel() 229 mAnimator.setStartDelay(ANIM_DELAY); in testStartDelayedCancel() [all …]
|
D | AnimatorSetCallsTest.java | 48 private ObjectAnimator mAnimator; field in AnimatorSetCallsTest 69 mAnimator = ObjectAnimator.ofFloat(square, "translationX", 0f, 100f); in setUp() 71 mAnimator.addListener(mListener3); in setUp() 72 mAnimator.addPauseListener(mListener3); in setUp() 73 mAnimator.setDuration(1); in setUp() 75 mSet2.play(mAnimator); in setUp() 171 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in updateOnlyWhileChangingValues() 187 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in updateOnlyWhileRunning() 219 mSet2.play(animator2).after(mAnimator); in pauseResumeSeekingAnimators() 222 mAnimator.setDuration(100); in pauseResumeSeekingAnimators() [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 | 35 private Animator mAnimator; field in QSDetailClipper 64 if (mAnimator != null) { in updateCircularClip() 65 mAnimator.cancel(); in updateCircularClip() 81 mAnimator = ViewAnimationUtils.createCircularReveal(mDetail, x, y, innerR, r); in updateCircularClip() 83 mAnimator = ViewAnimationUtils.createCircularReveal(mDetail, x, y, r, innerR); in updateCircularClip() 85 mAnimator.setDuration(animate ? (long) (mAnimator.getDuration() * 1.5) : 0); in updateCircularClip() 87 mAnimator.addListener(listener); in updateCircularClip() 90 mBackground.startTransition(animate ? (int) (mAnimator.getDuration() * 0.6) : 0); in updateCircularClip() 91 mAnimator.addListener(mVisibleOnStart); in updateCircularClip() 94 animate ? (long) (mAnimator.getDuration() * 0.65) : 0); in updateCircularClip() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SettingsButton.java | 45 private ObjectAnimator mAnimator; field in SettingsButton 55 return mAnimator != null && mAnimator.isRunning(); in isAnimating() 97 if (mAnimator != null) { in cancelAnimation() 98 mAnimator.removeAllListeners(); in cancelAnimation() 99 mAnimator.cancel(); in cancelAnimation() 100 mAnimator = null; in cancelAnimation() 139 mAnimator = ObjectAnimator.ofFloat(this, View.ROTATION, 0, 360); in startAccelSpin() 140 mAnimator.setInterpolator(AnimationUtils.loadInterpolator(mContext, in startAccelSpin() 142 mAnimator.setDuration(ACCEL_LENGTH); in startAccelSpin() 143 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/keyguard/ |
D | NumPadButton.java | 42 private NumPadAnimator mAnimator; field in NumPadButton 68 boolean shortenHeight = mAnimator == null in onMeasure() 80 if (mAnimator != null) mAnimator.onLayout(width, height); in onLayout() 87 if (mAnimator != null) mAnimator.expand(); in onTouchEvent() 91 if (mAnimator != null) mAnimator.contract(); in onTouchEvent() 101 if (mAnimator != null) mAnimator.reloadColors(getContext()); in reloadColors() 110 if (mAnimator != null) { in setProgress() 111 mAnimator.setProgress(progress); in setProgress() 143 mAnimator = new NumPadAnimator(getContext(), background.mutate(), in setupAnimator() 146 mAnimator = null; in setupAnimator()
|
D | NumPadKey.java | 58 private NumPadAnimator mAnimator; field in NumPadKey 137 mAnimator = new NumPadAnimator(context, background.mutate(), in NumPadKey() 140 mAnimator = null; in NumPadKey() 160 if (mAnimator != null) mAnimator.reloadColors(getContext()); in reloadColors() 168 if (mAnimator != null && mAnimationsEnabled) mAnimator.expand(); in onTouchEvent() 172 if (mAnimator != null && mAnimationsEnabled) mAnimator.contract(); in onTouchEvent() 189 boolean shortenHeight = mAnimator == null in onMeasure() 214 if (mAnimator != null) mAnimator.onLayout(width, height); in onLayout() 230 if (mAnimator != null) { in setProgress() 231 mAnimator.setProgress(progress); in setProgress()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | TintController.java | 32 private ValueAnimator mAnimator; field in TintController 36 return mAnimator; in getAnimator() 40 mAnimator = animator; in setAnimator() 47 if (mAnimator != null) { in cancelAnimator() 48 mAnimator.cancel(); in cancelAnimator() 56 if (mAnimator != null) { in endAnimator() 57 mAnimator.end(); in endAnimator() 58 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 …]
|
/frameworks/base/tests/graphics/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 | StretchySurfaceViewActivity.java | 37 ObjectAnimator mAnimator; field in StretchySurfaceViewActivity 115 mAnimator = ObjectAnimator.ofFloat(mSurfaceView, "myTranslationY", in onCreate() 117 mAnimator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate() 118 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate() 119 mAnimator.setDuration(1000); in onCreate() 120 mAnimator.setInterpolator(new LinearInterpolator()); in onCreate() 150 mAnimator.start(); in onResume() 155 mAnimator.pause(); in onPause()
|
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/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/ |
D | DividerHandleView.java | 77 private AnimatorSet mAnimator; field in DividerHandleView 130 if (mAnimator != null) { in setInputState() 131 mAnimator.cancel(); in setInputState() 132 mAnimator = null; in setInputState() 149 mAnimator = new AnimatorSet(); in animateToTarget() 150 mAnimator.playTogether(widthAnimator, heightAnimator); in animateToTarget() 151 mAnimator.setDuration(touching in animateToTarget() 154 mAnimator.setInterpolator(touching in animateToTarget() 157 mAnimator.addListener(new AnimatorListenerAdapter() { in animateToTarget() 160 mAnimator = null; in animateToTarget() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowSurfaceController.java | 46 final WindowStateAnimator mAnimator; field in WindowSurfaceController 63 mAnimator = animator; in WindowSurfaceController() 102 if (mAnimator.mIsWallpaper) { in hideSurface() 103 final DisplayContent dc = mAnimator.mWin.getDisplayContent(); in hideSurface() 118 if (mAnimator.mIsWallpaper && !mAnimator.mWin.mWindowRemovalAllowed in destroy() 119 && !mAnimator.mWin.mRemoveOnExit) { in destroy() 121 Slog.e(TAG, "Unexpected removing wallpaper surface of " + mAnimator.mWin in destroy() 150 mAnimator.mWin.getPendingTransaction().setOpaque(mSurfaceControl, isOpaque); in setOpaque() 174 if (mAnimator.mIsWallpaper) { in showRobustly() 175 final DisplayContent dc = mAnimator.mWin.getDisplayContent(); in showRobustly() [all …]
|
D | LocalAnimationAdapter.java | 41 private final SurfaceAnimationRunner mAnimator; field in LocalAnimationAdapter 45 mAnimator = animator; in LocalAnimationAdapter() 66 mAnimator.startAnimation(mSpec, animationLeash, t, in startAnimation() 72 mAnimator.onAnimationCancelled(animationLeash); in onAnimationCancelled()
|
/frameworks/base/core/java/android/widget/ |
D | TextViewTranslationCallback.java | 303 if (mAnimator != null) { in runChangeTextWithAnimationIfNeeded() 304 mAnimator.end(); in runChangeTextWithAnimationIfNeeded() 309 mAnimator = ValueAnimator.ofArgb(view.getCurrentTextColor(), fadedOutColor); in runChangeTextWithAnimationIfNeeded() 310 mAnimator.addUpdateListener( in runChangeTextWithAnimationIfNeeded() 315 mAnimator.setRepeatMode(ValueAnimator.REVERSE); in runChangeTextWithAnimationIfNeeded() 316 mAnimator.setRepeatCount(1); in runChangeTextWithAnimationIfNeeded() 317 mAnimator.setDuration(mAnimationDurationMillis); in runChangeTextWithAnimationIfNeeded() 320 mAnimator.addListener(new Animator.AnimatorListener() { in runChangeTextWithAnimationIfNeeded() 331 mAnimator = null; in runChangeTextWithAnimationIfNeeded() 343 mAnimator.start(); in runChangeTextWithAnimationIfNeeded() [all …]
|
/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/ |
D | LowLightTransitionCoordinatorTest.kt | 55 private lateinit var mAnimator: Animator variable in com.android.dream.lowlight.LowLightTransitionCoordinatorTest 107 whenever(mEnterListener.onBeforeEnterLowLight()).thenReturn(mAnimator) in <lambda>() 115 verify(mAnimator).addListener(mAnimatorListenerCaptor.capture()) in <lambda>() 119 mAnimatorListenerCaptor.value.onAnimationEnd(mAnimator) in <lambda>() 127 whenever(mEnterListener.onBeforeEnterLowLight()).thenReturn(mAnimator) in <lambda>() 142 whenever(mEnterListener.onBeforeEnterLowLight()).thenReturn(mAnimator) in <lambda>() 150 verify(mAnimator).addListener(mAnimatorListenerCaptor.capture()) in <lambda>() 155 mAnimatorListenerCaptor.value.onAnimationCancel(mAnimator) in <lambda>()
|
/frameworks/base/core/java/android/view/ |
D | InsetsResizeAnimationRunner.java | 55 private ValueAnimator mAnimator; field in InsetsResizeAnimationRunner 109 if (mAnimator != null) { in cancel() 110 mAnimator.cancel(); in cancel() 124 mAnimator = ValueAnimator.ofFloat(0f, 1f); in onReady() 125 mAnimator.setDuration(mAnimation.getDurationMillis()); in onReady() 126 mAnimator.addUpdateListener(animation -> { in onReady() 130 mAnimator.addListener(new AnimatorListenerAdapter() { in onReady() 138 mAnimator.start(); in onReady()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | AssistDisclosure.java | 109 private final AnimatorSet mAnimator; field in AssistDisclosure.AssistDisclosureView 124 mAnimator = new AnimatorSet(); in AssistDisclosureView() 125 mAnimator.play(mAlphaInAnimator).before(mAlphaOutAnimator); in AssistDisclosureView() 126 mAnimator.addListener(new AnimatorListenerAdapter() { in AssistDisclosureView() 170 mAnimator.cancel(); in onDetachedFromWindow() 175 mAnimator.cancel(); in startAnimation() 176 mAnimator.start(); in startAnimation()
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | TaskFragmentAnimationRunner.java | 67 private Animator mAnimator; field in TaskFragmentAnimationRunner 94 if (mAnimator != null) { in startAnimation() 96 mAnimator.cancel(); in startAnimation() 98 mAnimator = createAnimator(transit, targets, finishedCallback); in startAnimation() 99 mAnimator.start(); in startAnimation() 104 if (mAnimator == null) { in cancelAnimation() 107 mAnimator.cancel(); in cancelAnimation() 108 mAnimator = null; in cancelAnimation() 149 mAnimator = null; in createAnimator()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardOverlayControllerTest.java | 104 private Animator mAnimator; field in ClipboardOverlayControllerTest 123 when(mClipboardOverlayView.getEnterAnimation()).thenReturn(mAnimator); in setup() 124 when(mClipboardOverlayView.getExitAnimation()).thenReturn(mAnimator); in setup() 125 when(mClipboardOverlayView.getFadeOutAnimation()).thenReturn(mAnimator); in setup() 227 when(mAnimator.isRunning()).thenReturn(true); in test_setClipData_repeatedCalls_legacy() 293 when(mAnimator.isRunning()).thenReturn(true); in test_setClipData_repeatedCalls() 319 verify(mAnimator).addListener(mAnimatorListenerCaptor.capture()); in test_viewCallbacks_onShareTapped() 320 mAnimatorListenerCaptor.getValue().onAnimationEnd(mAnimator); in test_viewCallbacks_onShareTapped() 343 verify(mAnimator).addListener(mAnimatorListenerCaptor.capture()); in test_viewCallbacks_onDismissTapped() 344 mAnimatorListenerCaptor.getValue().onAnimationEnd(mAnimator); in test_viewCallbacks_onDismissTapped() [all …]
|