/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TouchAnimatorTests.java | 38 TouchAnimator animator = new TouchAnimator.Builder() in testSetValueFloat() local 42 animator.setPosition(0); in testSetValueFloat() 45 animator.setPosition(.5f); in testSetValueFloat() 48 animator.setPosition(1); in testSetValueFloat() 53 TouchAnimator animator = new TouchAnimator.Builder() in testSetValueInt() local 57 animator.setPosition(0); in testSetValueInt() 60 animator.setPosition(.5f); in testSetValueInt() 63 animator.setPosition(1); in testSetValueInt() 68 TouchAnimator animator = new TouchAnimator.Builder() in testStartDelay() local 73 animator.setPosition(0); in testStartDelay() [all …]
|
/frameworks/base/libs/hwui/ |
D | AnimatorManager.cpp | 30 static void detach(sp<BaseRenderNodeAnimator>& animator) { in detach() argument 31 animator->detach(); in detach() 44 void AnimatorManager::addAnimator(const sp<BaseRenderNodeAnimator>& animator) { in addAnimator() argument 45 RenderNode* stagingTarget = animator->stagingTarget(); in addAnimator() 49 mNewAnimators.emplace_back(animator.get()); in addAnimator() 54 stagingTarget->removeAnimator(animator); in addAnimator() 56 animator->attach(&mParent); in addAnimator() 59 void AnimatorManager::removeAnimator(const sp<BaseRenderNodeAnimator>& animator) { in removeAnimator() argument 60 mNewAnimators.erase(std::remove(mNewAnimators.begin(), mNewAnimators.end(), animator), in removeAnimator() 86 for (auto& animator : mAnimators) { in pushStaging() local [all …]
|
/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 | 257 RenderNodeAnimator animator = new RenderNodeAnimator(mHwCirclePaint, in startRtAlphaFadeIn() local 259 animator.setTarget(this); in startRtAlphaFadeIn() 260 animator.setInterpolator(Interpolators.ALPHA_IN); in startRtAlphaFadeIn() 261 animator.setDuration(250); in startRtAlphaFadeIn() 262 animator.start(); in startRtAlphaFadeIn() 278 RenderNodeAnimator animator = new RenderNodeAnimator(mHwCirclePaint, in startRtCircleFadeOut() local 280 animator.setDuration(duration); in startRtCircleFadeOut() 281 animator.setInterpolator(Interpolators.ALPHA_OUT); in startRtCircleFadeOut() 282 animator.setTarget(this); in startRtCircleFadeOut() 283 animator.start(); in startRtCircleFadeOut() [all …]
|
D | FlingAnimationUtils.java | 70 public void apply(Animator animator, float currValue, float endValue, float velocity) { in apply() argument 71 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 83 public void apply(ViewPropertyAnimator animator, float currValue, float endValue, in apply() argument 85 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply() 99 public void apply(Animator animator, float currValue, float endValue, float velocity, in apply() argument 103 animator.setDuration(properties.duration); in apply() 104 animator.setInterpolator(properties.interpolator); in apply() 118 public void apply(ViewPropertyAnimator animator, float currValue, float endValue, in apply() argument 122 animator.setDuration(properties.duration); in apply() 123 animator.setInterpolator(properties.interpolator); in apply() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DimLayerController.java | 146 + " state.animator=" + state.animator); in startDimmingIfNeeded() 147 if (newWinAnimator.getShown() && (state.animator == null in startDimmingIfNeeded() 148 || !state.animator.getShown() in startDimmingIfNeeded() 149 || state.animator.mAnimLayer <= newWinAnimator.mAnimLayer)) { in startDimmingIfNeeded() 150 state.animator = newWinAnimator; in startDimmingIfNeeded() 151 if (state.animator.mWin.mAppToken == null && !dimLayerUser.dimFullscreen()) { in startDimmingIfNeeded() 176 if (state.animator != null && state.animator.mWin.mWillReplaceWindow) { in stopDimmingIfNeeded() 181 state.animator = null; in stopDimmingIfNeeded() 226 + " state.animator=" + state.animator in animateDimLayers() 230 if (state.animator == null) { in animateDimLayers() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | OnboardingSupportFragment.java | 371 Animator animator = null; in startLogoAnimation() local 376 R.animator.lb_onboarding_logo_enter); in startLogoAnimation() 378 R.animator.lb_onboarding_logo_exit); in startLogoAnimation() 383 animator = logoAnimator; in startLogoAnimation() 385 animator = onCreateLogoAnimation(); in startLogoAnimation() 387 if (animator != null) { in startLogoAnimation() 388 animator.addListener(new AnimatorListenerAdapter() { in startLogoAnimation() 396 animator.start(); in startLogoAnimation() 458 Animator animator = AnimatorInflater.loadAnimator(getActivity(), in startEnterAnimation() local 459 R.animator.lb_onboarding_page_indicator_enter); in startEnterAnimation() [all …]
|
D | OnboardingFragment.java | 369 Animator animator = null; in startLogoAnimation() local 374 R.animator.lb_onboarding_logo_enter); in startLogoAnimation() 376 R.animator.lb_onboarding_logo_exit); in startLogoAnimation() 381 animator = logoAnimator; in startLogoAnimation() 383 animator = onCreateLogoAnimation(); in startLogoAnimation() 385 if (animator != null) { in startLogoAnimation() 386 animator.addListener(new AnimatorListenerAdapter() { in startLogoAnimation() 394 animator.start(); in startLogoAnimation() 456 Animator animator = AnimatorInflater.loadAnimator(getActivity(), in startEnterAnimation() local 457 R.animator.lb_onboarding_page_indicator_enter); in startEnterAnimation() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
D | StackStateAnimator.java | 426 ValueAnimator animator = ValueAnimator.ofFloat(child.getShadowAlpha(), newEndValue); in startShadowAlphaAnimation() local 427 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startShadowAlphaAnimation() 433 animator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in startShadowAlphaAnimation() 435 animator.setDuration(newDuration); in startShadowAlphaAnimation() 438 animator.setStartDelay(delay); in startShadowAlphaAnimation() 440 animator.addListener(getGlobalAnimationFinishedListener()); in startShadowAlphaAnimation() 442 animator.addListener(new AnimatorListenerAdapter() { in startShadowAlphaAnimation() 450 startAnimator(animator); in startShadowAlphaAnimation() 451 child.setTag(TAG_ANIMATOR_SHADOW_ALPHA, animator); in startShadowAlphaAnimation() 485 ValueAnimator animator = ValueAnimator.ofInt(child.getActualHeight(), newEndValue); in startHeightAnimation() local [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
D | ViewPropertyAnimatorCompatSet.java | 51 public ViewPropertyAnimatorCompatSet play(ViewPropertyAnimatorCompat animator) { in play() argument 53 mAnimators.add(animator); in play() 68 for (ViewPropertyAnimatorCompat animator : mAnimators) { in start() 70 animator.setDuration(mDuration); in start() 73 animator.setInterpolator(mInterpolator); in start() 76 animator.setListener(mProxyListener); in start() 78 animator.start(); in start() 92 for (ViewPropertyAnimatorCompat animator : mAnimators) { in cancel() 93 animator.cancel(); in cancel()
|
/frameworks/support/design/base/android/support/design/widget/ |
D | StateListAnimator.java | 33 public void onAnimationEnd(ValueAnimatorCompat animator) { 34 if (mRunningAnimator == animator) { 47 public void addState(int[] specs, ValueAnimatorCompat animator) { in addState() argument 48 Tuple tuple = new Tuple(specs, animator); in addState() 49 animator.addListener(mAnimationListener); in addState() 108 Tuple(int[] specs, ValueAnimatorCompat animator) { in Tuple() argument 110 mAnimator = animator; in Tuple()
|
D | ValueAnimatorCompat.java | 35 void onAnimationUpdate(ValueAnimatorCompat animator); in onAnimationUpdate() argument 49 void onAnimationStart(ValueAnimatorCompat animator); in onAnimationStart() argument 56 void onAnimationEnd(ValueAnimatorCompat animator); in onAnimationEnd() argument 63 void onAnimationCancel(ValueAnimatorCompat animator); in onAnimationCancel() argument 68 public void onAnimationStart(ValueAnimatorCompat animator) { in onAnimationStart() argument 72 public void onAnimationEnd(ValueAnimatorCompat animator) { in onAnimationEnd() argument 76 public void onAnimationCancel(ValueAnimatorCompat animator) { in onAnimationCancel() argument
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedVectorDrawable.java | 560 final Animator animator = AnimatorInflater.loadAnimator( in inflate() local 562 updateAnimatorProperty(animator, target, state.mVectorDrawable, in inflate() 564 state.addTargetAnimator(target, animator); in inflate() 586 private static void updateAnimatorProperty(Animator animator, String targetName, in updateAnimatorProperty() argument 588 if (animator instanceof ObjectAnimator) { in updateAnimatorProperty() 593 PropertyValuesHolder[] holders = ((ObjectAnimator) animator).getValues(); in updateAnimatorProperty() 616 } else if (animator instanceof AnimatorSet) { in updateAnimatorProperty() 617 for (Animator anim : ((AnimatorSet) animator).getChildAnimations()) { in updateAnimatorProperty() 641 VectorDrawableAnimatorRT animator = (VectorDrawableAnimatorRT) mAnimatorSet; in forceAnimationOnUI() local 642 if (animator.isRunning()) { in forceAnimationOnUI() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/ |
D | PipRecentsControlsView.java | 96 Animator animator = AnimatorInflater.loadAnimator(getContext(), animatorResId); in loadAnimator() local 97 animator.setTarget(view); in loadAnimator() 98 return animator; in loadAnimator() 142 private static void startAnimator(Animator animator, Animator previousAnimator) { in startAnimator() argument 144 if (!animator.isStarted()) { in startAnimator() 145 animator.start(); in startAnimator() 149 private static void cancelAnimator(Animator animator) { in cancelAnimator() argument 150 if (animator.isStarted()) { in cancelAnimator() 151 animator.cancel(); in cancelAnimator()
|
/frameworks/base/core/java/android/view/ |
D | ViewPropertyAnimatorRT.java | 84 RenderNodeAnimator animator = new RenderNodeAnimator(property, finalValue); in doStartAnimation() local 85 animator.setStartDelay(startDelay); in doStartAnimation() 86 animator.setDuration(duration); in doStartAnimation() 87 animator.setInterpolator(interpolator); in doStartAnimation() 88 animator.setTarget(mView); in doStartAnimation() 89 animator.start(); in doStartAnimation() 91 mAnimators[property] = animator; in doStartAnimation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | KeyguardAffordanceHelper.java | 248 ValueAnimator animator = getAnimatorToRadius(right, mHintGrowAmount); in startHintAnimationPhase1() local 249 animator.addListener(new AnimatorListenerAdapter() { in startHintAnimationPhase1() 268 animator.setInterpolator(Interpolators.LINEAR_OUT_SLOW_IN); in startHintAnimationPhase1() 269 animator.setDuration(HINT_PHASE1_DURATION); in startHintAnimationPhase1() 270 animator.start(); in startHintAnimationPhase1() 271 mSwipeAnimator = animator; in startHintAnimationPhase1() 279 ValueAnimator animator = getAnimatorToRadius(right, 0); in startUnlockHintAnimationPhase2() local 280 animator.addListener(new AnimatorListenerAdapter() { in startUnlockHintAnimationPhase2() 288 animator.setInterpolator(Interpolators.FAST_OUT_LINEAR_IN); in startUnlockHintAnimationPhase2() 289 animator.setDuration(HINT_PHASE2_DURATION); in startUnlockHintAnimationPhase2() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | GlTextureViewActivity.java | 54 ObjectAnimator animator = ObjectAnimator.ofFloat(mTextureView, "rotationY", 0.0f, 360.0f); in onSurfaceTextureAvailable() local 55 animator.setRepeatMode(ObjectAnimator.REVERSE); in onSurfaceTextureAvailable() 56 animator.setRepeatCount(ObjectAnimator.INFINITE); in onSurfaceTextureAvailable() 57 animator.setDuration(4000); in onSurfaceTextureAvailable() 58 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in onSurfaceTextureAvailable() 64 animator.start(); in onSurfaceTextureAvailable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ViewInvertHelper.java | 66 ValueAnimator animator = ValueAnimator.ofFloat(startIntensity, endIntensity); in fade() local 67 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in fade() 76 animator.addListener(new AnimatorListenerAdapter() { in fade() 86 animator.setDuration(mFadeDuration); in fade() 87 animator.setInterpolator(Interpolators.LINEAR_OUT_SLOW_IN); in fade() 88 animator.setStartDelay(delay); in fade() 89 animator.start(); in fade()
|
/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()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/drawable/ |
D | AnimatedVectorDrawable_Delegate.java | 68 ObjectAnimator animator = new ObjectAnimator(); in nAddAnimator() local 69 animator.setValues(holder.getValues()); in nAddAnimator() 70 animator.setInterpolator( in nAddAnimator() 72 animator.setStartDelay(startDelay); in nAddAnimator() 73 animator.setDuration(duration); in nAddAnimator() 74 animator.setRepeatCount(repeatCount); in nAddAnimator() 75 animator.setTarget(holder); in nAddAnimator() 76 animator.setPropertyName(holder.getValues().getPropertyName()); in nAddAnimator() 80 set.addAnimator(animator); in nAddAnimator() 176 private void addAnimator(@NonNull Animator animator) { in addAnimator() argument [all …]
|
/frameworks/support/design/gingerbread/android/support/design/widget/ |
D | FloatingActionButtonGingerbread.java | 209 final ValueAnimatorCompat animator = mAnimatorCreator.createAnimator(); in createAnimator() local 210 animator.setInterpolator(ANIM_INTERPOLATOR); in createAnimator() 211 animator.setDuration(PRESSED_ANIM_DURATION); in createAnimator() 212 animator.addListener(impl); in createAnimator() 213 animator.addUpdateListener(impl); in createAnimator() 214 animator.setFloatValues(0, 1); in createAnimator() 215 return animator; in createAnimator() 225 public void onAnimationUpdate(ValueAnimatorCompat animator) { in onAnimationUpdate() argument 233 + ((mShadowSizeEnd - mShadowSizeStart) * animator.getAnimatedFraction())); in onAnimationUpdate() 237 public void onAnimationEnd(ValueAnimatorCompat animator) { in onAnimationEnd() argument
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | FocusHighlightHelper.java | 171 FocusAnimator animator = (FocusAnimator) view.getTag(R.id.lb_focus_animator); in getOrCreateAnimator() local 172 if (animator == null) { in getOrCreateAnimator() 173 animator = new FocusAnimator( in getOrCreateAnimator() 175 view.setTag(R.id.lb_focus_animator, animator); in getOrCreateAnimator() 177 return animator; in getOrCreateAnimator() 251 FocusAnimator animator = (FocusAnimator) view.getTag(R.id.lb_focus_animator); in viewFocused() local 252 if (animator == null) { in viewFocused() 253 animator = new HeaderFocusAnimator(view, sSelectScale, sDuration); in viewFocused() 254 view.setTag(R.id.lb_focus_animator, animator); in viewFocused() 256 animator.animateFocus(hasFocus, false); in viewFocused()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationViewWrapper.java | 94 ValueAnimator animator = ValueAnimator.ofFloat(startIntensity, endIntensity); in startIntensityAnimation() local 95 animator.addUpdateListener(updateListener); in startIntensityAnimation() 96 animator.setDuration(NotificationPanelView.DOZE_ANIMATION_DURATION); in startIntensityAnimation() 97 animator.setInterpolator(Interpolators.LINEAR_OUT_SLOW_IN); in startIntensityAnimation() 98 animator.setStartDelay(delay); in startIntensityAnimation() 100 animator.addListener(listener); in startIntensityAnimation() 102 animator.start(); in startIntensityAnimation()
|
/frameworks/support/transition/tests/src/android/support/transition/ |
D | FadeTest.java | 63 Animator animator = fade.createAnimator(mRoot, startValues, endValues); in testDisappear() local 64 assertThat(animator, is(notNullValue())); in testDisappear() 79 Animator animator = fade.createAnimator(mRoot, startValues, endValues); in testAppear() local 80 assertThat(animator, is(notNullValue())); in testAppear() 93 Animator animator = fade.createAnimator(mRoot, startValues, endValues); in testNoChange() local 95 assertThat(animator, is(nullValue())); in testNoChange()
|