Home
last modified time | relevance | path

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

123

/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.java149 public static Animator applyAnimationTimeScale(Animator animator) { in applyAnimationTimeScale() argument
150 if (animator instanceof AnimatorSet) { in applyAnimationTimeScale()
151 for (Animator child : ((AnimatorSet) animator).getChildAnimations()) { in applyAnimationTimeScale()
155 if (animator.getDuration() > 0) { in applyAnimationTimeScale()
156 animator.setDuration((long) (animator.getDuration() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
158 animator.setStartDelay((long) (animator.getStartDelay() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
159 return animator; in applyAnimationTimeScale()
203 ObjectAnimator animator = ObjectAnimator.ofInt(imageView, "imageResource", frames); in createFrameAnimatorWithDelay() local
205 animator.setDuration(frames.length * 1000 / 60); in createFrameAnimatorWithDelay()
206 animator.setInterpolator(null); in createFrameAnimatorWithDelay()
[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/fingerprint/
DFingerprintLocationAnimationView.java126 ValueAnimator animator = ValueAnimator.ofFloat(0, mMaxPulseRadius); in startRadiusAnimation() local
127 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startRadiusAnimation()
134 animator.addListener(new AnimatorListenerAdapter() { in startRadiusAnimation()
151 animator.setDuration(1000); in startRadiusAnimation()
152 animator.setInterpolator(mLinearOutSlowInInterpolator); in startRadiusAnimation()
153 animator.start(); in startRadiusAnimation()
154 mRadiusAnimator = animator; in startRadiusAnimation()
159 ValueAnimator animator = ValueAnimator.ofFloat(MAX_PULSE_ALPHA, 0f); in startAlphaAnimation() local
160 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in startAlphaAnimation()
167 animator.addListener(new AnimatorListenerAdapter() { in startAlphaAnimation()
[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/DeskClock/src/com/android/deskclock/
DAnimatorUtils.java95 public static void setAnimatedFraction(ValueAnimator animator, float fraction) { in setAnimatedFraction() argument
97 animator.setCurrentFraction(fraction); in setAnimatedFraction()
111 sAnimateValue.invoke(animator, fraction); in setAnimatedFraction()
122 animator.setCurrentPlayTime(Math.round(fraction * animator.getDuration())); in setAnimatedFraction()
126 for (ValueAnimator animator : animators) { in reverse()
127 final float fraction = animator.getAnimatedFraction(); in reverse()
129 animator.reverse(); in reverse()
130 setAnimatedFraction(animator, 1.0f - fraction); in reverse()
136 for (ValueAnimator animator : animators) { in cancel()
137 animator.cancel(); in cancel()
/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/TV/src/com/android/tv/menu/
DMenuLayoutManager.java489 ObjectAnimator animator = createAlphaAnimator(currentTitleView, 0.0f, 1.0f, in setSelectedPositionSmooth() local
491 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
493 animators.add(animator); in setSelectedPositionSmooth()
505 animator = createAlphaAnimator(currentContentsView, 0.0f, 1.0f, mFastOutLinearIn) in setSelectedPositionSmooth()
507 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
508 animators.add(animator); in setSelectedPositionSmooth()
523 ObjectAnimator animator = createAlphaAnimator(currentContentsView, 0.0f, 1.0f, in setSelectedPositionSmooth() local
525 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
526 animators.add(animator); in setSelectedPositionSmooth()
566 public void onAnimationEnd(Animator animator) { in setSelectedPositionSmooth()
[all …]
/packages/apps/PackageInstaller/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/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/TV/src/com/android/tv/guide/
DProgramGuide.java299 R.animator.program_guide_side_panel_enter_full, in ProgramGuide()
301 R.animator.program_guide_table_enter_full); in ProgramGuide()
311 R.animator.program_guide_side_panel_enter_partial, in ProgramGuide()
313 R.animator.program_guide_table_enter_partial); in ProgramGuide()
323 R.animator.program_guide_side_panel_exit, in ProgramGuide()
325 R.animator.program_guide_table_exit); in ProgramGuide()
333 R.animator.program_guide_side_panel_exit, in ProgramGuide()
335 R.animator.program_guide_table_exit); in ProgramGuide()
344 R.animator.program_guide_side_panel_hide, in ProgramGuide()
345 R.animator.program_guide_side_panel_grid_fade_out, in ProgramGuide()
[all …]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DTweener.java37 ObjectAnimator animator; field in Tweener
41 animator = anim; in Tweener()
44 private static void remove(Animator animator) { in remove() argument
48 if (entry.getValue().animator == animator) { in remove()
109 anim = sTweens.get(object).animator; in to()
168 tween.animator.cancel(); in replace()
170 tween.animator.setValues( in replace()
/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/TV/src/com/android/tv/ui/sidepanel/
DSideFragmentManager.java61 mShowAnimator = AnimatorInflater.loadAnimator(mActivity, R.animator.side_panel_enter); in SideFragmentManager()
63 mHideAnimator = AnimatorInflater.loadAnimator(mActivity, R.animator.side_panel_exit); in SideFragmentManager()
114 showEnterAnimation ? R.animator.side_panel_fragment_enter : 0, in show()
115 R.animator.side_panel_fragment_exit, in show()
116 R.animator.side_panel_fragment_pop_enter, in show()
117 R.animator.side_panel_fragment_pop_exit); in show()
198 AnimatorInflater.loadAnimator(mActivity, R.animator.side_panel_exit); in hideSidePanel()
/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java654 Animator animator = AnimatorInflater.loadAnimator(getActivity(), in onCreateEnterAnimation() local
655 R.animator.onboarding_welcome_cloud_enter); in onCreateEnterAnimation()
656 animator.setStartDelay(START_DELAY_CLOUD_MS); in onCreateEnterAnimation()
657 animator.setTarget(view); in onCreateEnterAnimation()
658 animators.add(animator); in onCreateEnterAnimation()
662 animator = AnimatorInflater.loadAnimator(getActivity(), in onCreateEnterAnimation()
663 R.animator.onboarding_welcome_cloud_enter); in onCreateEnterAnimation()
664 animator.setStartDelay(START_DELAY_CLOUD_MS); in onCreateEnterAnimation()
665 animator.setTarget(view); in onCreateEnterAnimation()
666 animators.add(animator); in onCreateEnterAnimation()
[all …]
/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()
/packages/apps/Messaging/src/com/android/messaging/ui/
DSnackBarManager.java299 final ViewPropertyAnimator animator = interaction.animateOnSnackBarShow(snackBar); in animateInteractionsOnShow() local
300 if (animator != null) { in animateInteractionsOnShow()
301 normalizeAnimator(animator); in animateInteractionsOnShow()
311 final ViewPropertyAnimator animator = in animateInteractionsOnDismiss() local
313 if (animator != null) { in animateInteractionsOnDismiss()
314 normalizeAnimator(animator); in animateInteractionsOnDismiss()
320 private ViewPropertyAnimator normalizeAnimator(final ViewPropertyAnimator animator) { in normalizeAnimator() argument
321 return animator in normalizeAnimator()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationMessageBubbleView.java107 public void onAnimationStart(Animator animator) { in kickOffMorphAnimation()
111 public void onAnimationEnd(Animator animator) { in kickOffMorphAnimation()
123 public void onAnimationCancel(Animator animator) { in kickOffMorphAnimation()
127 public void onAnimationRepeat(Animator animator) { in kickOffMorphAnimation()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationViewProgressController.java138 final Animator animator = AnimatorInflater.loadAnimator( in animateDismiss() local
140 animator.setTarget(mBackgroundView); in animateDismiss()
141 animator.addListener(new AnimatorListenerAdapter() { in animateDismiss()
151 animator.start(); in animateDismiss()
/packages/apps/TV/src/com/android/tv/ui/
DKeypadChannelSwitchView.java325 ValueAnimator animator = ValueAnimator.ofInt(mCurrentHeight, targetHeight); in createResizeAnimator() local
326 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in createResizeAnimator()
334 animator.setDuration(mResizeAnimDuration); in createResizeAnimator()
335 animator.addListener(new AnimatorListenerAdapter() { in createResizeAnimator()
337 public void onAnimationEnd(Animator animator) { in createResizeAnimator()
341 animator.setInterpolator(mResizeInterpolator); in createResizeAnimator()
342 return animator; in createResizeAnimator()
DTvTransitionManager.java158 R.animator.channel_banner_enter); in initIfNeeded()
160 R.animator.channel_banner_exit); in initIfNeeded()
307 Animator animator = mAnimator.clone(); in createAnimator() local
308 animator.setTarget(sceneRoot); in createAnimator()
309 animator.addListener(new HardwareLayerAnimatorListenerAdapter(sceneRoot)); in createAnimator()
310 return animator; in createAnimator()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallAnimationUtils.java128 ObjectAnimator animator = crossFadeDrawable.getAnimator(); in startCrossFade() local
130 animator.setDuration(ANIMATION_DURATION); in startCrossFade()
131 animator.addListener(new AnimatorListenerAdapter() { in startCrossFade()
154 animator.start(); in startCrossFade()
DCircularRevealFragment.java130 final Animator animator = getRevealAnimator(mTouchPoint); in startOutgoingAnimation()
131 if (animator != null) { in startOutgoingAnimation()
132 animator.addListener(new AnimatorListenerAdapter() { in startOutgoingAnimation()
141 animator.start(); in startOutgoingAnimation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java289 final ObjectAnimator animator = (ObjectAnimator)AnimatorInflater.loadAnimator( in loadObjectAnimator() local
291 if (animator != null) { in loadObjectAnimator()
292 animator.setTarget(target); in loadObjectAnimator()
294 return animator; in loadObjectAnimator()
784 final ObjectAnimator animator = mLanguageOnSpacebarFadeoutAnimator; in startDisplayLanguageOnSpacebar() local
785 if (animator == null) { in startDisplayLanguageOnSpacebar()
791 if (animator.isStarted()) { in startDisplayLanguageOnSpacebar()
792 animator.cancel(); in startDisplayLanguageOnSpacebar()
794 animator.start(); in startDisplayLanguageOnSpacebar()
796 if (!animator.isStarted()) { in startDisplayLanguageOnSpacebar()

123