Home
last modified time | relevance | path

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

123456789

/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java16 package com.android.launcher3.anim;
19 import static com.android.launcher3.anim.Interpolators.LINEAR;
20 import static com.android.launcher3.anim.Interpolators.clampToProgress;
21 import static com.android.launcher3.anim.Interpolators.scrollInterpolatorForVelocity;
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()
[all …]
DPendingAnimation.java16 package com.android.launcher3.anim;
19 import static com.android.launcher3.anim.AnimatorPlaybackController.addAnimationHoldersRecur;
32 import com.android.launcher3.anim.AnimatorPlaybackController.Holder;
62 public void add(Animator anim, TimeInterpolator interpolator, SpringProperty springProperty) { in add() argument
63 anim.setInterpolator(interpolator); in add()
64 add(anim, springProperty); in add()
67 public void add(Animator anim) { in add() argument
68 add(anim, SpringProperty.DEFAULT); in add()
81 ObjectAnimator anim = ObjectAnimator.ofFloat(view, View.ALPHA, alpha); in setViewAlpha() local
82 anim.addListener(new AlphaUpdateListener(view)); in setViewAlpha()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/
DStateManager.java21 import static com.android.launcher3.anim.AnimatorPlaybackController.callListenerCommandRecursively;
31 import com.android.launcher3.anim.AnimationSuccessListener;
32 import com.android.launcher3.anim.AnimatorPlaybackController;
33 import com.android.launcher3.anim.PendingAnimation;
417 public void setCurrentAnimation(AnimatorSet anim, STATE_TYPE toState) {
419 setCurrentAnimation(anim);
420 anim.addListener(createStateAnimationListener(toState));
429 public void setCurrentAnimation(AnimatorSet anim, Animator... childAnimations) {
450 mConfig.setAnimation(anim, null);
464 Animator anim = mAtomicAnimationFactory.createStateElementAnimation(index, values);
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DSwipeUpGestureTutorialController.java18 import static com.android.launcher3.anim.Interpolators.ACCEL;
46 import com.android.launcher3.anim.AnimatorListeners;
47 import com.android.launcher3.anim.AnimatorPlaybackController;
48 import com.android.launcher3.anim.PendingAnimation;
142 PendingAnimation anim = new PendingAnimation(300); in fadeOutFakeTaskView() local
144 anim.setFloat(mTaskViewSwipeUpAnimation in fadeOutFakeTaskView()
146 anim.addListener(new AnimatorListenerAdapter() { in fadeOutFakeTaskView()
169 anim.setFloat(mTaskViewSwipeUpAnimation in fadeOutFakeTaskView()
171 anim.addListener(mResetTaskView); in fadeOutFakeTaskView()
173 anim.setViewAlpha(mFakeTaskView, 0, ACCEL); in fadeOutFakeTaskView()
[all …]
DOverviewGestureTutorialController.java18 import static com.android.launcher3.anim.Interpolators.ACCEL;
26 import com.android.launcher3.anim.PendingAnimation;
102 PendingAnimation anim = new PendingAnimation(300); in onNavBarGestureAttempted() local
103 anim.setFloat(mTaskViewSwipeUpAnimation in onNavBarGestureAttempted()
105 AnimatorSet animset = anim.buildAnim(); in onNavBarGestureAttempted()
/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/folder/
DPreviewItemManager.java272 if (p.anim != null) {
273 p.anim.cancel();
280 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, i, prevNumItems, i,
283 if (p.anim != null) {
284 if (p.anim.hasEqualFinalState(anim)) {
288 p.anim.cancel();
290 p.anim = anim;
291 p.anim.start();
407 if (params.get(i).anim != null) {
408 params.get(i).anim.start();
[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);
87 params.anim = null; in FolderPreviewItemAnim()
108 public boolean hasEqualFinalState(FolderPreviewItemAnim anim) { in hasEqualFinalState() argument
109 return Arrays.equals(finalState, anim.finalState); in hasEqualFinalState()
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/quickstep/src/com/android/quickstep/
DLauncherSwipeHandlerV2.java24 import static com.android.launcher3.anim.Interpolators.EXAGGERATED_EASE;
25 import static com.android.launcher3.anim.Interpolators.LINEAR;
53 import com.android.launcher3.anim.AnimatorPlaybackController;
54 import com.android.launcher3.anim.SpringAnimationBuilder;
145 public void setAnimation(RectFSpringAnim anim) {
146 super.setAnimation(anim);
147 anim.addAnimatorListener(floatingIconView);
148 floatingIconView.setOnTargetChangeListener(anim::onTargetPositionChanged);
149 floatingIconView.setFastFinishRunnable(anim::end);
211 public void setAnimation(RectFSpringAnim anim) {
[all …]
DSwipeUpAnimationLogic.java18 import static com.android.launcher3.anim.Interpolators.ACCEL_1_5;
19 import static com.android.launcher3.anim.Interpolators.LINEAR;
35 import com.android.launcher3.anim.AnimationSuccessListener;
36 import com.android.launcher3.anim.AnimatorPlaybackController;
37 import com.android.launcher3.anim.PendingAnimation;
168 public void setAnimation(RectFSpringAnim anim) { } in setAnimation() argument
240 RectFSpringAnim anim; in createWindowAnimationToHome() local
242 anim = new RectFSpringAnim2(startRect, targetRect, mContext, in createWindowAnimationToHome()
246 anim = new RectFSpringAnim(startRect, targetRect, mContext); in createWindowAnimationToHome()
248 homeAnimationFactory.setAnimation(anim); in createWindowAnimationToHome()
[all …]
DTaskViewUtils.java31 import static com.android.launcher3.anim.Interpolators.LINEAR;
32 import static com.android.launcher3.anim.Interpolators.TOUCH_RESPONSE_INTERPOLATOR;
33 import static com.android.launcher3.anim.Interpolators.TOUCH_RESPONSE_INTERPOLATOR_ACCEL_DEACCEL;
34 import static com.android.launcher3.anim.Interpolators.clampToProgress;
61 import com.android.launcher3.anim.AnimationSuccessListener;
62 import com.android.launcher3.anim.AnimatorPlaybackController;
63 import com.android.launcher3.anim.Interpolators;
64 import com.android.launcher3.anim.PendingAnimation;
408 public static void composeRecentsSplitLaunchAnimatorLegacy(@NonNull AnimatorSet anim, in composeRecentsSplitLaunchAnimatorLegacy() argument
478 anim.play(out.buildAnim()); in composeRecentsSplitLaunchAnimatorLegacy()
[all …]
DRecentsActivity.java54 import com.android.launcher3.anim.AnimatorPlaybackController;
55 import com.android.launcher3.anim.Interpolators;
56 import com.android.launcher3.anim.PendingAnimation;
213 AnimatorSet anim = composeRecentsLaunchAnimator(taskView, appTargets, in getActivityLaunchOptions()
215 anim.addListener(resetStateListener()); in getActivityLaunchOptions()
216 result.setAnimation(anim, RecentsActivity.this, onEndCallback::executeAllAndDestroy, in getActivityLaunchOptions()
395 AnimatorSet anim = new AnimatorSet();
396 anim.play(controller.getAnimationPlayer());
397 anim.setDuration(HOME_APPEAR_DURATION);
398 result.setAnimation(anim, RecentsActivity.this,
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepTransitionManager.java32 import static com.android.launcher3.anim.Interpolators.AGGRESSIVE_EASE;
33 import static com.android.launcher3.anim.Interpolators.DEACCEL_1_5;
34 import static com.android.launcher3.anim.Interpolators.DEACCEL_1_7;
35 import static com.android.launcher3.anim.Interpolators.EXAGGERATED_EASE;
36 import static com.android.launcher3.anim.Interpolators.LINEAR;
84 import com.android.launcher3.anim.AnimationSuccessListener;
307 protected void composeRecentsLaunchAnimator(@NonNull AnimatorSet anim, @NonNull View v, in composeRecentsLaunchAnimator() argument
311 TaskViewUtils.composeRecentsLaunchAnimator(anim, v, appTargets, wallpaperTargets, in composeRecentsLaunchAnimator()
336 private void composeIconLaunchAnimator(@NonNull AnimatorSet anim, @NonNull View v, in composeIconLaunchAnimator() argument
343 mLauncher.getStateManager().setCurrentAnimation(anim); in composeIconLaunchAnimator()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsTransitionController.java20 import static com.android.launcher3.anim.Interpolators.DEACCEL_1_7;
21 import static com.android.launcher3.anim.Interpolators.LINEAR;
22 import static com.android.launcher3.anim.PropertySetter.NO_ANIM_PROPERTY_SETTER;
39 import com.android.launcher3.anim.AnimatorListeners;
40 import com.android.launcher3.anim.Interpolators;
41 import com.android.launcher3.anim.PendingAnimation;
42 import com.android.launcher3.anim.PropertySetter;
165 Animator anim = createSpringAnimation(mProgress, targetProgress); in setStateWithAnimation() local
166 anim.setInterpolator(config.getInterpolator(ANIM_VERTICAL_PROGRESS, interpolator)); in setStateWithAnimation()
167 anim.addListener(getProgressAnimatorListener()); in setStateWithAnimation()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DLauncherTaskbarUIController.java32 import com.android.launcher3.anim.PendingAnimation;
162 PendingAnimation anim = new PendingAnimation(duration);
163 anim.add(mTaskbarAnimationController.createAnimToBackgroundAlpha(0, duration));
165 mTaskbarStateHandler.setStateWithAnimation(toState, new StateAnimationConfig(), anim);
168 anim.addListener(new AnimatorListenerAdapter() {
183 return anim.buildAnim();
187 PendingAnimation anim = new PendingAnimation(duration);
188 anim.add(mTaskbarAnimationController.createAnimToBackgroundAlpha(1, duration));
189 anim.addListener(new AnimatorListenerAdapter() {
201 return anim.buildAnim();
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DQuickstepAtomicAnimationFactory.java25 import static com.android.launcher3.anim.Interpolators.ACCEL;
26 import static com.android.launcher3.anim.Interpolators.ACCEL_DEACCEL;
27 import static com.android.launcher3.anim.Interpolators.DEACCEL;
28 import static com.android.launcher3.anim.Interpolators.DEACCEL_1_7;
29 import static com.android.launcher3.anim.Interpolators.DEACCEL_3;
30 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
31 import static com.android.launcher3.anim.Interpolators.FINAL_FRAME;
32 import static com.android.launcher3.anim.Interpolators.INSTANT;
33 import static com.android.launcher3.anim.Interpolators.LINEAR;
34 import static com.android.launcher3.anim.Interpolators.OVERSHOOT_1_2;
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRectFSpringAnim.java31 import com.android.launcher3.anim.FlingSpringAnim;
49 public float getValue(RectFSpringAnim anim) {
50 return anim.mCurrentCenterX;
54 public void setValue(RectFSpringAnim anim, float currentCenterX) {
55 anim.mCurrentCenterX = currentCenterX;
56 anim.onUpdate();
63 public float getValue(RectFSpringAnim anim) {
64 return anim.mCurrentY;
68 public void setValue(RectFSpringAnim anim, float y) {
69 anim.mCurrentY = y;
[all …]
DRectFSpringAnim2.java19 import static com.android.launcher3.anim.Interpolators.LINEAR;
55 public float getValue(RectFSpringAnim2 anim) {
56 return anim.mCurrentCenterX;
60 public void setValue(RectFSpringAnim2 anim, float currentCenterX) {
61 anim.mCurrentCenterX = currentCenterX;
62 anim.onUpdate();
69 public float getValue(RectFSpringAnim2 anim) {
70 return anim.mCurrentCenterY;
74 public void setValue(RectFSpringAnim2 anim, float y) {
75 anim.mCurrentCenterY = y;
[all …]
DOverviewToHomeAnim.java27 import com.android.launcher3.anim.AnimationSuccessListener;
62 AnimatorSet anim = new AnimatorSet(); in animateWithVelocity() local
75 anim.play(workspaceRevealAnim.getAnimators()); in animateWithVelocity()
95 anim.play(stateAnim); in animateWithVelocity()
96 stateManager.setCurrentAnimation(anim, NORMAL); in animateWithVelocity()
97 anim.start(); in animateWithVelocity()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DNavBarToHomeTouchController.java25 import static com.android.launcher3.anim.AnimatorListeners.forSuccessCallback;
26 import static com.android.launcher3.anim.Interpolators.DEACCEL_3;
42 import com.android.launcher3.anim.AnimatorPlaybackController;
43 import com.android.launcher3.anim.Interpolators;
44 import com.android.launcher3.anim.PendingAnimation;
215 ValueAnimator anim = mCurrentAnimation.getAnimationPlayer(); in onDragEnd() local
216 anim.setFloatValues(progress, 0); in onDragEnd()
217 anim.addListener(forSuccessCallback(() -> onSwipeInteractionCompleted(mStartState))); in onDragEnd()
218 anim.setDuration(80).start(); in onDragEnd()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DRecentsView.java34 import static com.android.launcher3.anim.Interpolators.ACCEL;
35 import static com.android.launcher3.anim.Interpolators.ACCEL_0_5;
36 import static com.android.launcher3.anim.Interpolators.ACCEL_0_75;
37 import static com.android.launcher3.anim.Interpolators.ACCEL_DEACCEL;
38 import static com.android.launcher3.anim.Interpolators.FAST_OUT_SLOW_IN;
39 import static com.android.launcher3.anim.Interpolators.LINEAR;
40 import static com.android.launcher3.anim.Interpolators.clampToProgress;
115 import com.android.launcher3.anim.AnimationSuccessListener;
116 import com.android.launcher3.anim.AnimatorListeners;
117 import com.android.launcher3.anim.AnimatorPlaybackController;
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java23 import com.android.gallery3d.anim.CanvasAnimation;
24 import com.android.gallery3d.anim.StateTransitionAnimation;
276 CanvasAnimation anim = component.mAnimation; in renderChild() local
277 if (anim != null) { in renderChild()
278 canvas.save(anim.getCanvasSaveFlags()); in renderChild()
279 if (anim.calculate(AnimationTime.get())) { in renderChild()
284 anim.apply(canvas); in renderChild()
287 if (anim != null) canvas.restore(); in renderChild()
/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()

123456789