Home
last modified time | relevance | path

Searched refs:mAnimator (Results 1 – 20 of 20) 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/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/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/Launcher3/quickstep/src/com/android/launcher3/
DLauncherAnimationRunner.java148 private AnimatorSet mAnimator; field in LauncherAnimationRunner.AnimationResult
189 mAnimator = animation; in setAnimation()
191 if (mAnimator == null) { in setAnimation()
195 mAnimator.start(); in setAnimation()
196 mAnimator.end(); in setAnimation()
202 mAnimator.addListener(new AnimatorListenerAdapter() { in setAnimation()
208 mAnimator.start(); in setAnimation()
213 mAnimator.setCurrentPlayTime( in setAnimation()
214 Math.min(getSingleFrameMs(context), mAnimator.getTotalDuration())); in setAnimation()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DLauncherTaskbarUIController.java52 private @Nullable Animator mAnimator; field in LauncherTaskbarUIController
81 if (mAnimator != null) { in onDestroy()
83 mAnimator.end(); in onDestroy()
140 if (mAnimator != null) {
141 mAnimator.cancel();
144 mAnimator = createAnimToLauncher(null, duration);
146 mAnimator = createAnimToApp(duration);
148 mAnimator.addListener(new AnimatorListenerAdapter() {
151 mAnimator = null;
154 mAnimator.start();
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DProgressDrawable.java75 private final ObjectAnimator mAnimator; field in ProgressDrawable
82 mAnimator = ObjectAnimator.ofInt(this, LEVEL, 0, MAX_LEVEL); in ProgressDrawable()
83 mAnimator.setRepeatCount(ValueAnimator.INFINITE); in ProgressDrawable()
84 mAnimator.setRepeatMode(ValueAnimator.RESTART); in ProgressDrawable()
85 mAnimator.setDuration(ANIMATION_DURATION); in ProgressDrawable()
86 mAnimator.setInterpolator(new LinearInterpolator()); in ProgressDrawable()
98 mAnimator.start(); in startAnimation()
102 mAnimator.cancel(); in stopAnimation()
/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/src/com/android/launcher3/pageindicators/
DPageIndicatorDots.java96 private ObjectAnimator mAnimator; field in PageIndicatorDots
152 if (mAnimator == null && Float.compare(mCurrentPosition, mFinalPosition) != 0) { in animateToPosition()
155 mAnimator = ObjectAnimator.ofFloat(this, CURRENT_POSITION, positionForThisAnim); in animateToPosition()
156 mAnimator.addListener(new AnimationCycleListener()); in animateToPosition()
157 mAnimator.setDuration(ANIMATION_DURATION); in animateToPosition()
158 mAnimator.start(); in animateToPosition()
163 if (mAnimator != null) { in stopAllAnimations()
164 mAnimator.cancel(); in stopAllAnimations()
165 mAnimator = null; in stopAllAnimations()
335 mAnimator = null; in onAnimationEnd()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DSearchAndRecommendationsScrollController.java45 private final ValueAnimator mAnimator = ValueAnimator.ofInt(0, 0); field in SearchAndRecommendationsScrollController
261 if (mAnimator.isStarted()) { in onScrollChanged()
262 mAnimator.cancel(); in onScrollChanged()
297 if (mAnimator.isStarted()) { in reset()
298 mAnimator.cancel(); in reset()
302 mAnimator.setIntValues(mCurrentRecyclerViewScrollY, 0); in reset()
303 mAnimator.addUpdateListener(this); in reset()
304 mAnimator.setDuration(300); in reset()
305 mAnimator.start(); in reset()
/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/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/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/allapps/
DFloatingHeaderView.java54 private final ValueAnimator mAnimator = ValueAnimator.ofInt(0, 0); field in FloatingHeaderView
70 if (mAnimator.isStarted()) {
71 mAnimator.cancel();
358 if (mAnimator.isStarted()) { in reset()
359 mAnimator.cancel(); in reset()
362 mAnimator.setIntValues(mTranslationY, 0); in reset()
363 mAnimator.addUpdateListener(this); in reset()
364 mAnimator.setDuration(150); in reset()
365 mAnimator.start(); in reset()
/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.java293 private final Animator mAnimator; field in TvTransitionManager.SceneTransition
296 mAnimator = mode == ENTER ? mEnterAnimator : mExitAnimator; in SceneTransition()
308 Animator animator = mAnimator.clone(); in createAnimator()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthWeekEventsView.java182 private volatile Animator mAnimator = null; field in MonthWeekEventsView.TodayAnimatorListener
188 if (mAnimator != animation) { in onAnimationEnd()
200 mAnimator = mTodayAnimator; in onAnimationEnd()
208 mAnimator.removeAllListeners(); in onAnimationEnd()
209 mAnimator = null; in onAnimationEnd()
217 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.java235 private volatile Animator mAnimator = null; field in DayView.TodayAnimatorListener
241 if (mAnimator != animation) { in onAnimationEnd()
253 mAnimator = mTodayAnimator; in onAnimationEnd()
261 mAnimator.removeAllListeners(); in onAnimationEnd()
262 mAnimator = null; in onAnimationEnd()
270 mAnimator = animation; in setAnimator()