/frameworks/base/core/java/android/animation/ |
D | ValueAnimator.java | 349 ValueAnimator anim = new ValueAnimator(); in ofInt() local 350 anim.setIntValues(values); in ofInt() 351 return anim; in ofInt() 366 ValueAnimator anim = new ValueAnimator(); in ofArgb() local 367 anim.setIntValues(values); in ofArgb() 368 anim.setEvaluator(ArgbEvaluator.getInstance()); in ofArgb() 369 return anim; in ofArgb() 384 ValueAnimator anim = new ValueAnimator(); in ofFloat() local 385 anim.setFloatValues(values); in ofFloat() 386 return anim; in ofFloat() [all …]
|
D | LayoutTransition.java | 850 final Animator anim = baseAnimator.clone(); in setupChangeAnimation() local 853 anim.setTarget(child); in setupChangeAnimation() 857 anim.setupStartValues(); in setupChangeAnimation() 866 pendingAnimations.put(child, anim); in setupChangeAnimation() 890 anim.setupEndValues(); in setupChangeAnimation() 891 if (anim instanceof ValueAnimator) { in setupChangeAnimation() 893 ValueAnimator valueAnim = (ValueAnimator)anim; in setupChangeAnimation() 920 anim.setInterpolator(mChangingAppearingInterpolator); in setupChangeAnimation() 928 anim.setInterpolator(mChangingDisappearingInterpolator); in setupChangeAnimation() 935 anim.setInterpolator(mChangingInterpolator); in setupChangeAnimation() [all …]
|
D | ObjectAnimator.java | 244 ObjectAnimator anim = new ObjectAnimator(target, propertyName); in ofInt() local 245 anim.setIntValues(values); in ofInt() 246 return anim; in ofInt() 290 ObjectAnimator anim = new ObjectAnimator(target, property); in ofInt() local 291 anim.setIntValues(values); in ofInt() 292 return anim; in ofInt() 443 ObjectAnimator anim = new ObjectAnimator(target, propertyName); in ofFloat() local 444 anim.setFloatValues(values); in ofFloat() 445 return anim; in ofFloat() 490 ObjectAnimator anim = new ObjectAnimator(target, property); in ofFloat() local [all …]
|
D | AnimatorSet.java | 248 for (Animator anim : items) { 250 builder = play(anim); 252 builder.with(anim); 395 public Builder play(Animator anim) { 396 if (anim != null) { 397 return new Builder(anim); 479 Animator anim = event.mNode.mAnimation; 480 if (mNodeMap.get(anim).mEnded) { 484 anim.reverse(); 486 && anim.isStarted()) { [all …]
|
D | AnimatorInflater.java | 410 private static void parseAnimatorFromTypeArray(ValueAnimator anim, in parseAnimatorFromTypeArray() argument 425 anim.setValues(pvh); in parseAnimatorFromTypeArray() 428 anim.setDuration(duration); in parseAnimatorFromTypeArray() 429 anim.setStartDelay(startDelay); in parseAnimatorFromTypeArray() 432 anim.setRepeatCount( in parseAnimatorFromTypeArray() 436 anim.setRepeatMode( in parseAnimatorFromTypeArray() 442 setupObjectAnimator(anim, arrayObjectAnimator, valueType, pixelSize); in parseAnimatorFromTypeArray() 453 private static TypeEvaluator setupAnimatorForPath(ValueAnimator anim, in setupAnimatorForPath() argument 465 anim.setObjectValues(pathDataFrom, pathDataTo); in setupAnimatorForPath() 471 anim.setObjectValues((Object)pathDataFrom); in setupAnimatorForPath() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | DrawableHolder.java | 75 ObjectAnimator anim = ObjectAnimator.ofFloat(this, property, toValue); in addAnimTo() local 76 anim.setDuration(duration); in addAnimTo() 77 anim.setStartDelay(delay); in addAnimTo() 78 anim.setInterpolator(EASE_OUT_INTERPOLATOR); in addAnimTo() 79 this.addAnimation(anim, replace); in addAnimTo() 81 return anim; in addAnimTo() 115 private DrawableHolder addAnimation(ObjectAnimator anim, boolean overwrite) { in addAnimation() argument 116 if (anim != null) in addAnimation() 117 mAnimators.add(anim); in addAnimation() 118 mNeedToStart.add(anim); in addAnimation() [all …]
|
D | AbsActionBarView.java | 207 ObjectAnimator anim = ObjectAnimator.ofFloat(this, View.ALPHA, 1); in setupAnimatorToVisibility() local 208 anim.setDuration(duration); in setupAnimatorToVisibility() 209 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility() 215 set.play(anim).with(splitAnim); in setupAnimatorToVisibility() 218 anim.addListener(mVisAnimListener.withFinalVisibility(visibility)); in setupAnimatorToVisibility() 219 return anim; in setupAnimatorToVisibility() 222 ObjectAnimator anim = ObjectAnimator.ofFloat(this, View.ALPHA, 0); in setupAnimatorToVisibility() local 223 anim.setDuration(duration); in setupAnimatorToVisibility() 224 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility() 230 set.play(anim).with(splitAnim); in setupAnimatorToVisibility() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceAnimationRunner.java | 146 final RunningAnimation anim = mRunningAnimations.get(leash); in onAnimationCancelled() local 147 if (anim != null) { in onAnimationCancelled() 150 anim.mCancelled = true; in onAnimationCancelled() 153 anim.mAnim.cancel(); in onAnimationCancelled() 170 final ValueAnimator anim = mAnimatorFactory.makeAnimator(); in startAnimationLocked() local 173 anim.overrideDurationScale(1.0f); in startAnimationLocked() 174 anim.setDuration(a.mAnimSpec.getDuration()); in startAnimationLocked() 175 anim.addUpdateListener(animation -> { in startAnimationLocked() 178 final long duration = anim.getDuration(); in startAnimationLocked() 179 long currentPlayTime = anim.getCurrentPlayTime(); in startAnimationLocked() [all …]
|
D | AppWindowThumbnail.java | 122 void startAnimation(Transaction t, Animation anim) { in startAnimation() argument 123 startAnimation(t, anim, null /* position */); in startAnimation() 126 void startAnimation(Transaction t, Animation anim, Point position) { in startAnimation() argument 127 anim.restrictDuration(MAX_ANIMATION_DURATION); in startAnimation() 128 anim.scaleCurrentDuration(mAppToken.mWmService.getTransitionAnimationScaleLocked()); in startAnimation() 130 new WindowAnimationSpec(anim, position, in startAnimation() 139 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden) { in startAnimation() argument 140 mSurfaceAnimator.startAnimation(t, anim, hidden); in startAnimation()
|
D | WindowChangeAnimationSpec.java | 104 Animation anim = new AlphaAnimation(1.f, 0.f); in createBoundsInterpolator() local 105 anim.setDuration(scalePeriod); in createBoundsInterpolator() 107 anim.setStartOffset(duration - scalePeriod); in createBoundsInterpolator() 109 animSet.addAnimation(anim); in createBoundsInterpolator() 112 anim = new ScaleAnimation(endScaleX, endScaleX, endScaleY, endScaleY); in createBoundsInterpolator() 113 anim.setDuration(duration); in createBoundsInterpolator() 114 animSet.addAnimation(anim); in createBoundsInterpolator()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/qs/car/ |
D | CarQSFragment.java | 235 opening ? R.anim.car_user_switcher_open_animation in animateHeightChange() 236 : R.anim.car_user_switcher_close_animation); in animateHeightChange() 243 opening ? R.anim.car_user_switcher_open_name_animation in animateHeightChange() 244 : R.anim.car_user_switcher_close_name_animation); in animateHeightChange() 249 opening ? R.anim.car_user_switcher_open_icon_animation in animateHeightChange() 250 : R.anim.car_user_switcher_close_icon_animation); in animateHeightChange() 270 private void setupInitialValues(Animator anim) { in setupInitialValues() argument 271 if (anim instanceof AnimatorSet) { in setupInitialValues() 272 for (Animator a : ((AnimatorSet) anim).getChildAnimations()) { in setupInitialValues() 275 } else if (anim instanceof ObjectAnimator) { in setupInitialValues() [all …]
|
/frameworks/base/core/java/android/view/animation/ |
D | AnimationUtils.java | 165 Animation anim = null; in createAnimationFromXml() local 181 anim = new AnimationSet(c, attrs); in createAnimationFromXml() 182 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs); in createAnimationFromXml() 184 anim = new AlphaAnimation(c, attrs); in createAnimationFromXml() 186 anim = new ScaleAnimation(c, attrs); in createAnimationFromXml() 188 anim = new RotateAnimation(c, attrs); in createAnimationFromXml() 190 anim = new TranslateAnimation(c, attrs); in createAnimationFromXml() 192 anim = new ClipRectAnimation(c, attrs); in createAnimationFromXml() 198 parent.addAnimation(anim); in createAnimationFromXml() 202 return anim; in createAnimationFromXml() [all …]
|
/frameworks/base/core/java/com/android/internal/colorextraction/drawable/ |
D | ScrimDrawable.java | 72 ValueAnimator anim = ValueAnimator.ofFloat(0, 1); in setColor() local 73 anim.setDuration(COLOR_ANIMATION_DURATION); in setColor() 74 anim.addUpdateListener(animation -> { in setColor() 79 anim.addListener(new AnimatorListenerAdapter() { in setColor() 87 anim.setInterpolator(new DecelerateInterpolator()); in setColor() 88 anim.start(); in setColor() 89 mColorAnimation = anim; in setColor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DragDownHelper.java | 194 ObjectAnimator anim = ObjectAnimator.ofInt(child, "actualHeight", in cancelExpansion() local 196 anim.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in cancelExpansion() 197 anim.setDuration(SPRING_BACK_ANIMATION_LENGTH_MS); in cancelExpansion() 198 anim.addListener(new AnimatorListenerAdapter() { in cancelExpansion() 204 anim.start(); in cancelExpansion() 208 ValueAnimator anim = ValueAnimator.ofFloat(mLastHeight, 0); in cancelExpansion() local 209 anim.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in cancelExpansion() 210 anim.setDuration(SPRING_BACK_ANIMATION_LENGTH_MS); in cancelExpansion() 211 anim.addUpdateListener(animation -> { in cancelExpansion() 214 anim.start(); in cancelExpansion()
|
D | PulseExpansionHandler.kt | 203 val anim = ObjectAnimator.ofInt(child, "actualHeight", in <lambda>() constant 205 anim.interpolator = Interpolators.FAST_OUT_SLOW_IN in <lambda>() 206 anim.duration = SPRING_BACK_ANIMATION_LENGTH_MS.toLong() in <lambda>() 207 anim.addListener(object : AnimatorListenerAdapter() { in <lambda>() 212 anim.start() in <lambda>() 222 val anim = ValueAnimator.ofFloat(mEmptyDragAmount, 0f) in <lambda>() constant 223 anim.interpolator = Interpolators.FAST_OUT_SLOW_IN in <lambda>() 224 anim.duration = SPRING_BACK_ANIMATION_LENGTH_MS.toLong() in <lambda>() 225 anim.addUpdateListener { animation -> setEmptyDragAmount(animation.animatedValue as Float) } in <lambda>() 226 anim.start() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 150 ObjectAnimator anim = ObjectAnimator.ofFloat(v, in createTranslationAnimation() local 152 return anim; in createTranslationAnimation() 162 ObjectAnimator anim = createTranslationAnimation(v, target); in getViewTranslationAnimator() local 164 anim.addUpdateListener(listener); in getViewTranslationAnimator() 166 return anim; in getViewTranslationAnimator() 412 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild() local 413 if (anim == null) { in dismissChild() 417 anim.setInterpolator(Interpolators.FAST_OUT_LINEAR_IN); in dismissChild() 418 anim.setDuration(duration); in dismissChild() 420 mFlingAnimationUtils.applyDismissing(anim, getTranslation(animView), in dismissChild() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | CirclePropActivity.java | 126 RenderNodeAnimator anim = mRunningAnimations.get(i); in performClick() local 127 anim.setDuration(1000); in performClick() 128 anim.setTarget(this); in performClick() 131 anim.setStartValue(64.0f); in performClick() 132 anim.setStartDelay(anim.getDuration()); in performClick() 134 anim.start(); in performClick()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/ |
D | DockState.java | 192 ObjectAnimator anim; in startAnimation() local 196 anim = ObjectAnimator.ofInt(dockAreaOverlay, in startAnimation() 198 anim.setDuration(duration); in startAnimation() 199 anim.setInterpolator(interpolator); in startAnimation() 200 animators.add(anim); in startAnimation() 207 anim = ObjectAnimator.ofInt(this, HINT_ALPHA, mHintTextAlpha, in startAnimation() 209 anim.setDuration(150); in startAnimation() 210 anim.setInterpolator(hintAlpha > mHintTextAlpha in startAnimation() 213 animators.add(anim); in startAnimation() 224 anim = ObjectAnimator.ofPropertyValuesHolder(dockAreaOverlay, prop); in startAnimation() [all …]
|
D | TaskViewTransform.java | 161 ObjectAnimator anim = ObjectAnimator.ofFloat(v, View.TRANSLATION_Z, in applyToTaskView() local 163 animators.add(animation.apply(AnimationProps.TRANSLATION_Z, anim)); in applyToTaskView() 166 ObjectAnimator anim = ObjectAnimator.ofPropertyValuesHolder(v, in applyToTaskView() local 169 animators.add(animation.apply(AnimationProps.SCALE, anim)); in applyToTaskView() 172 ObjectAnimator anim = ObjectAnimator.ofFloat(v, View.ALPHA, v.getAlpha(), alpha); in applyToTaskView() local 173 animators.add(animation.apply(AnimationProps.ALPHA, anim)); in applyToTaskView() 179 ObjectAnimator anim = ObjectAnimator.ofPropertyValuesHolder(v, in applyToTaskView() local 182 animators.add(animation.apply(AnimationProps.BOUNDS, anim)); in applyToTaskView()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | HitRectBug.java | 63 ObjectAnimator anim = ObjectAnimator.ofFloat(mImageView, View.ROTATION, 0, 360); in TestDrawingView() local 64 anim.setRepeatCount(ValueAnimator.INFINITE); in TestDrawingView() 65 anim.setDuration(5000); in TestDrawingView() 66 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in TestDrawingView() 72 anim.start(); in TestDrawingView()
|
/frameworks/base/core/java/android/transition/ |
D | ChangeText.java | 190 Animator anim; in createAnimator() local 193 anim = ValueAnimator.ofFloat(0, 1); in createAnimator() 194 anim.addListener(new AnimatorListenerAdapter() { in createAnimator() 256 anim = new AnimatorSet(); in createAnimator() 257 ((AnimatorSet) anim).playSequentially(outAnim, inAnim); in createAnimator() 259 anim = outAnim; in createAnimator() 262 anim = inAnim; in createAnimator() 302 Log.d(LOG_TAG, "createAnimator returning " + anim); in createAnimator() 304 return anim; in createAnimator()
|
D | Crossfade.java | 197 ObjectAnimator anim; in createAnimator() local 200 anim = ObjectAnimator.ofInt(startDrawable, "alpha", 255, 0, 0); in createAnimator() 202 anim = ObjectAnimator.ofInt(startDrawable, "alpha", 0); in createAnimator() 204 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in createAnimator() 219 Log.d(LOG_TAG, "Crossfade: created anim " + anim + " for start, end values " + in createAnimator() 222 anim.addListener(new AnimatorListenerAdapter() { in createAnimator() 234 set.playTogether(anim); in createAnimator()
|
/frameworks/base/core/jni/ |
D | android_view_ThreadedRenderer.cpp | 123 explicit FinishAndInvokeListener(PropertyValuesAnimatorSet* anim) in FinishAndInvokeListener() argument 124 : mAnimator(anim) { in FinishAndInvokeListener() 125 mListener = anim->getOneShotListener(); in FinishAndInvokeListener() 126 mRequestId = anim->getRequestId(); in FinishAndInvokeListener() 194 for (auto& anim : mRunningVDAnimators) { in prepareTree() local 200 anim->getVectorDrawable()->setPropertyChangeWillBeConsumed(false); in prepareTree() 202 anim->getVectorDrawable()->markDirty(); in prepareTree() 205 for (auto &anim : mPausedVDAnimators) { in prepareTree() local 206 anim->getVectorDrawable()->setPropertyChangeWillBeConsumed(false); in prepareTree() 207 anim->getVectorDrawable()->markDirty(); in prepareTree() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 666 void postDispatchSwipe(final RecoverAnimation anim, final int swipeDir) { in postDispatchSwipe() argument 672 && !anim.mOverridden in postDispatchSwipe() 673 && anim.mViewHolder.getAdapterPosition() != RecyclerView.NO_POSITION) { in postDispatchSwipe() 680 mCallback.onSwiped(anim.mViewHolder, swipeDir); in postDispatchSwipe() 880 final RecoverAnimation anim = mRecoverAnimations.get(i); in endRecoverAnimation() local 881 if (anim.mViewHolder == viewHolder) { in endRecoverAnimation() 882 anim.mOverridden |= override; in endRecoverAnimation() 883 if (!anim.mEnded) { in endRecoverAnimation() 884 anim.cancel(); in endRecoverAnimation() 887 return anim.mAnimationType; in endRecoverAnimation() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | RenderNodeAnimatorTest.java | 54 RenderNodeAnimator anim = new RenderNodeAnimator(RenderNodeAnimator.ALPHA, 0.5f); in testAlphaTransformationInfo() local 55 anim.setTarget(view); in testAlphaTransformationInfo() 57 anim.start(); // should initialize mTransformationInfo in testAlphaTransformationInfo()
|