Home
last modified time | relevance | path

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

1234

/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.java48 final ViewPropertyAnimator animator = fadeOut.animate(); in fadeOut() local
49 animator.cancel(); in fadeOut()
50 animator in fadeOut()
73 animator.setDuration(durationMs); in fadeOut()
75 animator.start(); in fadeOut()
85 final ViewPropertyAnimator animator = fadeIn.animate(); in fadeIn() local
86 animator.cancel(); in fadeIn()
88 animator.setStartDelay(delay); in fadeIn()
89 animator in fadeIn()
115 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/Car/Radio/src/com/android/car/radio/
DRadioAnimationManager.java122 animator -> mRadioCard.setRadius((int) animator.getAnimatedValue())); in playExitAnimation()
188 public void onAnimationStart(Animator animator) { in playExitAnimation()
193 public void onAnimationEnd(Animator animator) {} in playExitAnimation()
196 public void onAnimationCancel(Animator animator) {} in playExitAnimation()
199 public void onAnimationRepeat(Animator animator) {} in playExitAnimation()
210 public void onAnimationStart(Animator animator) {} in playExitAnimation()
213 public void onAnimationEnd(Animator animator) { in playExitAnimation()
218 public void onAnimationCancel(Animator animator) {} in playExitAnimation()
221 public void onAnimationRepeat(Animator animator) {} in playExitAnimation()
230 public void onAnimationStart(Animator animator) { in playExitAnimation()
[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/TV/common/src/com/android/tv/common/ui/setup/animation/
DSetupAnimationHelper.java152 public static Animator applyAnimationTimeScale(Animator animator) { in applyAnimationTimeScale() argument
153 if (animator instanceof AnimatorSet) { in applyAnimationTimeScale()
154 for (Animator child : ((AnimatorSet) animator).getChildAnimations()) { in applyAnimationTimeScale()
158 if (animator.getDuration() > 0) { in applyAnimationTimeScale()
159 animator.setDuration((long) (animator.getDuration() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
161 animator.setStartDelay((long) (animator.getStartDelay() * ANIMATION_TIME_SCALE)); in applyAnimationTimeScale()
162 return animator; in applyAnimationTimeScale()
206 ObjectAnimator animator = ObjectAnimator.ofInt(imageView, "imageResource", frames); in createFrameAnimatorWithDelay() local
208 animator.setDuration(frames.length * 1000 / 60); in createFrameAnimatorWithDelay()
209 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.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/TV/src/com/android/tv/menu/
DMenuLayoutManager.java510 ObjectAnimator animator = createAlphaAnimator(currentTitleView, 0.0f, 1.0f, in setSelectedPositionSmooth() local
512 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
514 animators.add(animator); in setSelectedPositionSmooth()
526 animator = createAlphaAnimator(currentContentsView, 0.0f, 1.0f, mFastOutLinearIn) in setSelectedPositionSmooth()
528 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
529 animators.add(animator); in setSelectedPositionSmooth()
544 ObjectAnimator animator = createAlphaAnimator(currentContentsView, 0.0f, 1.0f, in setSelectedPositionSmooth() local
546 animator.setStartDelay(mOldContentsFadeOutDuration); in setSelectedPositionSmooth()
547 animators.add(animator); in setSelectedPositionSmooth()
587 public void onAnimationEnd(Animator animator) { in setSelectedPositionSmooth()
[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/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/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/guide/
DProgramGuide.java304 R.animator.program_guide_side_panel_enter_full, in ProgramGuide()
306 R.animator.program_guide_table_enter_full); in ProgramGuide()
309 R.animator.program_guide_side_panel_enter_partial, in ProgramGuide()
311 R.animator.program_guide_table_enter_partial); in ProgramGuide()
321 R.animator.program_guide_side_panel_exit, in ProgramGuide()
323 R.animator.program_guide_table_exit); in ProgramGuide()
331 R.animator.program_guide_side_panel_exit, in ProgramGuide()
333 R.animator.program_guide_table_exit); in ProgramGuide()
342 R.animator.program_guide_side_panel_hide, in ProgramGuide()
343 R.animator.program_guide_side_panel_grid_fade_out, in ProgramGuide()
[all …]
/packages/apps/TV/src/com/android/tv/onboarding/
DWelcomeFragment.java648 Animator animator = AnimatorInflater.loadAnimator(getActivity(), in onCreateEnterAnimation() local
649 R.animator.onboarding_welcome_cloud_enter); in onCreateEnterAnimation()
650 animator.setStartDelay(START_DELAY_CLOUD_MS); in onCreateEnterAnimation()
651 animator.setTarget(view); in onCreateEnterAnimation()
652 animators.add(animator); in onCreateEnterAnimation()
656 animator = AnimatorInflater.loadAnimator(getActivity(), in onCreateEnterAnimation()
657 R.animator.onboarding_welcome_cloud_enter); in onCreateEnterAnimation()
658 animator.setStartDelay(START_DELAY_CLOUD_MS); in onCreateEnterAnimation()
659 animator.setTarget(view); in onCreateEnterAnimation()
660 animators.add(animator); in onCreateEnterAnimation()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DPinchAnimationManager.java96 ValueAnimator animator = ValueAnimator.ofFloat(currentProgress, toProgress); in animateToProgress() local
97 animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in animateToProgress()
107 animator.addListener(new AnimatorListenerAdapter() { in animateToProgress()
115 animator.setDuration(duration).start(); in animateToProgress()
212 Animator animator = ObjectAnimator.ofFloat(view, View.ALPHA, show ? 1 : 0); in animateShowHideView() local
213 animator.addListener(new AnimationLayerSet(view)); in animateShowHideView()
217 animator.addListener(new AnimatorListenerAdapter() { in animateShowHideView()
233 startAnimator(index, animator, THRESHOLD_ANIM_DURATION); in animateShowHideView()
236 private void startAnimator(int index, Animator animator, long duration) { in startAnimator() argument
240 mAnimators[index] = animator; in startAnimator()
/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/TvSettings/Settings/src/com/android/tv/settings/name/setup/
DDeviceNameFlowStartActivity.java46 Animator animator = movingForward in onCreate() local
49 animator.setTarget(getWindow().getDecorView()); in onCreate()
50 animator.start(); in onCreate()
56 Animator animator = mResultOk in finish() local
59 animator.setTarget(getWindow().getDecorView()); in finish()
60 animator.addListener(new Animator.AnimatorListener() { in finish()
76 animator.start(); in finish()
/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/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/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownTouchHandler.java395 ValueAnimator animator = createProgressAnimator(target); in fling() local
397 flingAnimationUtils.apply(animator, currentProgress, target, velocity); in fling()
399 flingAnimationUtils.applyDismissing(animator, currentProgress, target, velocity, 1); in fling()
405 animator.setDuration(350); in fling()
408 animator.addListener( in fling()
425 progressAnimator = animator; in fling()
426 animator.start(); in fling()
438 ValueAnimator animator = ValueAnimator.ofFloat(currentProgress, targetProgress); in createProgressAnimator() local
439 animator.addUpdateListener( in createProgressAnimator()
446 return animator; in createProgressAnimator()
DTwoButtonMethod.java188 ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in answerCall() local
189 animator.addUpdateListener(this); in answerCall()
190 animator.addListener( in answerCall()
207 animatorSet.play(animator).with(createViewHideAnimation()); in answerCall()
212 ValueAnimator animator = ValueAnimator.ofFloat(0, -1); in rejectCall() local
213 animator.addUpdateListener(this); in rejectCall()
214 animator.addListener( in rejectCall()
231 animatorSet.play(animator).with(createViewHideAnimation()); in rejectCall()
/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

1234