/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
H A D | TouchAnimatorTest.java | 51 animator.setPosition(0); in testSetValueFloat() 54 animator.setPosition(.5f); in testSetValueFloat() 57 animator.setPosition(1); in testSetValueFloat() 67 animator.setPosition(0); in testSetValueFloat_threeValues() 79 animator.setPosition(1); in testSetValueFloat_threeValues() 89 animator.setPosition(0); in testSetValueInt() 95 animator.setPosition(1); in testSetValueInt() 106 animator.setPosition(0); in testStartDelay() 115 animator.setPosition(1); in testStartDelay() 126 animator.setPosition(0); in testEndDelay() [all …]
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | android_graphics_animation_RenderNodeAnimator.cpp | 107 animator->setListener(&sLifecycleChecker); in createAnimator() 108 return reinterpret_cast<jlong>( animator ); in createAnimator() 115 animator->setListener(&sLifecycleChecker); in createCanvasPropertyFloatAnimator() 126 animator->setListener(&sLifecycleChecker); in createCanvasPropertyPaintAnimator() 133 animator->setListener(&sLifecycleChecker); in createRevealAnimator() 139 animator->setStartValue(startValue); in setStartValue() 145 animator->setDuration(duration); in setDuration() 156 animator->setStartDelay(startDelay); in setStartDelay() 162 animator->setInterpolator(interpolator); in setInterpolator() 177 animator->start(); in start() [all …]
|
/aosp12/frameworks/base/libs/hwui/ |
H A D | AnimatorManager.cpp | 31 animator->detach(); in detach() 46 mNewAnimators.emplace_back(animator.get()); in addAnimator() 53 animator->attach(&mParent); in addAnimator() 85 for (auto& animator : mAnimators) { in pushStaging() local 101 *mDirtyMask |= animator->dirtyMask(); in operator ()() 104 animator->detach(); in operator ()() 106 if (animator->isRunning()) { in operator ()() 154 animator->cancel(); in endStagingAnimator() 155 if (animator->listener()) { in endStagingAnimator() 156 animator->listener()->onAnimationFinished(animator.get()); in endStagingAnimator() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
H A D | UnfoldMoveFromCenterAnimatorTest.kt | 61 animator.onTransitionStarted() 77 animator.onTransitionStarted() 93 animator.onTransitionStarted() 109 animator.onTransitionStarted() 125 animator.onTransitionStarted() 126 animator.clearRegisteredViews() 138 animator.onTransitionStarted() 140 animator.clearRegisteredViews() 152 animator.onTransitionStarted() 165 animator.onTransitionStarted() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
H A D | PipAnimationControllerTest.java | 126 animator.getTransitionDirection(), TRANSITION_DIRECTION_TO_PIP); in getAnimator_setTransitionDirection() 128 animator = mPipAnimationController in getAnimator_setTransitionDirection() 145 animator.applySurfaceControlTransaction(mLeash, tx, 1); in pipTransitionAnimator_rotatedEndValue() 156 animator.applySurfaceControlTransaction(mLeash, tx, 1); in pipTransitionAnimator_rotatedEndValue() 174 animator.updateEndValue(endValue2); in pipTransitionAnimator_updateEndValue() 189 animator.setPipAnimationCallback(mPipAnimationCallback); in pipTransitionAnimator_setPipAnimationCallback() 192 animator.onAnimationStart(animator); in pipTransitionAnimator_setPipAnimationCallback() 193 verify(mPipAnimationCallback).onPipAnimationStart(mTaskInfo, animator); in pipTransitionAnimator_setPipAnimationCallback() 196 animator.onAnimationCancel(animator); in pipTransitionAnimator_setPipAnimationCallback() 200 animator.onAnimationEnd(animator); in pipTransitionAnimator_setPipAnimationCallback() [all …]
|
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | ItemAnimator.kt | 52 animator.removeAllListeners() 77 animator.removeAllListeners() 133 animator?.removeAllListeners() 162 if (animator == null) { 178 mAnimators[newHolder] = animator 279 val animator = mAnimators[holder] regex 282 mAddAnimatorsList.remove(animator) 285 mMoveAnimatorsList.remove(animator) 287 animator?.end() 293 for (animator in animatorList) { [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/animation/ |
H A D | AnimUtils.java | 48 animator.cancel(); in fadeOut() 49 animator in fadeOut() 74 animator.start(); in fadeOut() 85 animator.cancel(); in fadeIn() 88 animator in fadeIn() 116 animator.start(); in fadeIn() 194 animator.cancel(); in scaleInternal() 196 animator in scaleInternal() 208 animator.start(); in scaleInternal() 226 animator.addUpdateListener( in changeDimensions() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
H A D | PhysicsAnimatorTestUtils.kt | 67 val animator = defaultConstructor(target) regex 69 animatorTestHelpers[animator] = AnimatorTestHelper(animator) 70 return animator 118 animator: PhysicsAnimator<T>, 181 animator: PhysicsAnimator<T>, 184 if (animator.isRunning()) { 248 animator: PhysicsAnimator<T>, 314 animator: PhysicsAnimator<T>, 382 animator.startAction = ::startForTest 383 animator.cancelAction = ::cancelForTest [all …]
|
/aosp12/packages/apps/PhoneCommon/src/com/android/phone/common/animation/ |
H A D | AnimUtils.java | 59 animator.cancel(); in fadeOut() 79 animator.setDuration(durationMs); in fadeOut() 81 animator.start(); in fadeOut() 92 animator.cancel(); in fadeIn() 94 animator.setStartDelay(delay); in fadeIn() 117 animator.setDuration(durationMs); in fadeIn() 119 animator.start(); in fadeIn() 177 animator.cancel(); in scaleInternal() 188 animator.setStartDelay(startDelay); in scaleInternal() 190 animator.start(); in scaleInternal() [all …]
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | TransitionUtils.java | 41 ObjectAnimator animator = new ObjectAnimator(); in createActivityFadeInAnimator() local 42 animator.setPropertyName("alpha"); in createActivityFadeInAnimator() 44 animator.setFloatValues(startAlpha.getFloat(), endAlpha.getFloat()); in createActivityFadeInAnimator() 46 animator.setIntValues(Float.valueOf(startAlpha.getFloat() * 255).intValue(), in createActivityFadeInAnimator() 49 animator.setDuration(res.getInteger(R.integer.alpha_activity_in_bkg_duration)); in createActivityFadeInAnimator() 50 animator.setStartDelay(res.getInteger(R.integer.alpha_activity_in_bkg_delay)); in createActivityFadeInAnimator() 51 return animator; in createActivityFadeInAnimator() 61 ObjectAnimator animator = new ObjectAnimator(); in createActivityFadeOutAnimator() local 62 animator.setPropertyName("alpha"); in createActivityFadeOutAnimator() 64 animator.setFloatValues(startAlpha.getFloat(), endAlpha.getFloat()); in createActivityFadeOutAnimator() [all …]
|
/aosp12/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
H A D | SetupAnimationHelper.java | 143 if (animator.getDuration() > 0) { in applyAnimationTimeScale() 144 animator.setDuration((long) (animator.getDuration() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale() 146 animator.setStartDelay((long) (animator.getStartDelay() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale() 147 return animator; in applyAnimationTimeScale() 191 animator.setInterpolator(null); in createFrameAnimatorWithDelay() 192 animator.setStartDelay(startDelay); in createFrameAnimatorWithDelay() 193 animator.setEvaluator( in createFrameAnimatorWithDelay() 200 return animator; in createFrameAnimatorWithDelay() 213 ObjectAnimator animator = in createFadeOutAnimator() local 216 animator.addListener( in createFadeOutAnimator() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/animation/ |
H A D | PhysicsAnimatorTest.kt | 111 animator 120 animator 135 animator 157 animator 212 animator 230 animator 243 animator 260 animator 275 animator 305 animator [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | KeyguardAffordanceView.java | 287 animator.start(); in startRtAlphaFadeIn() 307 animator.setTarget(this); in startRtCircleFadeOut() 308 animator.start(); in startRtCircleFadeOut() 313 animator.setTarget(this); in getRtAnimatorToRadius() 314 return animator; in getRtAnimatorToRadius() 387 animator.start(); in setCircleRadius() 421 return animator; in getAnimatorToRadius() 425 if (animator != null) { in cancelAnimator() 426 animator.cancel(); in cancelAnimator() 473 animator.start(); in setImageScale() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
H A D | ExpandableViewState.java | 261 animator.setDuration(newDuration); in startHeightAnimation() 269 animator.addListener(listener); in startHeightAnimation() 297 startAnimator(animator, listener); in startHeightAnimation() 298 child.setTag(TAG_ANIMATOR_HEIGHT, animator); in startHeightAnimation() 342 animator.setDuration(newDuration); in startInsetAnimation() 350 animator.addListener(listener); in startInsetAnimation() 361 startAnimator(animator, listener); in startInsetAnimation() 387 if (animator != null) { in cancelAnimations() 388 animator.cancel(); in cancelAnimations() 391 if (animator != null) { in cancelAnimations() [all …]
|
H A D | ViewState.java | 404 animator.setDuration(newDuration); in startAlphaAnimation() 414 startAnimator(animator, listener); in startAlphaAnimation() 631 animator.start(); in startAnimator() 719 if (animator != null) { in cancelAnimations() 720 animator.cancel(); in cancelAnimations() 723 if (animator != null) { in cancelAnimations() 724 animator.cancel(); in cancelAnimations() 727 if (animator != null) { in cancelAnimations() 728 animator.cancel(); in cancelAnimations() 731 if (animator != null) { in cancelAnimations() [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
H A D | FingerprintLocationAnimationView.java | 133 animator.addListener(new AnimatorListenerAdapter() { in startRadiusAnimation() 150 animator.setDuration(1000); in startRadiusAnimation() 151 animator.setInterpolator(mLinearOutSlowInInterpolator); in startRadiusAnimation() 152 animator.start(); in startRadiusAnimation() 153 mRadiusAnimator = animator; in startRadiusAnimation() 166 animator.addListener(new AnimatorListenerAdapter() { in startAlphaAnimation() 172 animator.setDuration(750); in startAlphaAnimation() 173 animator.setInterpolator(mFastOutSlowInInterpolator); in startAlphaAnimation() 174 animator.setStartDelay(250); in startAlphaAnimation() 175 animator.start(); in startAlphaAnimation() [all …]
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipTaskOrganizer.java | 297 if (animator != null && animator.isRunning()) { in getCurrentOrAnimatingBounds() 472 animator.start(); in removePip() 737 if (animator != null) { in onTaskVanished() 739 removeContentOverlay(animator.getContentOverlay(), animator::clearContentOverlay); in onTaskVanished() 743 animator.cancel(); in onTaskVanished() 886 if (animator == null || !animator.isRunning() in onMovementBoundsChanged() 919 if (animator != null && animator.isRunning()) { in onMovementBoundsChanged() 1034 return animator; in scheduleAnimateResizePip() 1351 animator.start(); in animateResizePip() 1352 return animator; in animateResizePip() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
H A D | SwipeButtonView.java | 305 animator.start(); in setCircleRadius() 332 circleAnimator = animator; in getAnimatorToRadius() 335 animator.addUpdateListener( in getAnimatorToRadius() 345 return animator; in getAnimatorToRadius() 349 if (animator != null) { in cancelAnimator() 350 animator.cancel(); in cancelAnimator() 375 scaleAnimator = animator; in setImageScale() 376 animator.addUpdateListener( in setImageScale() 398 animator.start(); in setImageScale() 444 alphaAnimator = animator; in setImageAlpha() [all …]
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | SimpleScrollAdapterTransform.java | 61 int distanceFromCenter, Animator animator, View child) { in applyTransformationRecursive() argument 62 if (animator instanceof AnimatorSet) { in applyTransformationRecursive() 63 ArrayList<Animator> children = ((AnimatorSet) animator).getChildAnimations(); in applyTransformationRecursive() 67 } else if (animator instanceof ValueAnimator) { in applyTransformationRecursive() 68 ValueAnimator valueAnim = ((ValueAnimator) animator); in applyTransformationRecursive() 79 private void initializeTransformationRecursive(Animator animator, long defaultDuration) { in initializeTransformationRecursive() argument 80 long duration = animator.getDuration(); in initializeTransformationRecursive() 84 if (animator instanceof AnimatorSet) { in initializeTransformationRecursive() 85 ArrayList<Animator> children = ((AnimatorSet) animator).getChildAnimations(); in initializeTransformationRecursive() 89 } else if (animator instanceof ValueAnimator) { in initializeTransformationRecursive() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/utils/ |
H A D | FlingAnimationUtils.java | 65 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 96 animator.setDuration(properties.duration); in apply() 97 animator.setInterpolator(properties.interpolator); in apply() 112 ViewPropertyAnimator animator, in apply() argument 118 animator.setDuration(properties.duration); in apply() 119 animator.setInterpolator(properties.interpolator); in apply() 165 animator.setDuration(properties.duration); in applyDismissing() 166 animator.setInterpolator(properties.interpolator); in applyDismissing() 182 ViewPropertyAnimator animator, in applyDismissing() argument 189 animator.setDuration(properties.duration); in applyDismissing() [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | MessagingPropertyAnimator.java | 153 animator.setInterpolator(interpolator); in startTopAnimation() 154 animator.setDuration(APPEAR_ANIMATION_LENGTH); in startTopAnimation() 170 v.setTagInternal(TAG_TOP_ANIMATOR, animator); in startTopAnimation() 171 animator.start(); in startTopAnimation() 192 animator.setInterpolator(ALPHA_IN); in fadeIn() 193 animator.setDuration(APPEAR_ANIMATION_LENGTH); in fadeIn() 202 v.setTagInternal(TAG_ALPHA_ANIMATOR, animator); in fadeIn() 203 animator.start(); in fadeIn() 228 animator.setInterpolator(ALPHA_OUT); in fadeOut() 229 animator.setDuration(APPEAR_ANIMATION_LENGTH); in fadeOut() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ |
H A D | AnimationManager.java | 68 public void onAnimationStart(Animator animator) { in startCaptureAnimation() 73 public void onAnimationEnd(Animator animator) { in startCaptureAnimation() 78 public void onAnimationCancel(Animator animator) { in startCaptureAnimation() 83 public void onAnimationRepeat(Animator animator) { in startCaptureAnimation() 101 public void onAnimationStart(Animator animator) { in startCaptureAnimation() 107 public void onAnimationEnd(Animator animator) { in startCaptureAnimation() 118 public void onAnimationCancel(Animator animator) { in startCaptureAnimation() 123 public void onAnimationRepeat(Animator animator) { in startCaptureAnimation() 145 public void onAnimationStart(Animator animator) { in startFlashAnimation() 150 public void onAnimationEnd(Animator animator) { in startFlashAnimation() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationDozeHelper.java | 71 ValueAnimator animator = ValueAnimator.ofFloat(startIntensity, endIntensity); in startIntensityAnimation() local 72 animator.addUpdateListener(updateListener); in startIntensityAnimation() 73 animator.setDuration(StackStateAnimator.ANIMATION_DURATION_WAKEUP); in startIntensityAnimation() 74 animator.setInterpolator(Interpolators.LINEAR_OUT_SLOW_IN); in startIntensityAnimation() 75 animator.setStartDelay(delay); in startIntensityAnimation() 77 animator.addListener(listener); in startIntensityAnimation() 79 animator.start(); in startIntensityAnimation() 100 Animator animator = (Animator) view.getTag(DOZE_ANIMATOR_TAG); in setDozing() local 101 if (animator != null) { in setDozing() 102 animator.cancel(); in setDozing()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | TextAnimator.kt | 63 internal var animator: ValueAnimator = ValueAnimator.ofFloat(1f).apply { 84 return animator.isRunning 119 animator.cancel() 140 animator.startDelay = delay 141 animator.duration = if (duration == -1L) { 146 interpolator?.let { animator.interpolator = it } 151 animator.removeListener(this) 154 animator.removeListener(this) 157 animator.addListener(listener) 159 animator.start()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | AnimatedCircleDrawable.java | 89 final ValueAnimator animator = in animateToSmallRadius() local 91 animator.setDuration(CIRCLE_ANIM_DURATION_MS); in animateToSmallRadius() 92 animator.setInterpolator(Gusterpolator.INSTANCE); in animateToSmallRadius() 93 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in animateToSmallRadius() 99 animator.start(); in animateToSmallRadius() 103 final ValueAnimator animator = in animateToFullSize() local 105 animator.setDuration(CIRCLE_ANIM_DURATION_MS); in animateToFullSize() 106 animator.setInterpolator(Gusterpolator.INSTANCE); in animateToFullSize() 107 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in animateToFullSize() 113 animator.start(); in animateToFullSize()
|