/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
H A D | SimpleAnimatorListener.java | 39 public void onAnimationCancel(Animator animator) { argument 44 public void onAnimationEnd(Animator animator) { argument 46 onAnimationComplete(animator); 51 public void onAnimationRepeat(Animator animator) {} argument 54 public void onAnimationStart(Animator animator) { argument 61 public void onAnimationComplete(Animator animator) {} argument
|
/frameworks/support/core/ktx/src/main/java/androidx/core/animation/ |
H A D | Animator.kt | 28 fun Animator.doOnEnd(action: (animator: Animator) -> Unit) = addListener(onEnd = action) 36 fun Animator.doOnStart(action: (animator: Animator) -> Unit) = addListener(onStart = action) 44 fun Animator.doOnCancel(action: (animator: Animator) -> Unit) = addListener(onCancel = action) 50 fun Animator.doOnRepeat(action: (animator: Animator) -> Unit) = addListener(onRepeat = action) 59 fun Animator.doOnResume(action: (animator: Animator) -> Unit) = addPauseListener(onResume = action) 68 fun Animator.doOnPause(action: (animator: Animator) -> Unit) = addPauseListener(onPause = action) 74 onEnd: ((animator: Animator) -> Unit)? = null, 75 onStart: ((animator: Animator) -> Unit)? = null, 76 onCancel: ((animator: Animator) -> Unit)? = null, 77 onRepeat: ((animator [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/animation/ |
H A D | AnimatorTest.kt | 36 private lateinit var animator: Animator 39 animator = ObjectAnimator.ofFloat(view, View.ALPHA, 0f, 1f) 44 animator.doOnStart { 48 animator.listeners.forEach { it.onAnimationStart(animator) } 54 animator.doOnEnd { 58 animator.listeners.forEach { it.onAnimationEnd(animator) } 64 animator.doOnCancel { 68 animator [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
H A D | TouchAnimatorTest.java | 44 TouchAnimator animator = new TouchAnimator.Builder() 48 animator.setPosition(0); 51 animator.setPosition(.5f); 54 animator.setPosition(1); 60 TouchAnimator animator = new TouchAnimator.Builder() 64 animator.setPosition(0); 67 animator.setPosition(.25f); 70 animator.setPosition(.5f); 73 animator.setPosition(.75f); 76 animator [all...] |
/frameworks/base/libs/hwui/ |
H A D | AnimatorManager.cpp | 30 static void detach(sp<BaseRenderNodeAnimator>& animator) { argument 31 animator->detach(); 41 void AnimatorManager::addAnimator(const sp<BaseRenderNodeAnimator>& animator) { argument 42 RenderNode* stagingTarget = animator->stagingTarget(); 46 mNewAnimators.emplace_back(animator.get()); 47 // If the animator is already attached to other RenderNode, remove it from that RenderNode's 48 // new animator list. This ensures one animator only ends up in one newAnimatorList during one 51 stagingTarget->removeAnimator(animator); 53 animator 56 removeAnimator(const sp<BaseRenderNodeAnimator>& animator) argument 90 onAnimatorTargetChanged(BaseRenderNodeAnimator* animator) argument 100 operator ()(sp<BaseRenderNodeAnimator>& animator) argument 153 endStagingAnimator(sp<BaseRenderNodeAnimator>& animator) argument 172 operator ()(sp<BaseRenderNodeAnimator>& animator) argument [all...] |
H A D | AnimatorManager.h | 42 void addAnimator(const sp<BaseRenderNodeAnimator>& animator); 43 void removeAnimator(const sp<BaseRenderNodeAnimator>& animator); 49 void onAnimatorTargetChanged(BaseRenderNodeAnimator* animator);
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
H A D | AnimatorUtils.java | 29 static void addPauseListener(@NonNull Animator animator, argument 32 animator.addPauseListener(listener); 36 static void pause(@NonNull Animator animator) { argument 38 animator.pause(); 40 final ArrayList<Animator.AnimatorListener> listeners = animator.getListeners(); 45 ((AnimatorPauseListenerCompat) listener).onAnimationPause(animator); 52 static void resume(@NonNull Animator animator) { argument 54 animator.resume(); 56 final ArrayList<Animator.AnimatorListener> listeners = animator.getListeners(); 61 ((AnimatorPauseListenerCompat) listener).onAnimationResume(animator); [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_RenderNodeAnimator.cpp | 50 virtual void onAnimationFinished(BaseRenderNodeAnimator* animator) { argument 51 LOG_ALWAYS_FATAL("Lifecycle failure, nStart(%p) wasn't called", animator); 111 BaseRenderNodeAnimator* animator = new RenderPropertyAnimator(property, finalValue); local 112 animator->setListener(&sLifecycleChecker); 113 return reinterpret_cast<jlong>( animator ); 119 BaseRenderNodeAnimator* animator = new CanvasPropertyPrimitiveAnimator(canvasProperty, finalValue); local 120 animator->setListener(&sLifecycleChecker); 121 return reinterpret_cast<jlong>( animator ); 129 BaseRenderNodeAnimator* animator = new CanvasPropertyPaintAnimator( local 131 animator 137 BaseRenderNodeAnimator* animator = new RevealAnimator(centerX, centerY, startRadius, endRadius); local 143 BaseRenderNodeAnimator* animator = reinterpret_cast<BaseRenderNodeAnimator*>(animatorPtr); local 154 BaseRenderNodeAnimator* animator = reinterpret_cast<BaseRenderNodeAnimator*>(animatorPtr); local 165 BaseRenderNodeAnimator* animator = reinterpret_cast<BaseRenderNodeAnimator*>(animatorPtr); local 171 BaseRenderNodeAnimator* animator = reinterpret_cast<BaseRenderNodeAnimator*>(animatorPtr); local 176 BaseRenderNodeAnimator* animator = reinterpret_cast<BaseRenderNodeAnimator*>(animatorPtr); local 181 BaseRenderNodeAnimator* animator = reinterpret_cast<BaseRenderNodeAnimator*>(animatorPtr); local 186 BaseRenderNodeAnimator* animator = reinterpret_cast<BaseRenderNodeAnimator*>(animatorPtr); local [all...] |
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/ |
H A D | ViewPropertyAnimatorCompatSet.java | 52 public ViewPropertyAnimatorCompatSet play(ViewPropertyAnimatorCompat animator) { argument 54 mAnimators.add(animator); 69 for (ViewPropertyAnimatorCompat animator : mAnimators) { 71 animator.setDuration(mDuration); 74 animator.setInterpolator(mInterpolator); 77 animator.setListener(mProxyListener); 79 animator.start(); 93 for (ViewPropertyAnimatorCompat animator : mAnimators) { 94 animator.cancel();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | NotificationDozeHelper.java | 70 ValueAnimator animator = ValueAnimator.ofFloat(startIntensity, endIntensity); 71 animator.addUpdateListener(updateListener); 72 animator.setDuration(NotificationPanelView.DOZE_ANIMATION_DURATION); 73 animator.setInterpolator(Interpolators.LINEAR_OUT_SLOW_IN); 74 animator.setStartDelay(delay); 76 animator.addListener(listener); 78 animator.start(); 98 Animator animator = (Animator) view.getTag(DOZE_ANIMATOR_TAG); 99 if (animator != null) { 100 animator [all...] |
H A D | PropertyAnimator.java | 34 * An animator to animate properties 68 // we need to increase all animation keyframes of the previous animator by the 86 ValueAnimator animator = ValueAnimator.ofFloat(currentValue, newEndValue); 87 animator.addUpdateListener( 92 animator.setInterpolator(interpolator); 95 animator.setDuration(newDuration); 98 animator.setStartDelay(properties.delay); 102 animator.addListener(listener); 105 animator.addListener(new AnimatorListenerAdapter() { 113 ViewState.startAnimator(animator, listene [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | ExpandableViewState.java | 262 // we need to increase all animation keyframes of the previous animator by the 279 ValueAnimator animator = ValueAnimator.ofInt(child.getActualHeight(), newEndValue); 280 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { 287 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); 289 animator.setDuration(newDuration); 292 animator.setStartDelay(properties.delay); 296 animator.addListener(listener); 299 animator.addListener(new AnimatorListenerAdapter() { 324 startAnimator(animator, listener); 325 child.setTag(TAG_ANIMATOR_HEIGHT, animator); [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | Animated3dActivity.java | 45 ObjectAnimator animator = ObjectAnimator.ofFloat(view, "rotationY", 0.0f, 360.0f); 46 animator.setDuration(4000); 47 animator.setRepeatCount(ObjectAnimator.INFINITE); 48 animator.setRepeatMode(ObjectAnimator.REVERSE); 49 animator.start();
|
H A D | ClipOutlineActivity.java | 46 ObjectAnimator animator = ObjectAnimator.ofFloat(group, "clipPosition", 0.0f, 1.0f); 47 animator.setDuration(3000); 48 animator.setRepeatCount(ValueAnimator.INFINITE); 49 animator.setRepeatMode(ValueAnimator.REVERSE); 50 animator.start();
|
H A D | ClipRegionActivity.java | 43 ObjectAnimator animator = ObjectAnimator.ofFloat(group, "clipPosition", 0.0f, 1.0f); 44 animator.setDuration(3000); 45 animator.setRepeatCount(ValueAnimator.INFINITE); 46 animator.setRepeatMode(ValueAnimator.REVERSE); 47 animator.start();
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | ResizeHWLayerActivity.java | 46 ValueAnimator animator = ValueAnimator.ofPropertyValuesHolder(pvhWidth, pvhHeight); 47 animator.setRepeatMode(ValueAnimator.REVERSE); 48 animator.setRepeatCount(ValueAnimator.INFINITE); 49 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { 57 animator.start();
|
H A D | GlTextureViewActivity.java | 57 ObjectAnimator animator = ObjectAnimator.ofFloat(mTextureView, "rotationY", 0.0f, 360.0f); 58 animator.setRepeatMode(ObjectAnimator.REVERSE); 59 animator.setRepeatCount(ObjectAnimator.INFINITE); 60 animator.setDuration(4000); 61 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { 67 animator.start();
|
H A D | InvalidateTreeActivity.java | 74 ObjectAnimator animator = ObjectAnimator.ofInt(this, "ignoredValue", 0, 1000); 75 animator.setRepeatMode(ValueAnimator.REVERSE); 76 animator.setRepeatCount(ValueAnimator.INFINITE); 77 animator.start();
|
H A D | InvalidateActivity.java | 83 ObjectAnimator animator = ObjectAnimator.ofInt(this, "colorValue", 0, 255); 84 animator.setRepeatMode(ValueAnimator.REVERSE); 85 animator.setRepeatCount(ValueAnimator.INFINITE); 86 animator.start();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | FlingAnimationUtils.java | 98 * Applies the interpolator and length to the animator, such that the fling animation is 101 * @param animator the animator to apply 103 * @param endValue the end value of the animator 106 public void apply(Animator animator, float currValue, float endValue, float velocity) { argument 107 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); 111 * Applies the interpolator and length to the animator, such that the fling animation is 114 * @param animator the animator to apply 116 * @param endValue the end value of the animator 119 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity) argument 135 apply(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument 154 apply(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument 220 applyDismissing(Animator animator, float currValue, float endValue, float velocity, float maxDistance) argument 240 applyDismissing(ViewPropertyAnimator animator, float currValue, float endValue, float velocity, float maxDistance) argument [all...] |
H A D | KeyguardAffordanceView.java | 271 RenderNodeAnimator animator = new RenderNodeAnimator(mHwCirclePaint, 273 animator.setTarget(this); 274 animator.setInterpolator(Interpolators.ALPHA_IN); 275 animator.setDuration(250); 276 animator.start(); 292 RenderNodeAnimator animator = new RenderNodeAnimator(mHwCirclePaint, 294 animator.setDuration(duration); 295 animator.setInterpolator(Interpolators.ALPHA_OUT); 296 animator.setTarget(this); 297 animator 413 cancelAnimator(Animator animator) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewPropertyAnimatorRT.java | 84 RenderNodeAnimator animator = new RenderNodeAnimator(property, finalValue); 85 animator.setStartDelay(startDelay); 86 animator.setDuration(duration); 87 animator.setInterpolator(interpolator); 88 animator.setTarget(mView); 89 animator.start(); 91 mAnimators[property] = animator; 106 // animator subsystem instead of multiple.
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | MessagingPropertyAnimator.java | 151 ObjectAnimator animator = ObjectAnimator.ofInt(v, TOP, start, end); 153 animator.setInterpolator(interpolator); 154 animator.setDuration(APPEAR_ANIMATION_LENGTH); 155 animator.addListener(new AnimatorListenerAdapter() { 170 v.setTagInternal(TAG_TOP_ANIMATOR, animator); 171 animator.start(); 189 ObjectAnimator animator = ObjectAnimator.ofFloat(v, View.ALPHA, 192 animator.setInterpolator(ALPHA_IN); 193 animator.setDuration(APPEAR_ANIMATION_LENGTH); 194 animator [all...] |
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | PlayAnimationThread.java | 30 public PlayAnimationThread(Animator animator, RenderSessionImpl scene, String animName, argument 33 mAnimator = animator;
|
/frameworks/support/leanback/kitkat/androidx/leanback/transition/ |
H A D | CustomChangeBounds.java | 63 Animator animator = super.createAnimator(sceneRoot, startValues, endValues); 64 if (animator != null && endValues != null && endValues.view != null) { 65 animator.setStartDelay(getDelay(endValues.view)); 67 return animator;
|