/frameworks/support/dynamic-animation/src/androidTest/java/androidx/dynamicanimation/tests/ |
D | SpringTests.java | 98 final SpringAnimation anim = new SpringAnimation(animObj, property, 1f); in testCustomProperties() local 101 anim.addEndListener(listener); in testCustomProperties() 105 anim.start(); in testCustomProperties() 108 verify(listener, timeout(1000)).onAnimationEnd(anim, false, 1f, 0f); in testCustomProperties() 133 final SpringAnimation anim = new SpringAnimation(floatValueHolder) in testFloatValueHolder() local 135 anim.setSpring(new SpringForce(1000).setDampingRatio(1.2f)); in testFloatValueHolder() 139 anim.addEndListener(listener); in testFloatValueHolder() 143 anim.setStartValue(0).start(); in testFloatValueHolder() 147 verify(mockListener, timeout(1000).atLeast(10)).onAnimationUpdate(eq(anim), lt(1000f), in testFloatValueHolder() 149 verify(listener, timeout(1000)).onAnimationEnd(anim, false, 1000f, 0f); in testFloatValueHolder() [all …]
|
D | FlingTests.java | 90 final FlingAnimation anim = new FlingAnimation(animObj, property); in testCustomProperties() local 93 anim.addEndListener(listener); in testCustomProperties() 97 anim.setStartValue(100).setStartVelocity(2000).start(); in testCustomProperties() 100 verify(listener, timeout(1000)).onAnimationEnd(eq(anim), eq(false), floatThat( in testCustomProperties() 112 final FlingAnimation anim = new FlingAnimation(floatValueHolder).setStartVelocity(-2500); in testFloatValueHolder() local 116 anim.addEndListener(listener); in testFloatValueHolder() 120 anim.start(); in testFloatValueHolder() 123 verify(listener, timeout(1000)).onAnimationEnd(eq(anim), eq(false), floatThat( in testFloatValueHolder()
|
/frameworks/base/core/java/android/animation/ |
D | LayoutTransition.java | 848 final Animator anim = baseAnimator.clone(); in setupChangeAnimation() local 851 anim.setTarget(child); in setupChangeAnimation() 855 anim.setupStartValues(); in setupChangeAnimation() 864 pendingAnimations.put(child, anim); in setupChangeAnimation() 888 anim.setupEndValues(); in setupChangeAnimation() 889 if (anim instanceof ValueAnimator) { in setupChangeAnimation() 891 ValueAnimator valueAnim = (ValueAnimator)anim; in setupChangeAnimation() 918 anim.setInterpolator(mChangingAppearingInterpolator); in setupChangeAnimation() 926 anim.setInterpolator(mChangingDisappearingInterpolator); in setupChangeAnimation() 933 anim.setInterpolator(mChangingInterpolator); in setupChangeAnimation() [all …]
|
D | ValueAnimator.java | 339 ValueAnimator anim = new ValueAnimator(); in ofInt() local 340 anim.setIntValues(values); in ofInt() 341 return anim; in ofInt() 356 ValueAnimator anim = new ValueAnimator(); in ofArgb() local 357 anim.setIntValues(values); in ofArgb() 358 anim.setEvaluator(ArgbEvaluator.getInstance()); in ofArgb() 359 return anim; in ofArgb() 374 ValueAnimator anim = new ValueAnimator(); in ofFloat() local 375 anim.setFloatValues(values); in ofFloat() 376 return anim; in ofFloat() [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 | 206 ObjectAnimator anim = ObjectAnimator.ofFloat(this, View.ALPHA, 1); in setupAnimatorToVisibility() local 207 anim.setDuration(duration); in setupAnimatorToVisibility() 208 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility() 214 set.play(anim).with(splitAnim); in setupAnimatorToVisibility() 217 anim.addListener(mVisAnimListener.withFinalVisibility(visibility)); in setupAnimatorToVisibility() 218 return anim; in setupAnimatorToVisibility() 221 ObjectAnimator anim = ObjectAnimator.ofFloat(this, View.ALPHA, 0); in setupAnimatorToVisibility() local 222 anim.setDuration(duration); in setupAnimatorToVisibility() 223 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility() 229 set.play(anim).with(splitAnim); in setupAnimatorToVisibility() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceAnimationRunner.java | 140 final RunningAnimation anim = mRunningAnimations.get(leash); in onAnimationCancelled() local 141 if (anim != null) { in onAnimationCancelled() 144 anim.mCancelled = true; in onAnimationCancelled() 147 anim.mAnim.cancel(); in onAnimationCancelled() 164 final ValueAnimator anim = mAnimatorFactory.makeAnimator(); in startAnimationLocked() local 167 anim.overrideDurationScale(1.0f); in startAnimationLocked() 168 anim.setDuration(a.mAnimSpec.getDuration()); in startAnimationLocked() 169 anim.addUpdateListener(animation -> { in startAnimationLocked() 172 final long duration = anim.getDuration(); in startAnimationLocked() 173 long currentPlayTime = anim.getCurrentPlayTime(); in startAnimationLocked() [all …]
|
D | AppWindowThumbnail.java | 90 void startAnimation(Transaction t, Animation anim) { in startAnimation() argument 91 startAnimation(t, anim, null /* position */); in startAnimation() 94 void startAnimation(Transaction t, Animation anim, Point position) { in startAnimation() argument 95 anim.restrictDuration(MAX_ANIMATION_DURATION); in startAnimation() 96 anim.scaleCurrentDuration(mAppToken.mService.getTransitionAnimationScaleLocked()); in startAnimation() 98 new WindowAnimationSpec(anim, position, in startAnimation()
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
D | AbsActionBarView.java | 166 ViewPropertyAnimatorCompat anim = ViewCompat.animate(this).alpha(1f); in setupAnimatorToVisibility() local 167 anim.setDuration(duration); in setupAnimatorToVisibility() 168 anim.setListener(mVisAnimListener.withFinalVisibility(anim, visibility)); in setupAnimatorToVisibility() 169 return anim; in setupAnimatorToVisibility() 171 ViewPropertyAnimatorCompat anim = ViewCompat.animate(this).alpha(0f); in setupAnimatorToVisibility() local 172 anim.setDuration(duration); in setupAnimatorToVisibility() 173 anim.setListener(mVisAnimListener.withFinalVisibility(anim, visibility)); in setupAnimatorToVisibility() 174 return anim; in setupAnimatorToVisibility() 179 ViewPropertyAnimatorCompat anim = setupAnimatorToVisibility(visibility, FADE_DURATION); in animateToVisibility() local 180 anim.start(); in animateToVisibility()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/car/ |
D | CarQSFragment.java | 231 opening ? R.anim.car_user_switcher_open_animation in animateHeightChange() 232 : R.anim.car_user_switcher_close_animation); in animateHeightChange() 239 opening ? R.anim.car_user_switcher_open_name_animation in animateHeightChange() 240 : R.anim.car_user_switcher_close_name_animation); in animateHeightChange() 245 opening ? R.anim.car_user_switcher_open_icon_animation in animateHeightChange() 246 : R.anim.car_user_switcher_close_icon_animation); in animateHeightChange() 266 private void setupInitialValues(Animator anim) { in setupInitialValues() argument 267 if (anim instanceof AnimatorSet) { in setupInitialValues() 268 for (Animator a : ((AnimatorSet) anim).getChildAnimations()) { in setupInitialValues() 271 } else if (anim instanceof ObjectAnimator) { in setupInitialValues() [all …]
|
/frameworks/base/core/java/android/view/animation/ |
D | AnimationUtils.java | 163 Animation anim = null; in createAnimationFromXml() local 179 anim = new AnimationSet(c, attrs); in createAnimationFromXml() 180 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs); in createAnimationFromXml() 182 anim = new AlphaAnimation(c, attrs); in createAnimationFromXml() 184 anim = new ScaleAnimation(c, attrs); in createAnimationFromXml() 186 anim = new RotateAnimation(c, attrs); in createAnimationFromXml() 188 anim = new TranslateAnimation(c, attrs); in createAnimationFromXml() 190 anim = new ClipRectAnimation(c, attrs); in createAnimationFromXml() 196 parent.addAnimation(anim); in createAnimationFromXml() 200 return anim; in createAnimationFromXml() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SwipeHelper.java | 148 ObjectAnimator anim = ObjectAnimator.ofFloat(v, in createTranslationAnimation() local 150 return anim; in createTranslationAnimation() 160 ObjectAnimator anim = createTranslationAnimation(v, target); in getViewTranslationAnimator() local 162 anim.addUpdateListener(listener); in getViewTranslationAnimator() 164 return anim; in getViewTranslationAnimator() 408 Animator anim = getViewTranslationAnimator(animView, newPos, updateListener); in dismissChild() local 409 if (anim == null) { in dismissChild() 413 anim.setInterpolator(Interpolators.FAST_OUT_LINEAR_IN); in dismissChild() 414 anim.setDuration(duration); in dismissChild() 416 mFlingAnimationUtils.applyDismissing(anim, getTranslation(animView), in dismissChild() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DragDownHelper.java | 192 ObjectAnimator anim = ObjectAnimator.ofInt(child, "actualHeight", in cancelExpansion() local 194 anim.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in cancelExpansion() 195 anim.setDuration(SPRING_BACK_ANIMATION_LENGTH_MS); in cancelExpansion() 196 anim.addListener(new AnimatorListenerAdapter() { in cancelExpansion() 202 anim.start(); in cancelExpansion() 206 ValueAnimator anim = ValueAnimator.ofFloat(mLastHeight, 0); in cancelExpansion() local 207 anim.setInterpolator(Interpolators.FAST_OUT_SLOW_IN); in cancelExpansion() 208 anim.setDuration(SPRING_BACK_ANIMATION_LENGTH_MS); in cancelExpansion() 209 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in cancelExpansion() 215 anim.start(); in cancelExpansion()
|
/frameworks/support/graphics/drawable/animated/src/main/java/androidx/vectordrawable/graphics/drawable/ |
D | AnimatorInflaterCompat.java | 342 private static void parseAnimatorFromTypeArray(ValueAnimator anim, in parseAnimatorFromTypeArray() argument 364 anim.setValues(pvh); in parseAnimatorFromTypeArray() 367 anim.setDuration(duration); in parseAnimatorFromTypeArray() 368 anim.setStartDelay(startDelay); in parseAnimatorFromTypeArray() 370 anim.setRepeatCount(TypedArrayUtils.getNamedInt(arrayAnimator, parser, "repeatCount", in parseAnimatorFromTypeArray() 372 anim.setRepeatMode(TypedArrayUtils.getNamedInt(arrayAnimator, parser, "repeatMode", in parseAnimatorFromTypeArray() 376 setupObjectAnimator(anim, arrayObjectAnimator, valueType, pixelSize, parser); in parseAnimatorFromTypeArray() 388 private static void setupObjectAnimator(ValueAnimator anim, TypedArray arrayObjectAnimator, in setupObjectAnimator() argument 390 ObjectAnimator oa = (ObjectAnimator) anim; in setupObjectAnimator() 509 Animator anim = null; in createAnimatorFromXml() local [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/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()
|
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/ |
D | FragmentTest.java | 96 .setCustomAnimations(R.anim.long_fade_in, R.anim.long_fade_out, in testChildFragmentManagerGone() 97 R.anim.long_fade_in, R.anim.long_fade_out) in testChildFragmentManagerGone() 109 .setCustomAnimations(R.anim.long_fade_in, R.anim.long_fade_out, in testChildFragmentManagerGone() 110 R.anim.long_fade_in, R.anim.long_fade_out) in testChildFragmentManagerGone()
|
/frameworks/base/core/java/com/android/internal/colorextraction/drawable/ |
D | GradientDrawable.java | 96 ValueAnimator anim = ValueAnimator.ofFloat(0, 1); in setColors() local 97 anim.setDuration(COLOR_ANIMATION_DURATION); in setColors() 98 anim.addUpdateListener(animation -> { in setColors() 105 anim.addListener(new AnimatorListenerAdapter() { in setColors() 113 anim.setInterpolator(new DecelerateInterpolator()); in setColors() 114 anim.start(); in setColors() 115 mColorAnimation = anim; in setColors()
|
/frameworks/base/core/jni/ |
D | android_view_ThreadedRenderer.cpp | 119 explicit FinishAndInvokeListener(PropertyValuesAnimatorSet* anim) in FinishAndInvokeListener() argument 120 : mAnimator(anim) { in FinishAndInvokeListener() 121 mListener = anim->getOneShotListener(); in FinishAndInvokeListener() 122 mRequestId = anim->getRequestId(); in FinishAndInvokeListener() 224 for (auto& anim : mRunningVDAnimators) { in prepareTree() local 230 anim->getVectorDrawable()->setPropertyChangeWillBeConsumed(false); in prepareTree() 232 anim->getVectorDrawable()->markDirty(); in prepareTree() 235 for (auto &anim : mPausedVDAnimators) { in prepareTree() local 236 anim->getVectorDrawable()->setPropertyChangeWillBeConsumed(false); in prepareTree() 237 anim->getVectorDrawable()->markDirty(); in prepareTree() [all …]
|