Home
last modified time | relevance | path

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

123456

/packages/apps/DeskClock/src/com/android/deskclock/
DItemAnimator.java57 public void onAnimationStart(Animator animator) { in animateRemove()
62 public void onAnimationEnd(Animator animator) { in animateRemove()
63 animator.removeAllListeners(); in animateRemove()
85 public void onAnimationStart(Animator animator) { in animateAdd()
90 public void onAnimationEnd(Animator animator) { in animateAdd()
91 animator.removeAllListeners(); in animateAdd()
138 public void onAnimationStart(Animator animator) { in animateMove()
143 public void onAnimationEnd(Animator animator) { in animateMove()
144 animator.removeAllListeners(); in animateMove()
169 final Animator animator = ((OnAnimateChangeListener) newHolder) in animateChange() local
[all …]
DAnimatorUtils.java125 public static void setAnimatedFraction(ValueAnimator animator, float fraction) { in setAnimatedFraction() argument
127 animator.setCurrentFraction(fraction); in setAnimatedFraction()
141 sAnimateValue.invoke(animator, fraction); in setAnimatedFraction()
152 animator.setCurrentPlayTime(Math.round(fraction * animator.getDuration())); in setAnimatedFraction()
156 for (ValueAnimator animator : animators) { in reverse()
157 final float fraction = animator.getAnimatedFraction(); in reverse()
159 animator.reverse(); in reverse()
160 setAnimatedFraction(animator, 1.0f - fraction); in reverse()
166 for (ValueAnimator animator : animators) { in cancel()
167 animator.cancel(); in cancel()
/packages/apps/Dialer/java/com/android/dialer/animation/
DAnimUtils.java47 final ViewPropertyAnimator animator = fadeOut.animate(); in fadeOut() local
48 animator.cancel(); in fadeOut()
49 animator in fadeOut()
72 animator.setDuration(durationMs); in fadeOut()
74 animator.start(); in fadeOut()
84 final ViewPropertyAnimator animator = fadeIn.animate(); in fadeIn() local
85 animator.cancel(); in fadeIn()
87 animator.setStartDelay(delay); in fadeIn()
88 animator in fadeIn()
114 animator.setDuration(durationMs); in fadeIn()
[all …]
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/
DAnimUtils.java58 final ViewPropertyAnimator animator = fadeOut.animate(); in fadeOut() local
59 animator.cancel(); in fadeOut()
60 animator.alpha(0).withLayer().setListener(new AnimatorListenerAdapter() { in fadeOut()
79 animator.setDuration(durationMs); in fadeOut()
81 animator.start(); in fadeOut()
91 final ViewPropertyAnimator animator = fadeIn.animate(); in fadeIn() local
92 animator.cancel(); in fadeIn()
94 animator.setStartDelay(delay); in fadeIn()
95 animator.alpha(1).withLayer().setListener(new AnimatorListenerAdapter() { in fadeIn()
117 animator.setDuration(durationMs); in fadeIn()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/
DSetupAnimationHelper.java137 public static Animator applyAnimationTimeScale(Animator animator) { in applyAnimationTimeScale() argument
138 if (animator instanceof AnimatorSet) { in applyAnimationTimeScale()
139 for (Animator child : ((AnimatorSet) animator).getChildAnimations()) { in applyAnimationTimeScale()
143 if (animator.getDuration() > 0) { in applyAnimationTimeScale()
144 animator.setDuration((long) (animator.getDuration() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
146 animator.setStartDelay((long) (animator.getStartDelay() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
147 return animator; in applyAnimationTimeScale()
188 ObjectAnimator animator = ObjectAnimator.ofInt(imageView, "imageResource", frames); in createFrameAnimatorWithDelay() local
190 animator.setDuration(frames.length * 1000 / 60); in createFrameAnimatorWithDelay()
191 animator.setInterpolator(null); in createFrameAnimatorWithDelay()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonView.java291 ValueAnimator animator = getAnimatorToRadius(circleRadius); in setCircleRadius() local
296 animator.setInterpolator(interpolator); in setCircleRadius()
304 animator.setDuration(duration); in setCircleRadius()
305 animator.start(); in setCircleRadius()
331 ValueAnimator animator = ValueAnimator.ofFloat(this.circleRadius, circleRadius); in getAnimatorToRadius() local
332 circleAnimator = animator; in getAnimatorToRadius()
335 animator.addUpdateListener( in getAnimatorToRadius()
344 animator.addListener(circleEndListener); in getAnimatorToRadius()
345 return animator; in getAnimatorToRadius()
348 private void cancelAnimator(Animator animator) { in cancelAnimator() argument
[all …]
DSwipeButtonHelper.java267 ValueAnimator animator = getAnimatorToRadius(right, hintGrowAmount); in startHintAnimationPhase1() local
268 if (animator == null) { in startHintAnimationPhase1()
274 animator.addListener( in startHintAnimationPhase1()
296 animator.setInterpolator(Interpolators.LINEAR_OUT_SLOW_IN); in startHintAnimationPhase1()
297 animator.setDuration(HINT_PHASE1_DURATION); in startHintAnimationPhase1()
298 animator.start(); in startHintAnimationPhase1()
299 swipeAnimator = animator; in startHintAnimationPhase1()
306 ValueAnimator animator = getAnimatorToRadius(right, 0); in startUnlockHintAnimationPhase2() local
307 if (animator == null) { in startUnlockHintAnimationPhase2()
313 animator.addListener( in startUnlockHintAnimationPhase2()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionUtils.java41 ObjectAnimator animator = new ObjectAnimator(); in createActivityFadeInAnimator() local
42 animator.setPropertyName("alpha"); in createActivityFadeInAnimator()
44 animator.setFloatValues(startAlpha.getFloat(), endAlpha.getFloat()); in createActivityFadeInAnimator()
46 animator.setIntValues(Float.valueOf(startAlpha.getFloat() * 255).intValue(), in createActivityFadeInAnimator()
49 animator.setDuration(res.getInteger(R.integer.alpha_activity_in_bkg_duration)); in createActivityFadeInAnimator()
50 animator.setStartDelay(res.getInteger(R.integer.alpha_activity_in_bkg_delay)); in createActivityFadeInAnimator()
51 return animator; in createActivityFadeInAnimator()
61 ObjectAnimator animator = new ObjectAnimator(); in createActivityFadeOutAnimator() local
62 animator.setPropertyName("alpha"); in createActivityFadeOutAnimator()
64 animator.setFloatValues(startAlpha.getFloat(), endAlpha.getFloat()); in createActivityFadeOutAnimator()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintLocationAnimationView.java125 ValueAnimator animator = ValueAnimator.ofFloat(0, mMaxPulseRadius); in startRadiusAnimation() local
126 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startRadiusAnimation()
133 animator.addListener(new AnimatorListenerAdapter() { in startRadiusAnimation()
150 animator.setDuration(1000); in startRadiusAnimation()
151 animator.setInterpolator(mLinearOutSlowInInterpolator); in startRadiusAnimation()
152 animator.start(); in startRadiusAnimation()
153 mRadiusAnimator = animator; in startRadiusAnimation()
158 ValueAnimator animator = ValueAnimator.ofFloat(MAX_PULSE_ALPHA, 0f); in startAlphaAnimation() local
159 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startAlphaAnimation()
166 animator.addListener(new AnimatorListenerAdapter() { in startAlphaAnimation()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintLocationAnimationView.java125 ValueAnimator animator = ValueAnimator.ofFloat(0, mMaxPulseRadius); in startRadiusAnimation() local
126 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startRadiusAnimation()
133 animator.addListener(new AnimatorListenerAdapter() { in startRadiusAnimation()
150 animator.setDuration(1000); in startRadiusAnimation()
151 animator.setInterpolator(mLinearOutSlowInInterpolator); in startRadiusAnimation()
152 animator.start(); in startRadiusAnimation()
153 mRadiusAnimator = animator; in startRadiusAnimation()
158 ValueAnimator animator = ValueAnimator.ofFloat(MAX_PULSE_ALPHA, 0f); in startAlphaAnimation() local
159 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startAlphaAnimation()
166 animator.addListener(new AnimatorListenerAdapter() { in startAlphaAnimation()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/utils/
DFlingAnimationUtils.java64 public void apply(Animator animator, float currValue, float endValue, float velocity) { in apply() argument
65 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
78 ViewPropertyAnimator animator, float currValue, float endValue, float velocity) { in apply() argument
79 apply(animator, currValue, endValue, velocity, Math.abs(endValue - currValue)); in apply()
94 Animator animator, float currValue, float endValue, float velocity, float maxDistance) { in apply() argument
96 animator.setDuration(properties.duration); in apply()
97 animator.setInterpolator(properties.interpolator); in apply()
112 ViewPropertyAnimator animator, in apply() argument
118 animator.setDuration(properties.duration); in apply()
119 animator.setInterpolator(properties.interpolator); in apply()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DAnimatorPlaybackController.java237 private void dispatchOnStartRecursively(Animator animator) { in dispatchOnStartRecursively() argument
238 List<AnimatorListener> listeners = animator instanceof SpringObjectAnimator in dispatchOnStartRecursively()
239 ? nonNullList(((SpringObjectAnimator) animator).getObjectAnimatorListeners()) in dispatchOnStartRecursively()
240 : nonNullList(animator.getListeners()); in dispatchOnStartRecursively()
243 l.onAnimationStart(animator); in dispatchOnStartRecursively()
246 if (animator instanceof AnimatorSet) { in dispatchOnStartRecursively()
247 for (Animator anim : nonNullList(((AnimatorSet) animator).getChildAnimations())) { in dispatchOnStartRecursively()
268 private void dispatchOnCancelRecursively(Animator animator) { in dispatchOnCancelRecursively() argument
269 for (AnimatorListener l : nonNullList(animator.getListeners())) { in dispatchOnCancelRecursively()
270 l.onAnimationCancel(animator); in dispatchOnCancelRecursively()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DSimpleScrollAdapterTransform.java61 int distanceFromCenter, Animator animator, View child) { in applyTransformationRecursive() argument
62 if (animator instanceof AnimatorSet) { in applyTransformationRecursive()
63 ArrayList<Animator> children = ((AnimatorSet) animator).getChildAnimations(); in applyTransformationRecursive()
67 } else if (animator instanceof ValueAnimator) { in applyTransformationRecursive()
68 ValueAnimator valueAnim = ((ValueAnimator) animator); in applyTransformationRecursive()
79 private void initializeTransformationRecursive(Animator animator, long defaultDuration) { in initializeTransformationRecursive() argument
80 long duration = animator.getDuration(); in initializeTransformationRecursive()
84 if (animator instanceof AnimatorSet) { in initializeTransformationRecursive()
85 ArrayList<Animator> children = ((AnimatorSet) animator).getChildAnimations(); in initializeTransformationRecursive()
89 } else if (animator instanceof ValueAnimator) { in initializeTransformationRecursive()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DAnimationManager.java68 public void onAnimationStart(Animator animator) { in startCaptureAnimation()
73 public void onAnimationEnd(Animator animator) { in startCaptureAnimation()
78 public void onAnimationCancel(Animator animator) { in startCaptureAnimation()
83 public void onAnimationRepeat(Animator animator) { in startCaptureAnimation()
101 public void onAnimationStart(Animator animator) { in startCaptureAnimation()
107 public void onAnimationEnd(Animator animator) { in startCaptureAnimation()
118 public void onAnimationCancel(Animator animator) { in startCaptureAnimation()
123 public void onAnimationRepeat(Animator animator) { in startCaptureAnimation()
145 public void onAnimationStart(Animator animator) { in startFlashAnimation()
150 public void onAnimationEnd(Animator animator) { in startFlashAnimation()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DMenuLayoutManager.java588 ObjectAnimator animator = in setSelectedPositionSmooth() local
591 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
593 animators.add(animator); in setSelectedPositionSmooth()
613 animator = in setSelectedPositionSmooth()
616 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
617 animators.add(animator); in setSelectedPositionSmooth()
641 ObjectAnimator animator = in setSelectedPositionSmooth() local
644 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
645 animators.add(animator); in setSelectedPositionSmooth()
697 public void onAnimationEnd(Animator animator) { in setSelectedPositionSmooth()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DAnimatedCircleDrawable.java89 final ValueAnimator animator = in animateToSmallRadius() local
91 animator.setDuration(CIRCLE_ANIM_DURATION_MS); in animateToSmallRadius()
92 animator.setInterpolator(Gusterpolator.INSTANCE); in animateToSmallRadius()
93 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in animateToSmallRadius()
99 animator.start(); in animateToSmallRadius()
103 final ValueAnimator animator = in animateToFullSize() local
105 animator.setDuration(CIRCLE_ANIM_DURATION_MS); in animateToFullSize()
106 animator.setInterpolator(Gusterpolator.INSTANCE); in animateToFullSize()
107 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in animateToFullSize()
113 animator.start(); in animateToFullSize()
/packages/apps/Dialer/java/com/android/dialer/app/widget/
DActionBarController.java52 private ValueAnimator animator; field in ActionBarController
129 if (animator != null && animator.isRunning()) { in slideActionBar()
130 animator.cancel(); in slideActionBar()
131 animator.removeAllUpdateListeners(); in slideActionBar()
134 animator = slideUp ? ValueAnimator.ofFloat(0, 1) : ValueAnimator.ofFloat(1, 0); in slideActionBar()
135 animator.addUpdateListener( in slideActionBar()
140 animator.start(); in slideActionBar()
/packages/apps/Dialer/java/com/android/dialer/main/impl/toolbar/
DSearchBarView.java122 ValueAnimator animator = ValueAnimator.ofFloat(EXPAND_MARGIN_FRACTION_START, 0f); in expand() local
123 animator.addUpdateListener(animation -> setMargins((Float) animation.getAnimatedValue())); in expand()
124 animator.setDuration(duration); in expand()
125 animator.addListener( in expand()
148 animator.start(); in expand()
159 ValueAnimator animator = ValueAnimator.ofFloat(0f, EXPAND_MARGIN_FRACTION_START); in collapse() local
160 animator.addUpdateListener(animation -> setMargins((Float) animation.getAnimatedValue())); in collapse()
161 animator.setDuration(duration); in collapse()
163 animator.addListener( in collapse()
180 animator.start(); in collapse()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/setup/
DDeviceNameFlowStartActivity.java47 Animator animator = movingForward in onCreate() local
50 animator.setTarget(getWindow().getDecorView()); in onCreate()
51 animator.start(); in onCreate()
57 Animator animator = mResultOk in finish() local
60 animator.setTarget(getWindow().getDecorView()); in finish()
61 animator.addListener(new Animator.AnimatorListener() { in finish()
77 animator.start(); in finish()
/packages/apps/TV/src/com/android/tv/guide/
DProgramGuide.java380 R.animator.program_guide_side_panel_enter_full, in ProgramGuide()
382 R.animator.program_guide_table_enter_full); in ProgramGuide()
398 R.animator.program_guide_side_panel_enter_partial, in ProgramGuide()
400 R.animator.program_guide_table_enter_partial); in ProgramGuide()
422 R.animator.program_guide_side_panel_exit, in ProgramGuide()
424 R.animator.program_guide_table_exit); in ProgramGuide()
439 R.animator.program_guide_side_panel_exit, in ProgramGuide()
441 R.animator.program_guide_table_exit); in ProgramGuide()
457 R.animator.program_guide_side_panel_hide, in ProgramGuide()
458 R.animator.program_guide_side_panel_grid_fade_out, in ProgramGuide()
[all …]
/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java751 Animator animator = in onCreateEnterAnimation() local
753 getActivity(), R.animator.onboarding_welcome_cloud_enter); in onCreateEnterAnimation()
754 animator.setStartDelay(START_DELAY_CLOUD_MS); in onCreateEnterAnimation()
755 animator.setTarget(view); in onCreateEnterAnimation()
756 animators.add(animator); in onCreateEnterAnimation()
760 animator = in onCreateEnterAnimation()
762 getActivity(), R.animator.onboarding_welcome_cloud_enter); in onCreateEnterAnimation()
763 animator.setStartDelay(START_DELAY_CLOUD_MS); in onCreateEnterAnimation()
764 animator.setTarget(view); in onCreateEnterAnimation()
765 animators.add(animator); in onCreateEnterAnimation()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyPreviewDrawParams.java162 final Animator animator = AnimatorInflater.loadAnimator( in createShowUpAnimator() local
164 animator.setTarget(target); in createShowUpAnimator()
165 animator.setInterpolator(DECELERATE_INTERPOLATOR); in createShowUpAnimator()
166 return animator; in createShowUpAnimator()
182 final Animator animator = AnimatorInflater.loadAnimator( in createDismissAnimator() local
184 animator.setTarget(target); in createDismissAnimator()
185 animator.setInterpolator(ACCELERATE_INTERPOLATOR); in createDismissAnimator()
186 return animator; in createDismissAnimator()
/packages/apps/PermissionController/src/android/support/wearable/view/
DSimpleAnimatorListener.java33 public void onAnimationCancel(Animator animator) { in onAnimationCancel() argument
38 public void onAnimationEnd(Animator animator) { in onAnimationEnd() argument
40 onAnimationComplete(animator); in onAnimationEnd()
45 public void onAnimationRepeat(Animator animator) { in onAnimationRepeat() argument
49 public void onAnimationStart(Animator animator) { in onAnimationStart() argument
56 public void onAnimationComplete(Animator animator) { in onAnimationComplete() argument
/packages/apps/Camera2/src/com/android/camera/app/
DFilmstripBottomPanel.java275 ObjectAnimator animator = ObjectAnimator in show() local
277 animator.setDuration(ANIM_DURATION); in show()
278 animator.setInterpolator(Gusterpolator.INSTANCE); in show()
279 animator.addListener(new AnimatorListenerAdapter() { in show()
286 animator.start(); in show()
292 ObjectAnimator animator = ObjectAnimator in hide() local
294 animator.setDuration(ANIM_DURATION); in hide()
295 animator.setInterpolator(Gusterpolator.INSTANCE); in hide()
297 animator.start(); in hide()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java349 final ObjectAnimator animator = getSwipeTranslationXAnimator( in animateDismiss() local
351 animator.addListener(new AnimatorListenerAdapter() { in animateDismiss()
357 animator.start(); in animateDismiss()
375 final ObjectAnimator animator = getSwipeTranslationXAnimator( in animateRestore() local
377 animator.addListener(new AnimatorListenerAdapter() { in animateRestore()
383 animator.start(); in animateRestore()
392 final ObjectAnimator animator = in getSwipeTranslationXAnimator() local
394 animator.setDuration(duration); in getSwipeTranslationXAnimator()
395 animator.setInterpolator(interpolator); in getSwipeTranslationXAnimator()
396 return animator; in getSwipeTranslationXAnimator()

123456