Home
last modified time | relevance | path

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

123456789

/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/
DLauncherAppTransitionManagerImpl.java25 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_ALL_APPS_FADE;
26 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_HOTSEAT_SCALE;
27 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_HOTSEAT_TRANSLATE;
28 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_VERTICAL_PROGRESS;
29 import static com.android.launcher3.anim.Interpolators.AGGRESSIVE_EASE;
30 import static com.android.launcher3.anim.Interpolators.DEACCEL_3;
31 import static com.android.launcher3.anim.Interpolators.LINEAR;
32 import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_2;
49 import com.android.launcher3.anim.AnimatorPlaybackController;
50 import com.android.launcher3.anim.AnimatorSetBuilder;
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java16 package com.android.launcher3.anim;
18 import static com.android.launcher3.anim.Interpolators.LINEAR;
50 public static AnimatorPlaybackController wrap(AnimatorSet anim, long duration) { in wrap() argument
51 return wrap(anim, duration, null); in wrap()
60 public static AnimatorPlaybackController wrap(AnimatorSet anim, long duration, in wrap() argument
66 return new AnimatorPlaybackControllerVL(anim, duration, onCancelRunnable); in wrap()
87 protected AnimatorPlaybackController(AnimatorSet anim, long duration, in AnimatorPlaybackController() argument
89 mAnim = anim; in AnimatorPlaybackController()
247 for (Animator anim : nonNullList(((AnimatorSet) animator).getChildAnimations())) { in dispatchOnStartRecursively()
248 dispatchOnStartRecursively(anim); in dispatchOnStartRecursively()
[all …]
DPropertySetter.java17 package com.android.launcher3.anim;
64 ObjectAnimator anim = ObjectAnimator.ofFloat(view, View.ALPHA, alpha); in setViewAlpha() local
65 anim.addListener(new AlphaUpdateListener(view)); in setViewAlpha()
66 anim.setDuration(mDuration).setInterpolator(interpolator); in setViewAlpha()
67 mStateAnimator.play(anim); in setViewAlpha()
76 Animator anim = ObjectAnimator.ofFloat(target, property, value); in setFloat() local
77 anim.setDuration(mDuration).setInterpolator(interpolator); in setFloat()
78 mStateAnimator.play(anim); in setFloat()
87 Animator anim = ObjectAnimator.ofInt(target, property, value); in setInt() local
88 anim.setDuration(mDuration).setInterpolator(interpolator); in setInt()
[all …]
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DAppToOverviewAnimationProvider.java19 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
83 ValueAnimator anim = controller.getAnimationPlayer() in onActivityReady()
85 anim.setInterpolator(FAST_OUT_SLOW_IN); in onActivityReady()
86 anim.start(); in onActivityReady()
106 AnimatorSet anim = new AnimatorSet(); in createWindowAnimation() local
111 anim.play(ValueAnimator.ofInt(0, 1).setDuration(getRecentsLaunchDuration())); in createWindowAnimation()
112 return anim; in createWindowAnimation()
134 anim.play(ValueAnimator.ofInt(0, 1).setDuration(getRecentsLaunchDuration())); in createWindowAnimation()
135 return anim; in createWindowAnimation()
141 anim.play(ValueAnimator.ofInt(0, 1).setDuration(getRecentsLaunchDuration())); in createWindowAnimation()
[all …]
DContentFillItemAnimator.java112 final ObjectAnimator anim = ObjectAnimator.ofFloat( in animateRemoveImpl() local
114 anim.setDuration(ITEM_REMOVE_DURATION).setStartDelay(startDelay); in animateRemoveImpl()
115 anim.addListener( in animateRemoveImpl()
126 mRunningAnims.remove(anim); in animateRemoveImpl()
131 anim.start(); in animateRemoveImpl()
132 mRunningAnims.add(anim); in animateRemoveImpl()
171 final ObjectAnimator anim = in animateChangeImpl() local
173 anim.setDuration(ITEM_CHANGE_DURATION).setStartDelay(startDelay); in animateChangeImpl()
174 anim.addListener( in animateChangeImpl()
185 mRunningAnims.remove(anim); in animateChangeImpl()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DAppToOverviewAnimationProvider.java18 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
19 import static com.android.launcher3.anim.Interpolators.TOUCH_RESPONSE_INTERPOLATOR;
32 import com.android.launcher3.anim.AnimationSuccessListener;
77 ValueAnimator anim = controller.getAnimationPlayer() in onActivityReady()
79 anim.setInterpolator(FAST_OUT_SLOW_IN); in onActivityReady()
80 anim.start(); in onActivityReady()
101 AnimatorSet anim = new AnimatorSet(); in createWindowAnimation() local
102 anim.addListener(new AnimationSuccessListener() { in createWindowAnimation()
113 anim.play(ValueAnimator.ofInt(0, 1).setDuration(RECENTS_LAUNCH_DURATION)); in createWindowAnimation()
114 return anim; in createWindowAnimation()
[all …]
DFallbackActivityControllerHelper.java18 import static com.android.launcher3.anim.Interpolators.LINEAR;
34 import com.android.launcher3.anim.AnimationSuccessListener;
35 import com.android.launcher3.anim.AnimatorPlaybackController;
105 Animator anim = ObjectAnimator.ofFloat(recentsView, CONTENT_ALPHA, 0); in prepareHomeUI() local
106 anim.addListener(new AnimationSuccessListener() { in prepareHomeUI()
113 animatorSet.play(anim); in prepareHomeUI()
153 ObjectAnimator anim = ObjectAnimator.ofFloat(rv, CONTENT_ALPHA, 0, 1);
154 anim.setDuration(transitionLength).setInterpolator(LINEAR);
155 animatorSet.play(anim);
158 ObjectAnimator anim = ObjectAnimator.ofFloat(rv, ZOOM_PROGRESS, 1, 0);
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsTransitionController.java7 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_ALL_APPS_FADE;
8 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_ALL_APPS_HEADER_FADE;
9 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE;
10 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_VERTICAL_PROGRESS;
11 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
12 import static com.android.launcher3.anim.Interpolators.LINEAR;
13 import static com.android.launcher3.anim.PropertySetter.NO_ANIM_PROPERTY_SETTER;
28 import com.android.launcher3.anim.AnimationSuccessListener;
29 import com.android.launcher3.anim.AnimatorSetBuilder;
30 import com.android.launcher3.anim.PropertySetter;
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepAppTransitionManagerImpl.java27 import static com.android.launcher3.anim.Interpolators.AGGRESSIVE_EASE;
28 import static com.android.launcher3.anim.Interpolators.DEACCEL_1_7;
29 import static com.android.launcher3.anim.Interpolators.EXAGGERATED_EASE;
30 import static com.android.launcher3.anim.Interpolators.LINEAR;
65 import com.android.launcher3.anim.Interpolators;
216 AnimatorSet anim = new AnimatorSet(); in getActivityLaunchOptions()
222 composeRecentsLaunchAnimator(anim, v, targetCompats, launcherClosing); in getActivityLaunchOptions()
224 composeIconLaunchAnimator(anim, v, targetCompats, launcherClosing); in getActivityLaunchOptions()
228 anim.addListener(mForceInvisibleListener); in getActivityLaunchOptions()
231 result.setAnimation(anim, mLauncher); in getActivityLaunchOptions()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DNavBarToHomeTouchController.java24 import static com.android.launcher3.anim.Interpolators.DEACCEL_3;
42 import com.android.launcher3.anim.AnimationSuccessListener;
43 import com.android.launcher3.anim.AnimatorPlaybackController;
44 import com.android.launcher3.anim.AnimatorSetBuilder;
45 import com.android.launcher3.anim.Interpolators;
134 final AnimatorSet anim = new AnimatorSet(); in initCurrentAnimation() local
143 anim.play(pullback); in initCurrentAnimation()
157 anim.play(builder.build()); in initCurrentAnimation()
164 anim.play(hintCloseAnim); in initCurrentAnimation()
167 anim.setDuration(accuracy); in initCurrentAnimation()
[all …]
DQuickSwitchTouchController.java20 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_ALL_APPS_FADE;
21 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_FADE;
22 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE;
23 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_Y;
24 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_VERTICAL_PROGRESS;
25 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_FADE;
26 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_TRANSLATE;
27 import static com.android.launcher3.anim.Interpolators.ACCEL_2;
28 import static com.android.launcher3.anim.Interpolators.DEACCEL_2;
29 import static com.android.launcher3.anim.Interpolators.INSTANT;
[all …]
DTaskViewTouchController.java19 import static com.android.launcher3.anim.Interpolators.scrollInterpolatorForVelocity;
36 import com.android.launcher3.anim.AnimatorPlaybackController;
37 import com.android.launcher3.anim.Interpolators;
196 mPendingAnimation.anim.setInterpolator(Interpolators.ZOOM_IN); in reInitAnimationController()
207 .wrap(mPendingAnimation.anim, maxDuration, this::clearState); in reInitAnimationController()
278 ValueAnimator anim = mCurrentAnimation.getAnimationPlayer(); local
279 anim.setFloatValues(nextFrameProgress, goingToEnd ? 1f : 0f);
280 anim.setDuration(animationDuration);
281 anim.setInterpolator(scrollInterpolatorForVelocity(velocity));
283 anim.addUpdateListener(valueAnimator -> {
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/settings/
DPreferenceHighlighter.java95 ObjectAnimator anim = ObjectAnimator.ofArgb(this, HIGHLIGHT_COLOR, END_COLOR, colorTo); in onDraw() local
96 anim.setDuration(HIGHLIGHT_FADE_IN_DURATION); in onDraw()
97 anim.setRepeatMode(ValueAnimator.REVERSE); in onDraw()
98 anim.setRepeatCount(4); in onDraw()
99 anim.addListener(new AnimatorListenerAdapter() { in onDraw()
105 anim.start(); in onDraw()
115 ObjectAnimator anim = ObjectAnimator.ofArgb( in removeHighlight() local
117 anim.setDuration(HIGHLIGHT_FADE_OUT_DURATION); in removeHighlight()
118 anim.setStartDelay(HIGHLIGHT_DURATION); in removeHighlight()
119 anim.addListener(new AnimatorListenerAdapter() { in removeHighlight()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DFallbackNoButtonInputConsumer.java39 import com.android.launcher3.anim.AnimationSuccessListener;
40 import com.android.launcher3.anim.AnimatorPlaybackController;
394 RectFSpringAnim anim = createWindowAnimationToHome(mCurrentShift.value, duration); in finishAnimationTargetSet() local
395 anim.addAnimatorListener(endListener); in finishAnimationTargetSet()
396 anim.start(mEndVelocityPxPerMs); in finishAnimationTargetSet()
397 mFinishAnimation = RunningWindowAnim.wrap(anim); in finishAnimationTargetSet()
400 AnimatorSet anim = new AnimatorSet(); in finishAnimationTargetSet() local
401 anim.play(mLauncherAlpha.animateToValue( in finishAnimationTargetSet()
403 anim.play(mCurrentShift.animateToValue(mCurrentShift.value, endProgress)); in finishAnimationTargetSet()
405 anim.setDuration(duration); in finishAnimationTargetSet()
[all …]
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/states/
DOverviewState.java23 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_FADE;
24 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE;
25 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_X;
26 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_FADE;
27 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_SCALE;
28 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_TRANSLATE;
29 import static com.android.launcher3.anim.Interpolators.ACCEL;
30 import static com.android.launcher3.anim.Interpolators.DEACCEL_2;
31 import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_2;
32 import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_7;
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java251 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, i, prevNumItems, i,
254 if (p.anim != null) {
255 if (p.anim.hasEqualFinalState(anim)) {
259 p.anim.cancel();
261 p.anim = anim;
262 p.anim.start();
378 if (params.get(i).anim != null) {
379 params.get(i).anim.start();
388 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, prevIndex, numItems,
390 if (p.anim != null && !p.anim.hasEqualFinalState(anim)) {
[all …]
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);
85 params.anim = null; in FolderPreviewItemAnim()
106 public boolean hasEqualFinalState(FolderPreviewItemAnim anim) { in hasEqualFinalState() argument
107 return Arrays.equals(finalState, anim.finalState); in hasEqualFinalState()
/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/quickstep/src/com/android/launcher3/uioverrides/
DBaseRecentsViewStateController.java20 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_FADE;
21 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE;
22 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCRIM_FADE;
23 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_X;
24 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_Y;
25 import static com.android.launcher3.anim.AnimatorSetBuilder.FLAG_DONT_ANIMATE_OVERVIEW;
26 import static com.android.launcher3.anim.Interpolators.AGGRESSIVE_EASE_IN_OUT;
27 import static com.android.launcher3.anim.Interpolators.LINEAR;
41 import com.android.launcher3.anim.AnimatorSetBuilder;
42 import com.android.launcher3.anim.PropertySetter;
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/
DOverviewState.java22 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_FADE;
23 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE;
24 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_X;
25 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_Y;
26 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_FADE;
27 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_SCALE;
28 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_TRANSLATE;
29 import static com.android.launcher3.anim.Interpolators.ACCEL;
30 import static com.android.launcher3.anim.Interpolators.DEACCEL_2;
31 import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_2;
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DRectFSpringAnim.java30 import com.android.launcher3.anim.FlingSpringAnim;
45 public float getValue(RectFSpringAnim anim) {
46 return anim.mCurrentCenterX;
50 public void setValue(RectFSpringAnim anim, float currentCenterX) {
51 anim.mCurrentCenterX = currentCenterX;
52 anim.onUpdate();
59 public float getValue(RectFSpringAnim anim) {
60 return anim.mCurrentY;
64 public void setValue(RectFSpringAnim anim, float y) {
65 anim.mCurrentY = y;
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DRecentsView.java28 import static com.android.launcher3.anim.Interpolators.ACCEL;
29 import static com.android.launcher3.anim.Interpolators.ACCEL_2;
30 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
31 import static com.android.launcher3.anim.Interpolators.LINEAR;
91 import com.android.launcher3.anim.AnimatorPlaybackController;
92 import com.android.launcher3.anim.PropertyListBuilder;
93 import com.android.launcher3.anim.SpringObjectAnimator;
1060 private void addDismissedTaskAnimations(View taskView, AnimatorSet anim, long duration) { in addDismissedTaskAnimations() argument
1061 addAnim(ObjectAnimator.ofFloat(taskView, ALPHA, 0), duration, ACCEL_2, anim); in addDismissedTaskAnimations() local
1067 duration, LINEAR, anim); in addDismissedTaskAnimations()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java23 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_FADE;
24 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE;
25 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_X;
26 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_FADE;
27 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_SCALE;
28 import static com.android.launcher3.anim.Interpolators.ACCEL;
29 import static com.android.launcher3.anim.Interpolators.DEACCEL;
30 import static com.android.launcher3.anim.Interpolators.DEACCEL_1_7;
31 import static com.android.launcher3.anim.Interpolators.clampToProgress;
39 import static com.android.launcher3.anim.Interpolators.ACCEL_2;
[all …]
DWorkspaceStateTransitionAnimation.java22 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_HOTSEAT_SCALE;
23 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_HOTSEAT_TRANSLATE;
24 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_FADE;
25 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_SCALE;
26 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_TRANSLATE;
27 import static com.android.launcher3.anim.Interpolators.LINEAR;
28 import static com.android.launcher3.anim.Interpolators.ZOOM_OUT;
29 import static com.android.launcher3.anim.PropertySetter.NO_ANIM_PROPERTY_SETTER;
39 import com.android.launcher3.anim.AnimatorSetBuilder;
40 import com.android.launcher3.anim.PropertySetter;
DLauncherStateManager.java20 import static com.android.launcher3.anim.PropertySetter.NO_ANIM_PROPERTY_SETTER;
30 import com.android.launcher3.anim.AnimationSuccessListener;
31 import com.android.launcher3.anim.AnimatorPlaybackController;
32 import com.android.launcher3.anim.AnimatorSetBuilder;
33 import com.android.launcher3.anim.PropertySetter;
34 import com.android.launcher3.anim.PropertySetter.AnimatedPropertySetter;
493 public void setCurrentAnimation(AnimatorSet anim, Animator... childAnimations) { in setCurrentAnimation() argument
514 mConfig.setAnimation(anim, null); in setCurrentAnimation()
547 Animator anim = latm.createStateElementAnimation(index, values); in createStateElementAnimation() local
548 mStateElementAnimators[index] = anim; in createStateElementAnimation()
[all …]

123456789