Home
last modified time | relevance | path

Searched refs:anim (Results 1 – 25 of 151) sorted by relevance

1234567

/frameworks/base/libs/hwui/
DRootRenderNode.cpp29 explicit FinishAndInvokeListener(PropertyValuesAnimatorSet* anim) : mAnimator(anim) { in FinishAndInvokeListener() argument
30 mListener = anim->getOneShotListener(); in FinishAndInvokeListener()
31 mRequestId = anim->getRequestId(); in FinishAndInvokeListener()
55 for (auto& anim : mRunningVDAnimators) { in prepareTree() local
61 anim->getVectorDrawable()->setPropertyChangeWillBeConsumed(false); in prepareTree()
63 anim->getVectorDrawable()->markDirty(); in prepareTree()
66 for (auto& anim : mPausedVDAnimators) { in prepareTree() local
67 anim->getVectorDrawable()->setPropertyChangeWillBeConsumed(false); in prepareTree()
68 anim->getVectorDrawable()->markDirty(); in prepareTree()
93 for (auto& anim : mRunningVDAnimators) { in detachAnimators() local
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DDrawableHolder.java75 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 …]
DAbsActionBarView.java207 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/core/java/android/animation/
DLayoutTransition.java850 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 …]
DObjectAnimator.java238 ObjectAnimator anim = new ObjectAnimator(target, propertyName); in ofInt() local
239 anim.setIntValues(values); in ofInt()
240 return anim; in ofInt()
284 ObjectAnimator anim = new ObjectAnimator(target, property); in ofInt() local
285 anim.setIntValues(values); in ofInt()
286 return anim; in ofInt()
437 ObjectAnimator anim = new ObjectAnimator(target, propertyName); in ofFloat() local
438 anim.setFloatValues(values); in ofFloat()
439 return anim; in ofFloat()
484 ObjectAnimator anim = new ObjectAnimator(target, property); in ofFloat() local
[all …]
DValueAnimator.java434 ValueAnimator anim = new ValueAnimator(); in ofInt() local
435 anim.setIntValues(values); in ofInt()
436 return anim; in ofInt()
451 ValueAnimator anim = new ValueAnimator(); in ofArgb() local
452 anim.setIntValues(values); in ofArgb()
453 anim.setEvaluator(ArgbEvaluator.getInstance()); in ofArgb()
454 return anim; in ofArgb()
469 ValueAnimator anim = new ValueAnimator(); in ofFloat() local
470 anim.setFloatValues(values); in ofFloat()
471 return anim; in ofFloat()
[all …]
DAnimatorSet.java256 for (Animator anim : items) {
258 builder = play(anim);
260 builder.with(anim);
403 public Builder play(Animator anim) {
404 if (anim != null) {
405 return new Builder(anim);
491 Animator anim = event.mNode.mAnimation;
492 if (mNodeMap.get(anim).mEnded) {
496 anim.reverse();
498 && anim.isStarted()) {
[all …]
DAnimatorInflater.java413 private static void parseAnimatorFromTypeArray(ValueAnimator anim, in parseAnimatorFromTypeArray() argument
428 anim.setValues(pvh); in parseAnimatorFromTypeArray()
431 anim.setDuration(duration); in parseAnimatorFromTypeArray()
432 anim.setStartDelay(startDelay); in parseAnimatorFromTypeArray()
435 anim.setRepeatCount( in parseAnimatorFromTypeArray()
439 anim.setRepeatMode( in parseAnimatorFromTypeArray()
445 setupObjectAnimator(anim, arrayObjectAnimator, valueType, pixelSize); in parseAnimatorFromTypeArray()
456 private static TypeEvaluator setupAnimatorForPath(ValueAnimator anim, in setupAnimatorForPath() argument
468 anim.setObjectValues(pathDataFrom, pathDataTo); in setupAnimatorForPath()
474 anim.setObjectValues((Object)pathDataFrom); in setupAnimatorForPath()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java227 R.anim.lock_to_error,
228 R.anim.lock_unlock,
229 R.anim.lock_lock,
230 R.anim.lock_scanning
233 R.anim.lock_to_error_circular,
234 R.anim.lock_unlock_circular,
235 R.anim.lock_lock_circular,
236 R.anim.lock_scanning_circular
239 R.anim.lock_to_error_filled,
240 R.anim.lock_unlock_filled,
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DRenderNodeAnimatorTest.java61 RenderNodeAnimator anim = new RenderNodeAnimator(RenderNodeAnimator.ALPHA, 0.5f); in testAlphaTransformationInfo() local
62 anim.setTarget(view); in testAlphaTransformationInfo()
64 anim.start(); // should initialize mTransformationInfo in testAlphaTransformationInfo()
83 RenderNodeAnimator anim = new RenderNodeAnimator(0, 0, 10f, 30f); in testViewDetachCancelsRenderNodeAnimator() local
84 anim.setDuration(10000); in testViewDetachCancelsRenderNodeAnimator()
85 anim.setTarget(view); in testViewDetachCancelsRenderNodeAnimator()
86 anim.addListener(new AnimatorListenerAdapter() { in testViewDetachCancelsRenderNodeAnimator()
95 anim.start(); in testViewDetachCancelsRenderNodeAnimator()
/frameworks/base/core/java/android/view/animation/
DAnimationUtils.java242 Animation anim = null; in createAnimationFromXml() local
258 anim = new AnimationSet(c, attrs); in createAnimationFromXml()
259 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs); in createAnimationFromXml()
261 anim = new AlphaAnimation(c, attrs); in createAnimationFromXml()
263 anim = new ScaleAnimation(c, attrs); in createAnimationFromXml()
265 anim = new RotateAnimation(c, attrs); in createAnimationFromXml()
267 anim = new TranslateAnimation(c, attrs); in createAnimationFromXml()
269 anim = new ClipRectAnimation(c, attrs); in createAnimationFromXml()
271 anim = new ExtendAnimation(c, attrs); in createAnimationFromXml()
277 parent.addAnimation(anim); in createAnimationFromXml()
[all …]
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DCirclePropActivity.java126 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()
DRippleActivity.java159 RenderNodeAnimator anim = mRunningAnimations.get(i); in performClick() local
160 anim.setDuration(DURATION); in performClick()
161 anim.setTarget(this); in performClick()
164 anim.setStartValue(64.0f); in performClick()
165 anim.setStartDelay(anim.getDuration()); in performClick()
167 anim.start(); in performClick()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowContainerThumbnail.java109 void startAnimation(Transaction t, Animation anim) { in startAnimation() argument
110 startAnimation(t, anim, null /* position */); in startAnimation()
113 void startAnimation(Transaction t, Animation anim, Point position) { in startAnimation() argument
114 anim.restrictDuration(MAX_ANIMATION_DURATION); in startAnimation()
115 anim.scaleCurrentDuration(mWindowContainer.mWmService.getTransitionAnimationScaleLocked()); in startAnimation()
117 new WindowAnimationSpec(anim, position, in startAnimation()
127 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden) { in startAnimation() argument
128 mSurfaceAnimator.startAnimation(t, anim, hidden, ANIMATION_TYPE_RECENTS); in startAnimation()
131 private void onAnimationFinished(@AnimationType int type, AnimationAdapter anim) { in onAnimationFinished() argument
DSurfaceAnimationRunner.java258 final RunningAnimation anim = mRunningAnimations.get(leash); in onAnimationCancelled() local
259 if (anim != null) { in onAnimationCancelled()
262 anim.mCancelled = true; in onAnimationCancelled()
265 anim.mAnim.cancel(); in onAnimationCancelled()
282 final ValueAnimator anim = mAnimatorFactory.makeAnimator(); in startAnimationLocked() local
285 anim.overrideDurationScale(1.0f); in startAnimationLocked()
286 anim.setDuration(a.mAnimSpec.getDuration()); in startAnimationLocked()
287 anim.addUpdateListener(animation -> { in startAnimationLocked()
290 final long duration = anim.getDuration(); in startAnimationLocked()
291 long currentPlayTime = anim.getCurrentPlayTime(); in startAnimationLocked()
[all …]
DSurfaceAnimator.java113 return (type, anim) -> { in getFinishedCallback()
115 final SurfaceAnimator target = mService.mAnimationTransferMap.remove(anim); in getFinishedCallback()
117 target.mInnerAnimationFinishedCallback.onAnimationFinished(type, anim); in getFinishedCallback()
121 if (anim != mAnimation) { in getFinishedCallback()
127 if (anim != mAnimation) { in getFinishedCallback()
134 staticAnimationFinishedCallback.onAnimationFinished(type, anim); in getFinishedCallback()
137 animationFinishCallback.onAnimationFinished(type, anim); in getFinishedCallback()
143 || anim.shouldDeferAnimationFinish(resetAndInvokeFinish))) { in getFinishedCallback()
167 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden,
173 mAnimation = anim;
[all …]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DHitRectBug.java63 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/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/
DActivityEmbeddingAnimationSpec.java212 ? com.android.internal.R.anim.task_fragment_clear_top_open_enter in loadOpenAnimation()
213 : com.android.internal.R.anim.task_fragment_clear_top_open_exit); in loadOpenAnimation()
217 ? com.android.internal.R.anim.activity_open_enter in loadOpenAnimation()
218 : com.android.internal.R.anim.activity_open_exit); in loadOpenAnimation()
239 ? com.android.internal.R.anim.task_fragment_clear_top_close_enter in loadCloseAnimation()
240 : com.android.internal.R.anim.task_fragment_clear_top_close_exit); in loadCloseAnimation()
244 ? com.android.internal.R.anim.activity_close_enter in loadCloseAnimation()
245 : com.android.internal.R.anim.activity_close_exit); in loadCloseAnimation()
276 final Animation anim = mTransitionAnimation.loadAnimationRes(options.getPackageName(), in loadCustomAnimation() local
278 if (anim != null) { in loadCustomAnimation()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DDraggableConstraintLayout.java244 ValueAnimator anim = createSwipeDismissAnimation(); in onTouch() local
245 mCallbacks.onSwipeDismissInitiated(anim); in onTouch()
246 dismiss(anim); in onTouch()
344 ValueAnimator anim = ValueAnimator.ofFloat(0, 1); in createSwipeDismissAnimation() local
362 anim.addUpdateListener(animation -> { in createSwipeDismissAnimation()
368 anim.setDuration((long) (Math.abs(distance / velocity))); in createSwipeDismissAnimation()
369 return anim; in createSwipeDismissAnimation()
373 ValueAnimator anim = ValueAnimator.ofFloat(0, 1); in createSwipeReturnAnimation() local
377 anim.addUpdateListener(animation -> { in createSwipeReturnAnimation()
383 return anim; in createSwipeReturnAnimation()
/frameworks/base/core/java/android/transition/
DChangeText.java194 Animator anim; in createAnimator() local
197 anim = ValueAnimator.ofFloat(0, 1); in createAnimator()
198 anim.addListener(new AnimatorListenerAdapter() { in createAnimator()
260 anim = new AnimatorSet(); in createAnimator()
261 ((AnimatorSet) anim).playSequentially(outAnim, inAnim); in createAnimator()
263 anim = outAnim; in createAnimator()
266 anim = inAnim; in createAnimator()
306 Log.d(LOG_TAG, "createAnimator returning " + anim); in createAnimator()
308 return anim; in createAnimator()
DCrossfade.java201 ObjectAnimator anim; in createAnimator() local
204 anim = ObjectAnimator.ofInt(startDrawable, "alpha", 255, 0, 0); in createAnimator()
206 anim = ObjectAnimator.ofInt(startDrawable, "alpha", 0); in createAnimator()
208 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in createAnimator()
223 Log.d(LOG_TAG, "Crossfade: created anim " + anim + " for start, end values " + in createAnimator()
226 anim.addListener(new AnimatorListenerAdapter() { in createAnimator()
238 set.playTogether(anim); in createAnimator()
/frameworks/base/core/java/com/android/internal/policy/
DTransitionAnimation.java191 return loadDefaultAnimationRes(com.android.internal.R.anim.wallpaper_open_exit); in loadKeyguardUnoccludeAnimation()
197 ? com.android.internal.R.anim.voice_activity_open_enter in loadVoiceActivityOpenAnimation()
198 : com.android.internal.R.anim.voice_activity_open_exit); in loadVoiceActivityOpenAnimation()
204 ? com.android.internal.R.anim.voice_activity_close_enter in loadVoiceActivityExitAnimation()
205 : com.android.internal.R.anim.voice_activity_close_exit); in loadVoiceActivityExitAnimation()
216 com.android.internal.R.anim.task_open_enter_cross_profile_apps); in loadCrossProfileAppEnterAnimation()
222 DEFAULT_PACKAGE, com.android.internal.R.anim.cross_profile_apps_thumbnail_enter); in loadCrossProfileAppThumbnailEnterAnimation()
473 final Animation anim; in createClipRevealAnimationLockedCompat() local
551 anim = set; in createClipRevealAnimationLockedCompat()
569 anim = new AlphaAnimation(1, 0); in createClipRevealAnimationLockedCompat()
[all …]
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DMultiRippleView.kt50 ripples.forEach { anim -> in <lambda>() method
51 ripplePaint.shader = anim.rippleShader in <lambda>()
54 shouldInvalidate = shouldInvalidate || anim.isPlaying() in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DScreenRotationAnimation.java264 mAnimHint == ROTATION_ANIMATION_JUMPCUT ? R.anim.rotation_animation_jump_exit in buildAnimation()
265 : R.anim.rotation_animation_xfade_exit); in buildAnimation()
267 R.anim.rotation_animation_enter); in buildAnimation()
269 R.anim.screen_rotate_alpha); in buildAnimation()
276 R.anim.screen_rotate_0_exit); in buildAnimation()
278 R.anim.rotation_animation_enter); in buildAnimation()
282 R.anim.screen_rotate_plus_90_exit); in buildAnimation()
284 R.anim.screen_rotate_plus_90_enter); in buildAnimation()
288 R.anim.screen_rotate_180_exit); in buildAnimation()
290 R.anim.screen_rotate_180_enter); in buildAnimation()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/animation/
DMetadataAnimationHandler.kt54 override fun onAnimationEnd(anim: Animator) { in onAnimationEnd()
55 if (anim === exitAnimator) { in onAnimationEnd()
61 if (anim === enterAnimator) { in onAnimationEnd()

1234567