Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DInterruptibleInOutAnimator.java35 private ValueAnimator mAnimator; field in InterruptibleInOutAnimator
49 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator()
54 mAnimator.addListener(new AnimatorListenerAdapter() { in InterruptibleInOutAnimator()
63 final long currentPlayTime = mAnimator.getCurrentPlayTime(); in animate()
66 ((Float) mAnimator.getAnimatedValue()).floatValue(); in animate()
77 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); in animate()
79 mAnimator.setFloatValues(startValue, toValue); in animate()
80 mAnimator.start(); in animate()
85 mAnimator.cancel(); in cancel()
90 mAnimator.end(); in end()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DInterruptibleInOutAnimator.java37 private ValueAnimator mAnimator; field in InterruptibleInOutAnimator
51 mAnimator = LauncherAnimUtils.ofFloat(fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator()
56 mAnimator.addListener(new AnimatorListenerAdapter() { in InterruptibleInOutAnimator()
65 final long currentPlayTime = mAnimator.getCurrentPlayTime(); in animate()
68 ((Float) mAnimator.getAnimatedValue()).floatValue(); in animate()
79 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); in animate()
81 mAnimator.setFloatValues(startValue, toValue); in animate()
82 mAnimator.start(); in animate()
87 mAnimator.cancel(); in cancel()
92 mAnimator.end(); in end()
[all …]
/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/UnifiedEmail/src/com/android/mail/ui/
DButteryProgressBar.java48 private final ValueAnimator mAnimator; field in ButteryProgressBar
102 mAnimator = new ValueAnimator(); in ButteryProgressBar()
103 mAnimator.setFloatValues(1.0f, 2.0f); in ButteryProgressBar()
104 mAnimator.setRepeatCount(ValueAnimator.INFINITE); in ButteryProgressBar()
105 mAnimator.setInterpolator(new ExponentialInterpolator()); in ButteryProgressBar()
106 mAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in ButteryProgressBar()
132 mAnimator.setDuration((int) (BASE_DURATION_MS * durationMult)); in onLayout()
139 if (!mAnimator.isStarted()) { in onDraw()
145 final float val = (Float) mAnimator.getAnimatedValue(); in onDraw()
190 mAnimator.start(); in start()
[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/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/Dialer/java/com/android/dialer/app/widget/
DActionBarController.java64 private ValueAnimator mAnimator; field in ActionBarController
146 if (mAnimator != null && mAnimator.isRunning()) { in slideActionBar()
147 mAnimator.cancel(); in slideActionBar()
148 mAnimator.removeAllUpdateListeners(); in slideActionBar()
151 mAnimator = slideUp ? ValueAnimator.ofFloat(0, 1) : ValueAnimator.ofFloat(1, 0); in slideActionBar()
152 mAnimator.addUpdateListener( in slideActionBar()
157 mAnimator.start(); in slideActionBar()
DSearchEditTextLayout.java57 private ValueAnimator mAnimator; field in SearchEditTextLayout
219 mAnimator = ValueAnimator.ofFloat(EXPAND_MARGIN_FRACTION_START, 0f); in expand()
249 mAnimator = ValueAnimator.ofFloat(0f, 1f); in collapse()
289 if (mAnimator != null) { in prepareAnimator()
290 mAnimator.cancel(); in prepareAnimator()
293 mAnimator.addUpdateListener( in prepareAnimator()
302 mAnimator.setDuration(ANIMATION_DURATION); in prepareAnimator()
303 mAnimator.start(); in prepareAnimator()
/packages/apps/Launcher3/src/com/android/launcher3/pageindicators/
DPageIndicatorDots.java95 private ObjectAnimator mAnimator; field in PageIndicatorDots
151 if (mAnimator == null && Float.compare(mCurrentPosition, mFinalPosition) != 0) { in animateToPosition()
154 mAnimator = ObjectAnimator.ofFloat(this, CURRENT_POSITION, positionForThisAnim); in animateToPosition()
155 mAnimator.addListener(new AnimationCycleListener()); in animateToPosition()
156 mAnimator.setDuration(ANIMATION_DURATION); in animateToPosition()
157 mAnimator.start(); in animateToPosition()
162 if (mAnimator != null) { in stopAllAnimations()
163 mAnimator.cancel(); in stopAllAnimations()
164 mAnimator = null; in stopAllAnimations()
333 mAnimator = null; in onAnimationEnd()
/packages/apps/PackageInstaller/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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DMasterImage.java89 private ValueAnimator mAnimator = null; field in MasterImage
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/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/ui/
DTvTransitionManager.java290 private final Animator mAnimator; field in TvTransitionManager.SceneTransition
293 mAnimator = mode == ENTER ? mEnterAnimator : mExitAnimator; in SceneTransition()
307 Animator animator = mAnimator.clone(); in createAnimator()
/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java584 private Animator mAnimator; field in WelcomeFragment
732 if (mAnimator != null) { in onPageChanged()
733 mAnimator.cancel(); in onPageChanged()
794 mAnimator = SetupAnimationHelper.applyAnimationTimeScale(animatorSet); in onPageChanged()
795 mAnimator.start(); in onPageChanged()
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java238 private volatile Animator mAnimator = null; field in DayView.TodayAnimatorListener
244 if (mAnimator != animation) { in onAnimationEnd()
256 mAnimator = mTodayAnimator; in onAnimationEnd()
264 mAnimator.removeAllListeners(); in onAnimationEnd()
265 mAnimator = null; in onAnimationEnd()
273 mAnimator = animation; in setAnimator()