Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/
DInterruptibleInOutAnimator.java53 private ValueAnimator mAnimator; field in InterruptibleInOutAnimator
69 mAnimator = ObjectAnimator.ofFloat(this, VALUE, fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator()
74 mAnimator.addListener(new AnimatorListenerAdapter() { in InterruptibleInOutAnimator()
83 final long currentPlayTime = mAnimator.getCurrentPlayTime(); in animate()
96 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); in animate()
98 mAnimator.setFloatValues(startValue, toValue); in animate()
99 mAnimator.start(); in animate()
104 mAnimator.cancel(); in cancel()
109 mAnimator.end(); in end()
148 return mAnimator; in getAnimator()
/packages/apps/Camera2/src/com/android/camera/ui/focus/
DFocusRingView.java49 private final DynamicAnimator mAnimator; field in FocusRingView
71 mAnimator = new DynamicAnimator(this, new SystemTimeClock()); in FocusRingView()
73 mAutoFocusRing = new AutoFocusRing(mAnimator, paint, in FocusRingView()
76 mManualFocusRing = new ManualFocusRing(mAnimator, paint, in FocusRingView()
79 mAnimator.animations.add(mAutoFocusRing); in FocusRingView()
80 mAnimator.animations.add(mManualFocusRing); in FocusRingView()
98 mAnimator.invalidate(); in startPassiveFocus()
99 long tMs = mAnimator.getTimeMillis(); in startPassiveFocus()
111 mAnimator.invalidate(); in startActiveFocus()
112 long tMs = mAnimator.getTimeMillis(); in startActiveFocus()
[all …]
/packages/apps/Contacts/src/com/android/contacts/widget/
DTransitionAnimationView.java31 private ObjectAnimator mAnimator; field in TransitionAnimationView
77 if (mAnimator != null && mAnimator.isRunning()) { in startMaskTransition()
78 mAnimator.end(); in startMaskTransition()
82 mAnimator = ObjectAnimator.ofFloat(mMaskingView, View.ALPHA, 0.0f, 1.0f); in startMaskTransition()
85 mAnimator = ObjectAnimator.ofFloat(mMaskingView, View.ALPHA, 1.0f, 0.0f); in startMaskTransition()
88 mAnimator.setDuration(duration); in startMaskTransition()
90 mAnimator.start(); in startMaskTransition()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageBubbleView.java40 private ObjectAnimator mAnimator; field in ConversationMessageBubbleView
92 if (mAnimator == null) { in bind()
98 if (mAnimator != null) { in kickOffMorphAnimation()
99 mAnimator.setIntValues(mRunningStartWidth, newWidth); in kickOffMorphAnimation()
103 mAnimator = ObjectAnimator.ofInt(this, "morphWidth", oldWidth, newWidth); in kickOffMorphAnimation()
104 mAnimator.setDuration(UiUtils.MEDIAPICKER_TRANSITION_DURATION); in kickOffMorphAnimation()
105 mAnimator.addListener(new AnimatorListener() { in kickOffMorphAnimation()
112 mAnimator = null; in kickOffMorphAnimation()
130 mAnimator.start(); in kickOffMorphAnimation()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DLauncherAnimationRunner.java136 private AnimatorSet mAnimator; field in LauncherAnimationRunner.AnimationResult
177 mAnimator = animation; in setAnimation()
179 if (mAnimator == null) { in setAnimation()
183 mAnimator.start(); in setAnimation()
184 mAnimator.end(); in setAnimation()
190 mAnimator.addListener(new AnimatorListenerAdapter() { in setAnimation()
199 mAnimator.setCurrentPlayTime( in setAnimation()
200 Math.min(getSingleFrameMs(context), mAnimator.getTotalDuration())); in setAnimation()
202 mAnimator.start(); in setAnimation()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPreviewItemAnim.java51 private final ObjectAnimator mAnimator; field in FolderPreviewItemAnim
79 mAnimator = ObjectAnimator.ofObject(this, PARAMS, new FloatArrayEvaluator(), in FolderPreviewItemAnim()
81 mAnimator.addListener(new AnimatorListenerAdapter() { in FolderPreviewItemAnim()
90 mAnimator.setDuration(duration); in FolderPreviewItemAnim()
101 mAnimator.start(); in start()
105 mAnimator.cancel(); in cancel()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DRecyclerViewAnimationController.java72 protected ObjectAnimator mAnimator = null; field in RecyclerViewAnimationController
182 if (mAnimator != null) { in animateToState()
183 mAnimator.cancel(); in animateToState()
185 mAnimator = ObjectAnimator.ofFloat(this, PROGRESS, targetProgress); in animateToState()
192 mAnimator.addListener(forEndCallback(() -> mAnimator = null)); in animateToState()
193 mAnimator.setDuration(duration).setInterpolator(timeInterpolator); in animateToState()
194 mAnimator.addListener(forSuccessCallback(onEndRunnable)); in animateToState()
195 mAnimator.start(); in animateToState()
258 return mAnimator != null; in isRunning()
DFloatingHeaderView.java53 private final ValueAnimator mAnimator = ValueAnimator.ofInt(0, 0); field in FloatingHeaderView
66 if (mAnimator.isStarted()) {
67 mAnimator.cancel();
366 if (mAnimator.isStarted()) { in reset()
367 mAnimator.cancel(); in reset()
370 mAnimator.setIntValues(mTranslationY, 0); in reset()
371 mAnimator.addUpdateListener(this); in reset()
372 mAnimator.setDuration(150); in reset()
373 mAnimator.start(); in reset()
DSearchTransitionController.java63 mAnimator.addListener(forSuccessCallback(() -> { in animateToState()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DIconAppChipView.java88 private AnimatorSet mAnimator; field in IconAppChipView
366 mAnimator = new AnimatorSet(); in revealAnim()
393 mAnimator.playTogether( in revealAnim()
406 mAnimator.setDuration(MENU_BACKGROUND_REVEAL_DURATION); in revealAnim()
420 mAnimator.playTogether( in revealAnim()
430 mAnimator.setDuration(MENU_BACKGROUND_HIDE_DURATION); in revealAnim()
433 mAnimator.setInterpolator(EMPHASIZED); in revealAnim()
434 mAnimator.start(); in revealAnim()
454 if (mAnimator != null && mAnimator.isStarted()) { in cancelInProgressAnimations()
455 mAnimator.cancel(); in cancelInProgressAnimations()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DModeListView.java326 private Animator mAnimator = null; field in ModeListView.FullyHiddenState
364 if (mAnimator != null) { in onMenuPressed()
373 if (mAnimator != null) { in shouldHandleVisibilityChange()
388 mAnimator = snapToFullScreen(); in snapOpenAndShow()
389 if (mAnimator != null) { in snapOpenAndShow()
390 mAnimator.addListener(new Animator.AnimatorListener() { in snapOpenAndShow()
398 mAnimator = null; in snapOpenAndShow()
433 private Animator mAnimator = null; field in ModeListView.FullyShownState
448 if (mAnimator != null && mAnimator.isRunning()) { in shouldHandleTouchEvent()
502 mAnimator = snapBack(true); in snapBackAndHide()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarStashController.java238 private @Nullable AnimatorSet mAnimator; field in TaskbarStashController
456 boolean isAnimating = mAnimator != null && mAnimator.isStarted(); in getContentHeightToReportToApps()
576 animation.play(mAnimator); in addUnstashToHotseatAnimationFromSuw()
594 if (mAnimator != null) { in createAnimToIsStashed()
595 mAnimator.cancel(); in createAnimToIsStashed()
597 mAnimator = new AnimatorSet(); in createAnimToIsStashed()
599 mAnimator, /* expanding= */ !isStashed, /* tag= */ jankTag); in createAnimToIsStashed()
607 mAnimator.play(mIconAlphaForStash.animateToValue(isStashed ? 0 : 1) in createAnimToIsStashed()
609 mAnimator.playTogether(mTaskbarBackgroundOffset.animateToValue(isStashed ? 1 : 0) in createAnimToIsStashed()
611 mAnimator.playTogether(mIconTranslationYForStash.animateToValue(isStashed in createAnimToIsStashed()
[all …]
DNavbarButtonsViewController.java1173 private final ObjectAnimator mAnimator; field in NavbarButtonsViewController.StatePropertyHolder
1180 mAnimator.addListener(new AlphaUpdateListener(view)); in StatePropertyHolder()
1197 mAnimator = ObjectAnimator.ofFloat(target, property, enabledValue, disabledValue); in StatePropertyHolder()
1204 mAnimator.cancel(); in setState()
1205 mAnimator.setFloatValues(mIsEnabled ? mEnabledValue : mDisabledValue); in setState()
1206 mAnimator.start(); in setState()
1211 if (mAnimator.isRunning()) { in endAnimation()
1212 mAnimator.end(); in endAnimation()
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/voice/
DBitmapSoundLevelView.java54 private TimeAnimator mAnimator; field in BitmapSoundLevelView
152 mAnimator = new TimeAnimator(); in BitmapSoundLevelView()
153 mAnimator.setRepeatCount(ObjectAnimator.INFINITE); in BitmapSoundLevelView()
154 mAnimator.setTimeListener(new TimeListener() { in BitmapSoundLevelView()
178 if (!mAnimator.isStarted()) { in startAnimator()
179 mAnimator.start(); in startAnimator()
185 mAnimator.cancel(); in stopAnimator()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DPageIndicatorDots.java135 private ObjectAnimator mAnimator; field in PageIndicatorDots
287 if (mAnimator == null && Float.compare(mCurrentPosition, mFinalPosition) != 0) {
290 mAnimator = ObjectAnimator.ofFloat(this, CURRENT_POSITION, positionForThisAnim);
291 mAnimator.addListener(new AnimationCycleListener());
292 mAnimator.setDuration(ANIMATION_DURATION);
293 mAnimator.start();
298 if (mAnimator != null) {
299 mAnimator.cancel();
300 mAnimator = null;
515 mAnimator = null;
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/bubbles/
DBubbleDismissController.java68 private BubbleDragAnimator mAnimator; field in BubbleDismissController
108 mAnimator = animator; in setupDismissView()
201 if (mAnimator == null) return; in setupMagnetizedObject()
202 mAnimator.animateDismissCaptured(); in setupMagnetizedObject()
212 if (mAnimator == null) return; in setupMagnetizedObject()
213 mAnimator.animateDismissReleased(); in setupMagnetizedObject()
DBubbleStashController.java84 private AnimatorSet mAnimator; field in BubbleStashController
255 if (mAnimator != null) { in updateStashedAndExpandedState()
256 mAnimator.cancel(); in updateStashedAndExpandedState()
258 mAnimator = createStashAnimator(mIsStashed, BAR_STASH_DURATION); in updateStashedAndExpandedState()
259 mAnimator.start(); in updateStashedAndExpandedState()
327 mAnimator = null; in createStashAnimator()
DBubbleDragController.java290 private BubbleDragAnimator mAnimator; field in BubbleDragController.BubbleTouchListener
439 mAnimator = new BubbleDragAnimator(view); in startDragging()
440 mAnimator.animateFocused(); in startDragging()
441 mBubbleDismissController.setupDismissView(view, mAnimator); in startDragging()
462 mAnimator.animateDismiss(mViewInitialPosition, onComplete); in stopDragging()
465 mAnimator.animateToRestingState(getRestingPosition(), getCurrentVelocity(), in stopDragging()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DPrimaryImage.java89 private ValueAnimator mAnimator = null; field in PrimaryImage
415 if (mAnimator != null) { in onNewLook()
416 mAnimator.cancel(); in onNewLook()
426 mAnimator = ValueAnimator.ofFloat(0, 1); in onNewLook()
427 mAnimator.setDuration(650); in onNewLook()
431 mAnimator = ValueAnimator.ofFloat(0, 90); in onNewLook()
432 mAnimator.setDuration(500); in onNewLook()
436 mAnimator = ValueAnimator.ofFloat(1, 0, -1); in onNewLook()
437 mAnimator.setDuration(500); in onNewLook()
439 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in onNewLook()
[all …]
DImageStraighten.java60 private ValueAnimator mAnimator = null; field in ImageStraighten
92 mAnimator = ValueAnimator.ofFloat(1, 0); in hidesGrid()
93 mAnimator.setStartDelay(delay); in hidesGrid()
94 mAnimator.setDuration(mAnimDelay); in hidesGrid()
95 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in hidesGrid()
102 mAnimator.start(); in hidesGrid()
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java76 private ValueAnimator mAnimator; field in MultiToggleImageButton
188 mAnimator.setFloatValues(-offset, 0.0f); in setStateAnimatedInternal()
190 s.play(mAnimator); in setStateAnimatedInternal()
262 mAnimator = ValueAnimator.ofFloat(0.0f, 0.0f); in init()
263 mAnimator.setDuration(ANIM_DURATION_MS); in init()
264 mAnimator.setInterpolator(Gusterpolator.INSTANCE); in init()
265 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in init()
/packages/apps/TV/src/com/android/tv/ui/
DTvTransitionManager.java297 private final Animator mAnimator; field in TvTransitionManager.SceneTransition
300 mAnimator = mode == ENTER ? mEnterAnimator : mExitAnimator; in SceneTransition()
312 Animator animator = mAnimator.clone(); in createAnimator()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.kt120 private var mAnimator: Animator? = null variable in com.android.calendar.month.TodayAnimatorListener
127 if (mAnimator !== animation) { in onAnimationEnd()
139 mAnimator = mTodayAnimator in onAnimationEnd()
147 mAnimator?.removeAllListeners() in onAnimationEnd()
148 mAnimator = null in onAnimationEnd()
156 mAnimator = animation in setAnimator()
/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java592 private Animator mAnimator; field in WelcomeFragment
840 if (mAnimator != null) { in onPageChanged()
841 mAnimator.cancel(); in onPageChanged()
911 mAnimator = SetupAnimationHelper.applyAnimationTimeScale(animatorSet); in onPageChanged()
912 mAnimator.start(); in onPageChanged()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.kt168 private var mAnimator: Animator? = null variable in TodayAnimatorListener
175 if (mAnimator !== animation) { in onAnimationEnd()
187 mAnimator = mTodayAnimator in onAnimationEnd()
195 mAnimator?.removeAllListeners() in onAnimationEnd()
196 mAnimator = null in onAnimationEnd()
204 mAnimator = animation in setAnimator()