Home
last modified time | relevance | path

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

12345678910

/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatedPropertySetter.java17 package com.android.launcher3.anim;
57 ObjectAnimator anim = ObjectAnimator.ofFloat(view, View.ALPHA, alpha); in setViewAlpha() local
58 anim.addListener(new AlphaUpdateListener(view)); in setViewAlpha()
59 anim.setInterpolator(interpolator); in setViewAlpha()
60 add(anim); in setViewAlpha()
61 return anim; in setViewAlpha()
70 ObjectAnimator anim = ObjectAnimator.ofArgb(view, VIEW_BACKGROUND_COLOR, color); in setViewBackgroundColor() local
71 anim.setInterpolator(interpolator); in setViewBackgroundColor()
72 add(anim); in setViewBackgroundColor()
73 return anim; in setViewBackgroundColor()
[all …]
DAnimatorPlaybackController.java16 package com.android.launcher3.anim;
55 public static AnimatorPlaybackController wrap(AnimatorSet anim, long duration) { in wrap() argument
57 addAnimationHoldersRecur(anim, duration, SpringProperty.DEFAULT, childAnims); in wrap()
59 return new AnimatorPlaybackController(anim, duration, childAnims); in wrap()
77 AnimatorPlaybackController(AnimatorSet anim, long duration, ArrayList<Holder> childAnims) { in AnimatorPlaybackController() argument
78 mAnim = anim; in AnimatorPlaybackController()
186 h.anim.setInterpolator(s::getInterpolatedValue); in startWithVelocity()
304 Animator anim, BiConsumer<AnimatorListener, Animator> command) { in callListenerCommandRecursively() argument
305 callAnimatorCommandRecursively(anim, a-> { in callListenerCommandRecursively()
312 private static void callAnimatorCommandRecursively(Animator anim, Consumer<Animator> command) { in callAnimatorCommandRecursively() argument
[all …]
DPendingAnimation.java16 package com.android.launcher3.anim;
18 import static com.android.launcher3.anim.AnimatorPlaybackController.addAnimationHoldersRecur;
27 import com.android.launcher3.anim.AnimatorPlaybackController.Holder;
56 public void add(Animator anim, TimeInterpolator interpolator, SpringProperty springProperty) { in add() argument
57 anim.setInterpolator(interpolator); in add()
58 add(anim, springProperty); in add()
62 public void add(Animator anim) { in add() argument
63 add(anim, SpringProperty.DEFAULT); in add()
80 Animator anim = ObjectAnimator.ofFloat(target, property, from, to); in addFloat() local
81 anim.setInterpolator(interpolator); in addFloat()
[all …]
DAnimatorListeners.java16 package com.android.launcher3.anim;
77 public void onAnimationEnd(Animator anim) {
80 mListener.accept(anim instanceof ValueAnimator
81 ? ((ValueAnimator) anim).getAnimatedFraction() > SUCCESS_TRANSITION_PROGRESS
/packages/apps/Launcher3/src/com/android/launcher3/settings/
DPreferenceHighlighter.java99 ObjectAnimator anim = ObjectAnimator.ofArgb(this, HIGHLIGHT_COLOR, END_COLOR, in onDraw() local
101 anim.setDuration(HIGHLIGHT_FADE_IN_DURATION); in onDraw()
102 anim.setRepeatMode(ValueAnimator.REVERSE); in onDraw()
103 anim.setRepeatCount(4); in onDraw()
104 anim.addListener(new AnimatorListenerAdapter() { in onDraw()
110 anim.start(); in onDraw()
124 ObjectAnimator anim = ObjectAnimator.ofArgb( in removeHighlight() local
126 anim.setDuration(HIGHLIGHT_FADE_OUT_DURATION); in removeHighlight()
127 anim.setStartDelay(HIGHLIGHT_DURATION); in removeHighlight()
128 anim.addListener(new AnimatorListenerAdapter() { in removeHighlight()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/
DStateManager.java21 import static com.android.launcher3.anim.AnimatorPlaybackController.callListenerCommandRecursively;
34 import com.android.launcher3.anim.AnimationSuccessListener;
35 import com.android.launcher3.anim.AnimatorPlaybackController;
36 import com.android.launcher3.anim.PendingAnimation;
467 public void setCurrentAnimation(AnimatorSet anim, STATE_TYPE toState) {
470 setCurrentAnimation(anim);
471 anim.addListener(createStateAnimationListener(toState));
480 public void setCurrentAnimation(AnimatorSet anim, Animator... childAnimations) {
501 mConfig.setAnimation(anim, null);
515 Animator anim = mAtomicAnimationFactory.createStateElementAnimation(index, values);
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPreviewItemAnim.java34 public float[] get(FolderPreviewItemAnim anim) {
35 sTempParamsArray[0] = anim.mParams.scale;
36 sTempParamsArray[1] = anim.mParams.transX;
37 sTempParamsArray[2] = anim.mParams.transY;
42 public void set(FolderPreviewItemAnim anim, float[] value) {
43 anim.setParams(value);
87 params.anim = null; in FolderPreviewItemAnim()
108 public boolean hasEqualFinalState(FolderPreviewItemAnim anim) { in hasEqualFinalState() argument
109 return Arrays.equals(finalState, anim.finalState); in hasEqualFinalState()
DPreviewItemManager.java274 if (p.anim != null) {
275 p.anim.cancel();
282 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, i,
286 if (p.anim != null) {
287 if (p.anim.hasEqualFinalState(anim)) {
291 p.anim.cancel();
293 p.anim = anim;
294 p.anim.start();
412 if (params.get(i).anim != null) {
413 params.get(i).anim.start();
[all …]
DPreviewItemDrawingParams.java30 public FolderPreviewItemAnim anim; field in PreviewItemDrawingParams
44 if (anim != null) { in update()
45 if (anim.finalState[1] == transX || anim.finalState[2] == transY in update()
46 || anim.finalState[0] == scale) { in update()
49 anim.cancel(); in update()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryItemAnimator.java50 for (ColorAnimation anim: mPendingAnimations) { in runPendingAnimations()
51 anim.start(); in runPendingAnimations()
52 mRunningAnimations.put(anim.viewHolder, anim); in runPendingAnimations()
62 ColorAnimation anim = mPendingAnimations.get(i); in endAnimation() local
63 if (anim.viewHolder == vh) { in endAnimation()
65 anim.end(); in endAnimation()
69 ColorAnimation anim = mRunningAnimations.get(vh); in endAnimation() local
70 if (anim != null) { in endAnimation()
71 anim.cancel(); in endAnimation()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DCannedAnimationCoordinator.kt25 import com.android.launcher3.anim.AnimatorListeners in <lambda>()
26 import com.android.launcher3.anim.AnimatorPlaybackController in <lambda>()
27 import com.android.launcher3.anim.PendingAnimation in <lambda>()
74 val anim = AnimatorSet() in <lambda>() constant
75 anim.play( in <lambda>()
79 addUpdateListener { anim -> currentAnim?.setPlayFraction(anim.animatedFraction) } in <lambda>() method
82 val controller = AnimatorPlaybackController.wrap(anim, duration) in <lambda>()
83 anim.addListener( in <lambda>()
DFlingAnimation.java4 import static com.android.launcher3.anim.AnimatorListeners.forEndCallback;
101 ValueAnimator anim = ValueAnimator.ofFloat(0, 1); in run() local
102 anim.setDuration(duration).setInterpolator(tInterpolator); in run()
103 anim.addUpdateListener(this); in run()
104 anim.addListener(forEndCallback(() -> { in run()
108 mDragLayer.playDropAnimation(mDragObject.dragView, anim, DragLayer.ANIMATION_END_DISAPPEAR); in run()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DOverviewToHomeAnim.java29 import com.android.launcher3.anim.AnimationSuccessListener;
70 AnimatorSet anim = new AnimatorSet(); in animateWithVelocity() local
83 anim.play(workspaceRevealAnim.getAnimators()); in animateWithVelocity()
106 mSplitCancelConsumer.accept(anim); in animateWithVelocity()
108 anim.play(stateAnim); in animateWithVelocity()
109 stateManager.setCurrentAnimation(anim, NORMAL); in animateWithVelocity()
110 anim.start(); in animateWithVelocity()
DFadeOutRemoteTransition.kt26 import com.android.launcher3.anim.AnimatorListeners.forEndCallback
54 val anim = ValueAnimator.ofFloat(1f, 0f) in startAnimation() constant
65 anim.addUpdateListener { in startAnimation()
67 closingControls.forEach { t.setAlpha(it, anim.animatedValue as Float) } in startAnimation()
70 anim.addListener( in startAnimation()
84 Executors.MAIN_EXECUTOR.execute { anim.start() } in startAnimation()
DRectFSpringAnim.java36 import com.android.launcher3.anim.FlingSpringAnim;
56 public float getValue(RectFSpringAnim anim) {
57 return anim.mCurrentCenterX;
61 public void setValue(RectFSpringAnim anim, float currentCenterX) {
62 anim.mCurrentCenterX = currentCenterX;
63 anim.onUpdate();
70 public float getValue(RectFSpringAnim anim) {
71 return anim.mCurrentY;
75 public void setValue(RectFSpringAnim anim, float y) {
76 anim.mCurrentY = y;
[all …]
DSplitAnimationController.kt32 import com.android.launcher3.anim.PendingAnimation
198 val anim = createPlaceholderDismissAnim(launcher) in playPlaceholderDismissAnim() constant
199 anim.start() in playPlaceholderDismissAnim()
252 val anim = PendingAnimation(100 /*duration */) in getShowSplitInstructionsAnim() constant
253 anim.setViewAlpha(splitInstructionsView, 1f, in getShowSplitInstructionsAnim()
257 anim.setViewAlpha(splitInstructionsView!!.textView, 1f, in getShowSplitInstructionsAnim()
261 anim.addFloat(splitInstructionsView, SplitInstructionsView.UNFOLD, 0.1f, 1f, in getShowSplitInstructionsAnim()
265 return anim in getShowSplitInstructionsAnim()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DSwipeUpGestureTutorialController.java49 import com.android.launcher3.anim.AnimatedFloat;
50 import com.android.launcher3.anim.AnimatorListeners;
51 import com.android.launcher3.anim.AnimatorPlaybackController;
52 import com.android.launcher3.anim.PendingAnimation;
171 PendingAnimation anim = new PendingAnimation(300); in fadeOutFakeTaskView() local
173 anim.setFloat(mTaskViewSwipeUpAnimation in fadeOutFakeTaskView()
175 anim.addListener(new AnimatorListenerAdapter() { in fadeOutFakeTaskView()
215 anim.setFloat(mTaskViewSwipeUpAnimation in fadeOutFakeTaskView()
218 anim.addListener(mResetTaskView); in fadeOutFakeTaskView()
221 anim.addListener(AnimatorListeners.forSuccessCallback(onEndRunnable)); in fadeOutFakeTaskView()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DLauncherSwipeHandlerV2.java40 import com.android.launcher3.anim.AnimatorPlaybackController;
140 public void setAnimation(RectFSpringAnim anim) {
141 super.setAnimation(anim);
142 anim.addAnimatorListener(floatingIconView);
143 floatingIconView.setOnTargetChangeListener(anim::onTargetPositionChanged);
144 floatingIconView.setFastFinishRunnable(anim::end);
196 public void setAnimation(RectFSpringAnim anim) {
197 super.setAnimation(anim);
199 anim.addAnimatorListener(floatingWidgetView);
200 floatingWidgetView.setOnTargetChangeListener(anim::onTargetPositionChanged);
[all …]
DSwipeUpAnimationLogic.java34 import com.android.launcher3.anim.AnimatedFloat;
35 import com.android.launcher3.anim.AnimationSuccessListener;
36 import com.android.launcher3.anim.AnimatorPlaybackController;
37 import com.android.launcher3.anim.PendingAnimation;
200 public void setAnimation(RectFSpringAnim anim) { } in setAnimation() argument
307 RectFSpringAnim anim = new RectFSpringAnim(useTaskbarHotseatParams in getWindowAnimationToHomeInternal() local
310 homeAnimationFactory.setAnimation(anim); in getWindowAnimationToHomeInternal()
315 anim.addAnimatorListener(runner); in getWindowAnimationToHomeInternal()
316 anim.addOnUpdateListener(runner); in getWindowAnimationToHomeInternal()
317 return anim; in getWindowAnimationToHomeInternal()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java117 import com.android.launcher3.anim.AnimationSuccessListener;
118 import com.android.launcher3.anim.AnimatorListeners;
362 protected void composeRecentsLaunchAnimator(@NonNull AnimatorSet anim, @NonNull View v, in composeRecentsLaunchAnimator() argument
366 TaskViewUtils.composeRecentsLaunchAnimator(anim, v, appTargets, wallpaperTargets, in composeRecentsLaunchAnimator()
391 private void composeIconLaunchAnimator(@NonNull AnimatorSet anim, @NonNull View v, in composeIconLaunchAnimator() argument
398 mLauncher.getStateManager().setCurrentAnimation(anim); in composeIconLaunchAnimator()
405 anim.play(windowAnimator); in composeIconLaunchAnimator()
410 anim.play(launcherContentAnimator.first); in composeIconLaunchAnimator()
411 anim.addListener(new AnimatorListenerAdapter() { in composeIconLaunchAnimator()
421 @NonNull AnimatorSet anim, in composeWidgetLaunchAnimator()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/view/
DFingerprintEnrollmentActivity.java254 .setCustomAnimations(R.anim.shared_x_axis_activity_open_enter_dynamic_color, in startFragment()
255 R.anim.shared_x_axis_activity_open_exit, in startFragment()
256 R.anim.shared_x_axis_activity_close_enter_dynamic_color, in startFragment()
257 R.anim.shared_x_axis_activity_close_exit) in startFragment()
362 .setCustomAnimations(R.anim.shared_x_axis_activity_open_enter_dynamic_color, in startFinishFragment()
363 R.anim.shared_x_axis_activity_open_exit, in startFinishFragment()
364 R.anim.shared_x_axis_activity_close_enter_dynamic_color, in startFinishFragment()
365 R.anim.shared_x_axis_activity_close_exit) in startFinishFragment()
374 .setCustomAnimations(R.anim.shared_x_axis_activity_open_enter_dynamic_color, in startFinishFragment()
375 R.anim.shared_x_axis_activity_open_exit, in startFinishFragment()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarScrimViewController.java26 import com.android.launcher3.anim.AnimatedFloat;
89 ObjectAnimator anim = mScrimAlpha.animateToValue(showScrim ? alpha : 0); in showScrim() local
90 anim.setInterpolator(showScrim ? SCRIM_ALPHA_IN : SCRIM_ALPHA_OUT); in showScrim()
91 anim.start(); in showScrim()
93 anim.end(); in showScrim()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java26 import static com.android.launcher3.anim.AnimatorListeners.forEndCallback;
53 import com.android.launcher3.anim.PendingAnimation;
54 import com.android.launcher3.anim.SpringProperty;
353 PendingAnimation anim = new PendingAnimation(duration); in animateView() local
354 anim.add(ofFloat(view, View.SCALE_X, finalScaleX), interpolator, SpringProperty.DEFAULT); in animateView()
355 anim.add(ofFloat(view, View.SCALE_Y, finalScaleY), interpolator, SpringProperty.DEFAULT); in animateView()
356 anim.setViewAlpha(view, finalAlpha, interpolator); in animateView()
357 anim.setFloat(view, VIEW_TRANSLATE_Y, to.top, interpolator); in animateView()
366 anim.add(xMotion, interpolator, SpringProperty.DEFAULT); in animateView()
368 anim.addListener(forEndCallback(onCompleteRunnable)); in animateView()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DTranslationAnimationCreator.java73 ObjectAnimator anim = in createAnimation() local
79 anim.addListener(listener); in createAnimation()
80 anim.addPauseListener(listener); in createAnimation()
81 anim.setInterpolator(interpolator); in createAnimation()
82 return anim; in createAnimation()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DProgressDelegateInputConsumer.java32 import com.android.launcher3.anim.AnimatedFloat;
33 import com.android.launcher3.anim.AnimatorListeners;
155 ObjectAnimator anim = mProgress.animateToValue(endValue); in onDragEnd() local
156 anim.setDuration(duration).setInterpolator(scrollInterpolatorForVelocity(velocity)); in onDragEnd()
157 anim.addListener(AnimatorListeners.forSuccessCallback( in onDragEnd()
159 anim.start(); in onDragEnd()

12345678910