/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TouchAnimatorTest.java | 47 TouchAnimator animator = new TouchAnimator.Builder() in testSetValueFloat() local 51 animator.setPosition(0); in testSetValueFloat() 54 animator.setPosition(.5f); in testSetValueFloat() 57 animator.setPosition(1); in testSetValueFloat() 63 TouchAnimator animator = new TouchAnimator.Builder() in testSetValueFloat_threeValues() local 67 animator.setPosition(0); in testSetValueFloat_threeValues() 70 animator.setPosition(.25f); in testSetValueFloat_threeValues() 73 animator.setPosition(.5f); in testSetValueFloat_threeValues() 76 animator.setPosition(.75f); in testSetValueFloat_threeValues() 79 animator.setPosition(1); in testSetValueFloat_threeValues() [all …]
|
/frameworks/base/libs/hwui/ |
D | AnimatorManager.cpp | 30 static void detach(sp<BaseRenderNodeAnimator>& animator) { in detach() argument 31 animator->detach(); in detach() 41 void AnimatorManager::addAnimator(const sp<BaseRenderNodeAnimator>& animator) { in addAnimator() argument 42 RenderNode* stagingTarget = animator->stagingTarget(); in addAnimator() 46 mNewAnimators.emplace_back(animator.get()); in addAnimator() 51 stagingTarget->removeAnimator(animator); in addAnimator() 53 animator->attach(&mParent); in addAnimator() 56 void AnimatorManager::removeAnimator(const sp<BaseRenderNodeAnimator>& animator) { in removeAnimator() argument 57 mNewAnimators.erase(std::remove(mNewAnimators.begin(), mNewAnimators.end(), animator), in removeAnimator() 85 for (auto& animator : mAnimators) { in pushStaging() local [all …]
|
D | PropertyValuesAnimatorSet.cpp | 29 PropertyAnimator* animator = new PropertyAnimator( in addPropertyAnimator() local 31 mAnimators.emplace_back(animator); in addPropertyAnimator() 46 void PropertyValuesAnimatorSet::onFinished(BaseRenderNodeAnimator* animator) { in onFinished() argument 58 listener->onAnimationFinished(animator); in onFinished() 182 void PropertyAnimatorSetListener::onAnimationFinished(BaseRenderNodeAnimator* animator) { in onAnimationFinished() argument 183 mSet->onFinished(animator); in onAnimationFinished()
|
/frameworks/base/core/jni/ |
D | android_view_RenderNodeAnimator.cpp | 50 virtual void onAnimationFinished(BaseRenderNodeAnimator* animator) { in onAnimationFinished() argument 51 LOG_ALWAYS_FATAL("Lifecycle failure, nStart(%p) wasn't called", animator); in onAnimationFinished() 111 BaseRenderNodeAnimator* animator = new RenderPropertyAnimator(property, finalValue); in createAnimator() local 112 animator->setListener(&sLifecycleChecker); in createAnimator() 113 return reinterpret_cast<jlong>( animator ); in createAnimator() 119 …BaseRenderNodeAnimator* animator = new CanvasPropertyPrimitiveAnimator(canvasProperty, finalValue); in createCanvasPropertyFloatAnimator() local 120 animator->setListener(&sLifecycleChecker); in createCanvasPropertyFloatAnimator() 121 return reinterpret_cast<jlong>( animator ); in createCanvasPropertyFloatAnimator() 129 BaseRenderNodeAnimator* animator = new CanvasPropertyPaintAnimator( in createCanvasPropertyPaintAnimator() local 131 animator->setListener(&sLifecycleChecker); in createCanvasPropertyPaintAnimator() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardAffordanceView.java | 280 RenderNodeAnimator animator = new RenderNodeAnimator(mHwCirclePaint, in startRtAlphaFadeIn() local 282 animator.setTarget(this); in startRtAlphaFadeIn() 283 animator.setInterpolator(Interpolators.ALPHA_IN); in startRtAlphaFadeIn() 284 animator.setDuration(250); in startRtAlphaFadeIn() 285 animator.start(); in startRtAlphaFadeIn() 301 RenderNodeAnimator animator = new RenderNodeAnimator(mHwCirclePaint, in startRtCircleFadeOut() local 303 animator.setDuration(duration); in startRtCircleFadeOut() 304 animator.setInterpolator(Interpolators.ALPHA_OUT); in startRtCircleFadeOut() 305 animator.setTarget(this); in startRtCircleFadeOut() 306 animator.start(); in startRtCircleFadeOut() [all …]
|
D | FlingAnimationUtils.java | 110 public void apply(Animator animator, float currValue, float endValue, float velocity) { in apply() argument 111 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 123 public void apply(ViewPropertyAnimator animator, float currValue, float endValue, in apply() argument 125 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 139 public void apply(Animator animator, float currValue, float endValue, float velocity, in apply() argument 143 animator.setDuration(properties.duration); in apply() 144 animator.setInterpolator(properties.interpolator); in apply() 158 public void apply(ViewPropertyAnimator animator, float currValue, float endValue, in apply() argument 162 animator.setDuration(properties.duration); in apply() 163 animator.setInterpolator(properties.interpolator); in apply() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | ViewState.java | 360 ObjectAnimator animator = ObjectAnimator.ofFloat(child, View.ALPHA, in startAlphaAnimation() local 362 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in startAlphaAnimation() 365 animator.addListener(new AnimatorListenerAdapter() { in startAlphaAnimation() 391 animator.setDuration(newDuration); in startAlphaAnimation() 394 animator.setStartDelay(properties.delay); in startAlphaAnimation() 398 animator.addListener(listener); in startAlphaAnimation() 401 startAnimator(animator, listener); in startAlphaAnimation() 402 child.setTag(TAG_ANIMATOR_ALPHA, animator); in startAlphaAnimation() 444 ObjectAnimator animator = ObjectAnimator.ofFloat(child, View.TRANSLATION_Z, in startZTranslationAnimation() local 446 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in startZTranslationAnimation() [all …]
|
D | ExpandableViewState.java | 251 ValueAnimator animator = ValueAnimator.ofInt(child.getActualHeight(), newEndValue); in startHeightAnimation() local 252 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startHeightAnimation() 259 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in startHeightAnimation() 261 animator.setDuration(newDuration); in startHeightAnimation() 264 animator.setStartDelay(properties.delay); in startHeightAnimation() 268 animator.addListener(listener); in startHeightAnimation() 271 animator.addListener(new AnimatorListenerAdapter() { in startHeightAnimation() 296 startAnimator(animator, listener); in startHeightAnimation() 297 child.setTag(TAG_ANIMATOR_HEIGHT, animator); in startHeightAnimation() 332 ValueAnimator animator = ValueAnimator.ofInt(child.getClipTopAmount(), newEndValue); in startInsetAnimation() local [all …]
|
D | NotificationSection.java | 113 ObjectAnimator animator = ObjectAnimator.ofInt(this, "backgroundTop", in startTopAnimation() local 116 animator.setInterpolator(interpolator); in startTopAnimation() 117 animator.setDuration(StackStateAnimator.ANIMATION_DURATION_STANDARD); in startTopAnimation() 119 animator.addListener(new AnimatorListenerAdapter() { in startTopAnimation() 127 animator.start(); in startTopAnimation() 130 mTopAnimator = animator; in startTopAnimation() 162 ObjectAnimator animator = ObjectAnimator.ofInt(this, "backgroundBottom", in startBottomAnimation() local 165 animator.setInterpolator(interpolator); in startBottomAnimation() 166 animator.setDuration(StackStateAnimator.ANIMATION_DURATION_STANDARD); in startBottomAnimation() 168 animator.addListener(new AnimatorListenerAdapter() { in startBottomAnimation() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingPropertyAnimator.java | 151 ObjectAnimator animator = ObjectAnimator.ofInt(v, TOP, start, end); in startTopAnimation() local 153 animator.setInterpolator(interpolator); in startTopAnimation() 154 animator.setDuration(APPEAR_ANIMATION_LENGTH); in startTopAnimation() 155 animator.addListener(new AnimatorListenerAdapter() { in startTopAnimation() 170 v.setTagInternal(TAG_TOP_ANIMATOR, animator); in startTopAnimation() 171 animator.start(); in startTopAnimation() 189 ObjectAnimator animator = ObjectAnimator.ofFloat(v, View.ALPHA, in fadeIn() local 192 animator.setInterpolator(ALPHA_IN); in fadeIn() 193 animator.setDuration(APPEAR_ANIMATION_LENGTH); in fadeIn() 194 animator.addListener(new AnimatorListenerAdapter() { in fadeIn() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
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()
|
D | PropertyAnimator.java | 85 ValueAnimator animator = ValueAnimator.ofFloat(currentValue, newEndValue); in startAnimation() local 86 animator.addUpdateListener( in startAnimation() 91 animator.setInterpolator(interpolator); in startAnimation() 94 animator.setDuration(newDuration); in startAnimation() 97 animator.setStartDelay(properties.delay); in startAnimation() 101 animator.addListener(listener); in startAnimation() 104 animator.addListener(new AnimatorListenerAdapter() { in startAnimation() 112 ViewState.startAnimator(animator, listener); in startAnimation() 113 view.setTag(animatorTag, animator); in startAnimation() 125 ValueAnimator animator = (ValueAnimator) view.getTag(property.getAnimatorTag()); in cancelAnimation() local [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedVectorDrawable.java | 570 final Animator animator = AnimatorInflater.loadAnimator( in inflate() local 572 updateAnimatorProperty(animator, target, state.mVectorDrawable, in inflate() 574 state.addTargetAnimator(target, animator); in inflate() 596 private static void updateAnimatorProperty(Animator animator, String targetName, in updateAnimatorProperty() argument 598 if (animator instanceof ObjectAnimator) { in updateAnimatorProperty() 603 PropertyValuesHolder[] holders = ((ObjectAnimator) animator).getValues(); in updateAnimatorProperty() 626 } else if (animator instanceof AnimatorSet) { in updateAnimatorProperty() 627 for (Animator anim : ((AnimatorSet) animator).getChildAnimations()) { in updateAnimatorProperty() 652 VectorDrawableAnimatorRT animator = (VectorDrawableAnimatorRT) mAnimatorSet; in forceAnimationOnUI() local 653 if (animator.isRunning()) { in forceAnimationOnUI() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardAffordanceHelper.java | 244 ValueAnimator animator = getAnimatorToRadius(right, mHintGrowAmount); in startHintAnimationPhase1() local 245 animator.addListener(new AnimatorListenerAdapter() { in startHintAnimationPhase1() 264 animator.setInterpolator(Interpolators.LINEAR_OUT_SLOW_IN); in startHintAnimationPhase1() 265 animator.setDuration(HINT_PHASE1_DURATION); in startHintAnimationPhase1() 266 animator.start(); in startHintAnimationPhase1() 267 mSwipeAnimator = animator; in startHintAnimationPhase1() 275 ValueAnimator animator = getAnimatorToRadius(right, 0); in startUnlockHintAnimationPhase2() local 276 animator.addListener(new AnimatorListenerAdapter() { in startUnlockHintAnimationPhase2() 284 animator.setInterpolator(Interpolators.FAST_OUT_LINEAR_IN); in startUnlockHintAnimationPhase2() 285 animator.setDuration(HINT_PHASE2_DURATION); in startUnlockHintAnimationPhase2() [all …]
|
D | PanelView.java | 752 ValueAnimator animator = createHeightAnimator(target); in flingToHeight() local 757 mFlingAnimationUtils.apply(animator, mExpandedHeight, target, vel, getHeight()); in flingToHeight() 759 animator.setDuration(350); in flingToHeight() 764 animator.setInterpolator(Interpolators.PANEL_CLOSE_ACCELERATED); in flingToHeight() 766 animator.setDuration(duration); in flingToHeight() 768 mFlingAnimationUtilsDismissing.apply(animator, mExpandedHeight, target, vel, in flingToHeight() 773 .apply(animator, mExpandedHeight, target, vel, getHeight()); in flingToHeight() 778 animator.setDuration((long) (animator.getDuration() / collapseSpeedUpFactor)); in flingToHeight() 781 animator.setDuration(mFixedDuration); in flingToHeight() 784 animator.addListener(new AnimatorListenerAdapter() { in flingToHeight() [all …]
|
/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
D | AnimatedVectorDrawable_Delegate.java | 73 ObjectAnimator animator = new ObjectAnimator(); in nAddAnimator() local 74 animator.setValues(holder.getValues()); in nAddAnimator() 75 animator.setInterpolator( in nAddAnimator() 77 animator.setStartDelay(startDelay); in nAddAnimator() 78 animator.setDuration(duration); in nAddAnimator() 79 animator.setRepeatCount(repeatCount); in nAddAnimator() 80 animator.setRepeatMode(repeatMode); in nAddAnimator() 81 animator.setTarget(holder); in nAddAnimator() 82 animator.setPropertyName(holder.getValues().getPropertyName()); in nAddAnimator() 86 set.addAnimator(animator); in nAddAnimator() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | Animated3dActivity.java | 45 ObjectAnimator animator = ObjectAnimator.ofFloat(view, "rotationY", 0.0f, 360.0f); in onCreate() local 46 animator.setDuration(4000); in onCreate() 47 animator.setRepeatCount(ObjectAnimator.INFINITE); in onCreate() 48 animator.setRepeatMode(ObjectAnimator.REVERSE); in onCreate() 49 animator.start(); in onCreate()
|
D | ClipRegionActivity.java | 43 ObjectAnimator animator = ObjectAnimator.ofFloat(group, "clipPosition", 0.0f, 1.0f); in onCreate() local 44 animator.setDuration(3000); in onCreate() 45 animator.setRepeatCount(ValueAnimator.INFINITE); in onCreate() 46 animator.setRepeatMode(ValueAnimator.REVERSE); in onCreate() 47 animator.start(); in onCreate()
|
D | ClipOutlineActivity.java | 46 ObjectAnimator animator = ObjectAnimator.ofFloat(group, "clipPosition", 0.0f, 1.0f); in onCreate() local 47 animator.setDuration(3000); in onCreate() 48 animator.setRepeatCount(ValueAnimator.INFINITE); in onCreate() 49 animator.setRepeatMode(ValueAnimator.REVERSE); in onCreate() 50 animator.start(); in onCreate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | PropertyAnimatorTest.java | 193 ValueAnimator animator = ViewState.getChildTag(mView, mProperty.getAnimatorTag()); in testUsingDuration() local 194 assertNotNull(animator); in testUsingDuration() 195 assertEquals(animator.getDuration(), 500); in testUsingDuration() 204 ValueAnimator animator = ViewState.getChildTag(mView, mProperty.getAnimatorTag()); in testUsingDelay() local 205 assertNotNull(animator); in testUsingDelay() 206 assertEquals(animator.getStartDelay(), 200); in testUsingDelay() 215 ValueAnimator animator = ViewState.getChildTag(mView, mProperty.getAnimatorTag()); in testUsingInterpolator() local 216 assertNotNull(animator); in testUsingInterpolator() 217 assertEquals(animator.getInterpolator(), mTestInterpolator); in testUsingInterpolator() 226 ValueAnimator animator = ViewState.getChildTag(mView, mProperty.getAnimatorTag()); in testUsingListener() local [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | GlTextureViewActivity.java | 57 ObjectAnimator animator = ObjectAnimator.ofFloat(mTextureView, "rotationY", 0.0f, 360.0f); in onSurfaceTextureAvailable() local 58 animator.setRepeatMode(ObjectAnimator.REVERSE); in onSurfaceTextureAvailable() 59 animator.setRepeatCount(ObjectAnimator.INFINITE); in onSurfaceTextureAvailable() 60 animator.setDuration(4000); in onSurfaceTextureAvailable() 61 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in onSurfaceTextureAvailable() 67 animator.start(); in onSurfaceTextureAvailable()
|
D | ResizeHWLayerActivity.java | 46 ValueAnimator animator = ValueAnimator.ofPropertyValuesHolder(pvhWidth, pvhHeight); in onCreate() local 47 animator.setRepeatMode(ValueAnimator.REVERSE); in onCreate() 48 animator.setRepeatCount(ValueAnimator.INFINITE); in onCreate() 49 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in onCreate() 57 animator.start(); in onCreate()
|
/frameworks/base/core/java/android/view/ |
D | ViewAnimationHostBridge.java | 37 public void registerAnimatingRenderNode(RenderNode animator) { in registerAnimatingRenderNode() argument 38 mView.mAttachInfo.mViewRootImpl.registerAnimatingRenderNode(animator); in registerAnimatingRenderNode() 42 public void registerVectorDrawableAnimator(NativeVectorDrawableAnimator animator) { in registerVectorDrawableAnimator() argument 43 mView.mAttachInfo.mViewRootImpl.registerVectorDrawableAnimator(animator); in registerVectorDrawableAnimator()
|
D | RenderNodeAnimator.java | 463 public void addDelayedAnimation(RenderNodeAnimator animator) { in addDelayedAnimation() argument 464 mDelayedAnims.add(animator); in addDelayedAnimation() 468 public void removeDelayedAnimation(RenderNodeAnimator animator) { in removeDelayedAnimation() argument 469 mDelayedAnims.remove(animator); in removeDelayedAnimation() 486 RenderNodeAnimator animator = mDelayedAnims.get(i); in run() local 487 if (!animator.processDelayed(frameTimeMs)) { in run() 489 mDelayedAnims.set(end, animator); in run() 506 private static void callOnFinished(RenderNodeAnimator animator) { in callOnFinished() argument 507 if (animator.mHandler != null) { in callOnFinished() 508 animator.mHandler.post(animator::onFinished); in callOnFinished() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | StateListAnimator.java | 82 public void addState(int[] specs, Animator animator) { in addState() argument 83 Tuple tuple = new Tuple(specs, animator); in addState() 86 mChangingConfigurations |= animator.getChangingConfigurations(); in addState() 282 private Tuple(int[] specs, Animator animator) { in Tuple() argument 284 mAnimator = animator; in Tuple() 315 public StateListAnimatorConstantState(StateListAnimator animator) { in StateListAnimatorConstantState() argument 316 mAnimator = animator; in StateListAnimatorConstantState()
|