/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | AnimatorPlaybackController.java | 16 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 …]
|
D | PropertySetter.java | 17 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 …]
|
D | AnimatorSetBuilder.java | 16 package com.android.launcher3.anim; 51 public void play(Animator anim) { in play() argument 52 mAnims.add(anim); in play() 60 AnimatorSet anim = new AnimatorSet(); in build() local 61 anim.playTogether(mAnims); in build() 63 anim.addListener(new AnimationSuccessListener() { in build() 73 return anim; in build()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | AppToOverviewAnimationProvider.java | 19 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN; 82 ValueAnimator anim = controller.getAnimationPlayer() in onActivityReady() 84 anim.setInterpolator(FAST_OUT_SLOW_IN); in onActivityReady() 85 anim.start(); in onActivityReady() 105 AnimatorSet anim = new AnimatorSet(); in createWindowAnimation() local 110 anim.play(ValueAnimator.ofInt(0, 1).setDuration(getRecentsLaunchDuration())); in createWindowAnimation() 111 return anim; in createWindowAnimation() 133 anim.play(ValueAnimator.ofInt(0, 1).setDuration(getRecentsLaunchDuration())); in createWindowAnimation() 134 return anim; in createWindowAnimation() 140 anim.play(ValueAnimator.ofInt(0, 1).setDuration(getRecentsLaunchDuration())); in createWindowAnimation() [all …]
|
D | ContentFillItemAnimator.java | 112 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/ |
D | AppToOverviewAnimationProvider.java | 18 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() 100 AnimatorSet anim = new AnimatorSet(); in createWindowAnimation() local 101 anim.addListener(new AnimationSuccessListener() { in createWindowAnimation() 111 anim.play(ValueAnimator.ofInt(0, 1).setDuration(RECENTS_LAUNCH_DURATION)); in createWindowAnimation() 112 return anim; in createWindowAnimation() [all …]
|
D | FallbackActivityControllerHelper.java | 18 import static com.android.launcher3.anim.Interpolators.LINEAR; 34 import com.android.launcher3.anim.AnimationSuccessListener; 35 import com.android.launcher3.anim.AnimatorPlaybackController; 103 Animator anim = ObjectAnimator.ofFloat(recentsView, CONTENT_ALPHA, 0); in prepareHomeUI() local 104 anim.addListener(new AnimationSuccessListener() { in prepareHomeUI() 111 animatorSet.play(anim); in prepareHomeUI() 151 ObjectAnimator anim = ObjectAnimator.ofFloat(rv, CONTENT_ALPHA, 0, 1); 152 anim.setDuration(transitionLength).setInterpolator(LINEAR); 153 animatorSet.play(anim); 156 ObjectAnimator anim = ObjectAnimator.ofFloat(rv, ZOOM_PROGRESS, 1, 0); [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepAppTransitionManagerImpl.java | 27 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; 62 import com.android.launcher3.anim.Interpolators; 207 AnimatorSet anim = new AnimatorSet(); in getActivityLaunchOptions() 213 composeRecentsLaunchAnimator(anim, v, targetCompats, launcherClosing); in getActivityLaunchOptions() 215 composeIconLaunchAnimator(anim, v, targetCompats, launcherClosing); in getActivityLaunchOptions() 219 anim.addListener(mForceInvisibleListener); in getActivityLaunchOptions() 222 result.setAnimation(anim); in getActivityLaunchOptions() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/ |
D | LauncherAppTransitionManagerImpl.java | 22 import static com.android.launcher3.anim.Interpolators.AGGRESSIVE_EASE; 23 import static com.android.launcher3.anim.Interpolators.LINEAR; 42 import com.android.launcher3.anim.AnimatorPlaybackController; 43 import com.android.launcher3.anim.Interpolators; 44 import com.android.launcher3.anim.SpringObjectAnimator; 72 protected void composeRecentsLaunchAnimator(@NonNull AnimatorSet anim, @NonNull View v, in composeRecentsLaunchAnimator() argument 80 anim.play(getRecentsWindowAnimator(taskView, skipLauncherChanges, targets, helper) in composeRecentsLaunchAnimator() 114 anim.play(launcherAnim); in composeRecentsLaunchAnimator() 119 mLauncher.getStateManager().setCurrentAnimation(anim, childStateAnimation); in composeRecentsLaunchAnimator() 120 anim.addListener(windowAnimEndListener); in composeRecentsLaunchAnimator() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | NavBarToHomeTouchController.java | 24 import static com.android.launcher3.anim.Interpolators.DEACCEL_3; 41 import com.android.launcher3.anim.AnimationSuccessListener; 42 import com.android.launcher3.anim.AnimatorPlaybackController; 43 import com.android.launcher3.anim.AnimatorSetBuilder; 44 import com.android.launcher3.anim.Interpolators; 123 final AnimatorSet anim = new AnimatorSet(); in initCurrentAnimation() local 132 anim.play(pullback); in initCurrentAnimation() 146 anim.play(builder.build()); in initCurrentAnimation() 153 anim.play(hintCloseAnim); in initCurrentAnimation() 156 anim.setDuration(accuracy); in initCurrentAnimation() [all …]
|
D | QuickSwitchTouchController.java | 20 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 …]
|
D | TaskViewTouchController.java | 20 import static com.android.launcher3.anim.Interpolators.scrollInterpolatorForVelocity; 33 import com.android.launcher3.anim.AnimatorPlaybackController; 34 import com.android.launcher3.anim.Interpolators; 193 mPendingAnimation.anim.setInterpolator(Interpolators.ZOOM_IN); in reInitAnimationController() 204 .wrap(mPendingAnimation.anim, maxDuration, this::clearState); in reInitAnimationController() 274 ValueAnimator anim = mCurrentAnimation.getAnimationPlayer(); local 275 anim.setFloatValues(nextFrameProgress, goingToEnd ? 1f : 0f); 276 anim.setDuration(animationDuration); 277 anim.setInterpolator(scrollInterpolatorForVelocity(velocity)); 279 anim.addUpdateListener(valueAnimator -> { [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsTransitionController.java | 9 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_ALL_APPS_FADE; 10 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_SCALE; 11 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_VERTICAL_PROGRESS; 12 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN; 13 import static com.android.launcher3.anim.Interpolators.LINEAR; 14 import static com.android.launcher3.anim.PropertySetter.NO_ANIM_PROPERTY_SETTER; 30 import com.android.launcher3.anim.AnimationSuccessListener; 31 import com.android.launcher3.anim.AnimatorSetBuilder; 32 import com.android.launcher3.anim.PropertySetter; 33 import com.android.launcher3.anim.SpringObjectAnimator; [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | PreviewItemManager.java | 231 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, i, prevNumItems, i, 234 if (p.anim != null) { 235 if (p.anim.hasEqualFinalState(anim)) { 239 p.anim.cancel(); 241 p.anim = anim; 242 p.anim.start(); 345 if (params.get(i).anim != null) { 346 params.get(i).anim.start(); 360 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, prevIndex, numItems, 362 if (p.anim != null && !p.anim.hasEqualFinalState(anim)) { [all …]
|
D | FolderPreviewItemAnim.java | 34 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/Launcher3/src/com/android/launcher3/settings/ |
D | PreferenceHighlighter.java | 95 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/go/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 23 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/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DirectoryItemAnimator.java | 50 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/UnifiedEmail/src/com/android/mail/ui/ |
D | SwipeHelper.java | 116 ObjectAnimator anim = ObjectAnimator.ofFloat(v, in createTranslationAnimation() local 118 return anim; in createTranslationAnimation() 122 ObjectAnimator anim = createTranslationAnimation(v, newPos); in createDismissAnimation() local 123 anim.setInterpolator(sDecelerateInterpolator); in createDismissAnimation() 124 anim.setDuration(duration); in createDismissAnimation() 125 return anim; in createDismissAnimation() 273 ObjectAnimator anim = createDismissAnimation(animView, newPos, duration); in dismissChild() local 274 anim.addListener(new AnimatorListenerAdapter() { in dismissChild() 281 anim.addUpdateListener(new AnimatorUpdateListener() { in dismissChild() 290 anim.start(); in dismissChild() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ |
D | RectFSpringAnim.java | 30 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/ |
D | RecentsView.java | 29 import static com.android.launcher3.anim.Interpolators.ACCEL; 30 import static com.android.launcher3.anim.Interpolators.ACCEL_2; 31 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN; 32 import static com.android.launcher3.anim.Interpolators.LINEAR; 90 import com.android.launcher3.anim.AnimatorPlaybackController; 91 import com.android.launcher3.anim.PropertyListBuilder; 92 import com.android.launcher3.anim.SpringObjectAnimator; 1031 private void addDismissedTaskAnimations(View taskView, AnimatorSet anim, long duration) { in addDismissedTaskAnimations() argument 1032 addAnim(ObjectAnimator.ofFloat(taskView, ALPHA, 0), duration, ACCEL_2, anim); in addDismissedTaskAnimations() local 1038 duration, LINEAR, anim); in addDismissedTaskAnimations() [all …]
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 22 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_WORKSPACE_FADE; 26 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_SCALE; 27 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_WORKSPACE_TRANSLATE; 28 import static com.android.launcher3.anim.Interpolators.ACCEL; 29 import static com.android.launcher3.anim.Interpolators.DEACCEL_2; 30 import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_2; 31 import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_7; [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | BaseRecentsViewStateController.java | 20 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_TRANSLATE_X; 23 import static com.android.launcher3.anim.AnimatorSetBuilder.ANIM_OVERVIEW_TRANSLATE_Y; 24 import static com.android.launcher3.anim.AnimatorSetBuilder.FLAG_DONT_ANIMATE_OVERVIEW; 25 import static com.android.launcher3.anim.Interpolators.AGGRESSIVE_EASE_IN_OUT; 26 import static com.android.launcher3.anim.Interpolators.LINEAR; 37 import com.android.launcher3.anim.AnimatorSetBuilder; 38 import com.android.launcher3.anim.PropertySetter;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherState.java | 23 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 …]
|
D | WorkspaceStateTransitionAnimation.java | 22 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;
|