Home
last modified time | relevance | path

Searched refs:anim (Results 1 – 25 of 153) sorted by relevance

1234567

/aosp14/system/core/healthd/
H A DAnimationParser_test.cpp113 animation anim; in TEST() local
123 animation anim; in TEST() local
133 animation anim; in TEST() local
144 animation anim; in TEST() local
159 animation anim; in TEST() local
163 EXPECT_EQ(5, anim.num_cycles); in TEST()
164 EXPECT_EQ(1, anim.first_frame_repeats); in TEST()
167 EXPECT_EQ(11, anim.text_clock.pos_x); in TEST()
168 EXPECT_EQ(12, anim.text_clock.pos_y); in TEST()
169 EXPECT_EQ(13, anim.text_clock.color_r); in TEST()
[all …]
H A Dhealthd_draw.cpp58 HealthdDraw::HealthdDraw(animation* anim) in HealthdDraw() argument
72 if (!anim->text_clock.font_file.empty() && in HealthdDraw()
73 (res = gr_init_font(anim->text_clock.font_file.c_str(), &anim->text_clock.font)) < 0) { in HealthdDraw()
76 if (!anim->text_percent.font_file.empty() && in HealthdDraw()
77 (res = gr_init_font(anim->text_percent.font_file.c_str(), &anim->text_percent.font)) < 0) { in HealthdDraw()
210 int cur_level = anim->cur_level; in draw_percent()
211 if (anim->cur_status == BATTERY_STATUS_FULL) { in draw_percent()
234 const animation::frame& frame = anim->frames[anim->cur_frame]; in draw_battery()
236 if (anim->num_frames != 0) { in draw_battery()
241 draw_clock(anim); in draw_battery()
[all …]
H A DAnimationParser.cpp82 bool parse_animation_desc(const std::string& content, animation* anim) { in parse_animation_desc() argument
98 if (sscanf(rest, "%d %d %n%*s%n", &anim->num_cycles, &anim->first_frame_repeats, in parse_animation_desc()
104 anim->animation_file.assign(&rest[start], end - start); in parse_animation_desc()
107 anim->fail_file.assign(rest); in parse_animation_desc()
109 if (!parse_text_field(rest, &anim->text_clock)) { in parse_animation_desc()
114 if (!parse_text_field(rest, &anim->text_percent)) { in parse_animation_desc()
127 if (anim->animation_file.empty() || frames.empty()) { in parse_animation_desc()
133 anim->num_frames = frames.size(); in parse_animation_desc()
134 anim->frames = new animation::frame[frames.size()]; in parse_animation_desc()
135 std::copy(frames.begin(), frames.end(), anim->frames); in parse_animation_desc()
H A Dhealthd_draw.h44 static std::unique_ptr<HealthdDraw> Create(animation *anim);
60 virtual void draw_battery(const animation* anim);
62 virtual void draw_clock(const animation* anim);
64 virtual void draw_percent(const animation* anim);
89 HealthdDraw(animation* anim);
/aosp14/frameworks/base/libs/hwui/
H A DRootRenderNode.cpp28 explicit FinishAndInvokeListener(PropertyValuesAnimatorSet* anim) : mAnimator(anim) { in FinishAndInvokeListener() argument
29 mListener = anim->getOneShotListener(); in FinishAndInvokeListener()
30 mRequestId = anim->getRequestId(); in FinishAndInvokeListener()
54 for (auto& anim : mRunningVDAnimators) { in prepareTree() local
94 anim->clearOneShotListener(); in detachAnimators()
96 for (auto& anim : mPausedVDAnimators) { in detachAnimators() local
97 anim->clearOneShotListener(); in detachAnimators()
207 anim->pushStaging(*context); in pushStagingVectorDrawableAnimators()
224 if (anim->isInfinite() || !anim->isRunning()) { in detachVectorDrawableAnimator()
231 if (anim->getOneShotListener()) { in detachVectorDrawableAnimator()
[all …]
/aosp14/frameworks/base/core/java/android/animation/
H A DLayoutTransition.java853 anim.setTarget(child); in setupChangeAnimation()
1022 anim.start(); in startChangingAnimations()
1038 anim.start(); in endChangingAnimations()
1039 anim.end(); in endChangingAnimations()
1081 anim.cancel(); in cancel()
1089 anim.end(); in cancel()
1097 anim.end(); in cancel()
1171 anim.setTarget(child); in runAppearingTransition()
1194 anim.start(); in runAppearingTransition()
1224 anim.setTarget(child); in runDisappearingTransition()
[all …]
H A DValueAnimator.java436 return anim; in ofInt()
454 return anim; in ofArgb()
471 return anim; in ofFloat()
484 anim.setValues(values); in ofPropertyValuesHolder()
485 return anim; in ofPropertyValuesHolder()
514 return anim; in ofObject()
1658 anim.mStarted = false; in clone()
1660 anim.mPaused = false; in clone()
1662 anim.mStartTime = -1; in clone()
1665 anim.mPauseTime = -1; in clone()
[all …]
H A DObjectAnimator.java246 return anim; in ofInt()
292 return anim; in ofInt()
445 return anim; in ofFloat()
492 return anim; in ofFloat()
615 return anim; in ofObject()
671 return anim; in ofObject()
755 anim.setTarget(target); in ofPropertyValuesHolder()
756 anim.setValues(values); in ofPropertyValuesHolder()
757 return anim; in ofPropertyValuesHolder()
856 if (anim == null) { in shouldAutoCancel()
[all …]
H A DAnimatorSet.java404 if (anim != null) {
1477 anim.mStarted = false;
1479 anim.mFirstFrame = -1;
1480 anim.mLastEventId = -1;
1481 anim.mPaused = false;
1482 anim.mPauseTime = -1;
1484 anim.mSelfPulse = true;
1501 anim.mReversing = false;
1520 anim.mDelayAnim = (ValueAnimator) anim.mRootNode.mAnimation;
1543 return anim;
[all …]
H A DAnimatorInflater.java428 anim.setValues(pvh); in parseAnimatorFromTypeArray()
431 anim.setDuration(duration); in parseAnimatorFromTypeArray()
435 anim.setRepeatCount( in parseAnimatorFromTypeArray()
439 anim.setRepeatMode( in parseAnimatorFromTypeArray()
652 Animator anim = null; in createAnimatorFromXml() local
689 if (values != null && anim != null && (anim instanceof ValueAnimator)) { in createAnimatorFromXml()
716 return anim; in createAnimatorFromXml()
1016 return anim; in loadObjectAnimator()
1041 if (anim != null) { in loadAnimator()
1051 if (anim == null) { in loadAnimator()
[all …]
/aosp14/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java76 anim.setDuration(duration); in addAnimTo()
77 anim.setStartDelay(delay); in addAnimTo()
78 anim.setInterpolator(EASE_OUT_INTERPOLATOR); in addAnimTo()
79 this.addAnimation(anim, replace); in addAnimTo()
81 return anim; in addAnimTo()
116 if (anim != null) in addAnimation()
117 mAnimators.add(anim); in addAnimation()
118 mNeedToStart.add(anim); in addAnimation()
150 anim.addUpdateListener(listener); in startAnimations()
151 anim.addListener(this); in startAnimations()
[all …]
H A DAbsActionBarView.java207 ObjectAnimator anim = ObjectAnimator.ofFloat(this, View.ALPHA, 1); in setupAnimatorToVisibility() local
208 anim.setDuration(duration); in setupAnimatorToVisibility()
209 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility()
215 set.play(anim).with(splitAnim); in setupAnimatorToVisibility()
219 return anim; in setupAnimatorToVisibility()
223 anim.setDuration(duration); in setupAnimatorToVisibility()
224 anim.setInterpolator(sAlphaInterpolator); in setupAnimatorToVisibility()
230 set.play(anim).with(splitAnim); in setupAnimatorToVisibility()
234 return anim; in setupAnimatorToVisibility()
240 Animator anim = setupAnimatorToVisibility(visibility, FADE_DURATION); in animateToVisibility() local
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockIcon.java227 R.anim.lock_to_error,
228 R.anim.lock_unlock,
229 R.anim.lock_lock,
230 R.anim.lock_scanning
234 R.anim.lock_unlock_circular,
235 R.anim.lock_lock_circular,
240 R.anim.lock_unlock_filled,
241 R.anim.lock_lock_filled,
242 R.anim.lock_scanning_filled
246 R.anim.lock_unlock_rounded,
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DRenderNodeAnimatorTest.java61 RenderNodeAnimator anim = new RenderNodeAnimator(RenderNodeAnimator.ALPHA, 0.5f); in testAlphaTransformationInfo() local
62 anim.setTarget(view); in testAlphaTransformationInfo()
64 anim.start(); // should initialize mTransformationInfo in testAlphaTransformationInfo()
83 RenderNodeAnimator anim = new RenderNodeAnimator(0, 0, 10f, 30f); in testViewDetachCancelsRenderNodeAnimator()
84 anim.setDuration(10000); in testViewDetachCancelsRenderNodeAnimator()
85 anim.setTarget(view); in testViewDetachCancelsRenderNodeAnimator()
86 anim.addListener(new AnimatorListenerAdapter() { in testViewDetachCancelsRenderNodeAnimator()
95 anim.start(); in testViewDetachCancelsRenderNodeAnimator()
/aosp14/frameworks/base/core/java/android/view/animation/
H A DAnimationUtils.java160 Animation anim = null; in createAnimationFromXml() local
176 anim = new AnimationSet(c, attrs); in createAnimationFromXml()
177 createAnimationFromXml(c, parser, (AnimationSet)anim, attrs); in createAnimationFromXml()
179 anim = new AlphaAnimation(c, attrs); in createAnimationFromXml()
181 anim = new ScaleAnimation(c, attrs); in createAnimationFromXml()
183 anim = new RotateAnimation(c, attrs); in createAnimationFromXml()
185 anim = new TranslateAnimation(c, attrs); in createAnimationFromXml()
187 anim = new ClipRectAnimation(c, attrs); in createAnimationFromXml()
189 anim = new ExtendAnimation(c, attrs); in createAnimationFromXml()
195 parent.addAnimation(anim); in createAnimationFromXml()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowContainerThumbnail.java109 void startAnimation(Transaction t, Animation anim) { in startAnimation() argument
110 startAnimation(t, anim, null /* position */); in startAnimation()
113 void startAnimation(Transaction t, Animation anim, Point position) { in startAnimation() argument
114 anim.restrictDuration(MAX_ANIMATION_DURATION); in startAnimation()
115 anim.scaleCurrentDuration(mWindowContainer.mWmService.getTransitionAnimationScaleLocked()); in startAnimation()
117 new WindowAnimationSpec(anim, position, in startAnimation()
127 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden) { in startAnimation() argument
128 mSurfaceAnimator.startAnimation(t, anim, hidden, ANIMATION_TYPE_RECENTS); in startAnimation()
131 private void onAnimationFinished(@AnimationType int type, AnimationAdapter anim) { in onAnimationFinished() argument
H A DSurfaceAnimationRunner.java247 if (anim != null) { in onAnimationCancelled()
250 anim.mCancelled = true; in onAnimationCancelled()
253 anim.mAnim.cancel(); in onAnimationCancelled()
273 anim.overrideDurationScale(1.0f); in startAnimationLocked()
274 anim.setDuration(a.mAnimSpec.getDuration()); in startAnimationLocked()
275 anim.addUpdateListener(animation -> { in startAnimationLocked()
278 final long duration = anim.getDuration(); in startAnimationLocked()
291 anim.addListener(new AnimatorListenerAdapter() { in startAnimationLocked()
317 a.mAnim = anim; in startAnimationLocked()
320 anim.start(); in startAnimationLocked()
[all …]
H A DSurfaceAnimator.java112 return (type, anim) -> { in getFinishedCallback()
120 if (anim != mAnimation) { in getFinishedCallback()
126 if (anim != mAnimation) { in getFinishedCallback()
133 staticAnimationFinishedCallback.onAnimationFinished(type, anim); in getFinishedCallback()
136 animationFinishCallback.onAnimationFinished(type, anim); in getFinishedCallback()
142 || anim.shouldDeferAnimationFinish(resetAndInvokeFinish))) { in getFinishedCallback()
166 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden,
172 mAnimation = anim;
211 void startAnimation(Transaction t, AnimationAdapter anim, boolean hidden,
213 startAnimation(t, anim, hidden, type, null /* animationFinishedCallback */,
[all …]
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DCirclePropActivity.java126 RenderNodeAnimator anim = mRunningAnimations.get(i); in performClick() local
127 anim.setDuration(1000); in performClick()
128 anim.setTarget(this); in performClick()
131 anim.setStartValue(64.0f); in performClick()
132 anim.setStartDelay(anim.getDuration()); in performClick()
134 anim.start(); in performClick()
H A DRippleActivity.java159 RenderNodeAnimator anim = mRunningAnimations.get(i); in performClick() local
160 anim.setDuration(DURATION); in performClick()
161 anim.setTarget(this); in performClick()
164 anim.setStartValue(64.0f); in performClick()
165 anim.setStartDelay(anim.getDuration()); in performClick()
167 anim.start(); in performClick()
/aosp14/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DHitRectBug.java63 ObjectAnimator anim = ObjectAnimator.ofFloat(mImageView, View.ROTATION, 0, 360); in TestDrawingView() local
64 anim.setRepeatCount(ValueAnimator.INFINITE); in TestDrawingView()
65 anim.setDuration(5000); in TestDrawingView()
66 anim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { in TestDrawingView()
72 anim.start(); in TestDrawingView()
/aosp14/frameworks/base/core/java/android/transition/
H A DChangeText.java190 Animator anim; in createAnimator() local
193 anim = ValueAnimator.ofFloat(0, 1); in createAnimator()
194 anim.addListener(new AnimatorListenerAdapter() { in createAnimator()
256 anim = new AnimatorSet(); in createAnimator()
257 ((AnimatorSet) anim).playSequentially(outAnim, inAnim); in createAnimator()
259 anim = outAnim; in createAnimator()
262 anim = inAnim; in createAnimator()
302 Log.d(LOG_TAG, "createAnimator returning " + anim); in createAnimator()
304 return anim; in createAnimator()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DDraggableConstraintLayout.java244 ValueAnimator anim = createSwipeDismissAnimation(); in onTouch() local
245 mCallbacks.onSwipeDismissInitiated(anim); in onTouch()
246 dismiss(anim); in onTouch()
344 ValueAnimator anim = ValueAnimator.ofFloat(0, 1); in createSwipeDismissAnimation() local
362 anim.addUpdateListener(animation -> { in createSwipeDismissAnimation()
368 anim.setDuration((long) (Math.abs(distance / velocity))); in createSwipeDismissAnimation()
369 return anim; in createSwipeDismissAnimation()
373 ValueAnimator anim = ValueAnimator.ofFloat(0, 1); in createSwipeReturnAnimation() local
377 anim.addUpdateListener(animation -> { in createSwipeReturnAnimation()
383 return anim; in createSwipeReturnAnimation()
/aosp14/frameworks/base/core/java/com/android/internal/policy/
H A DTransitionAnimation.java475 final Animation anim; in createClipRevealAnimationLockedCompat() local
553 anim = set; in createClipRevealAnimationLockedCompat()
578 anim.setDuration(duration); in createClipRevealAnimationLockedCompat()
579 anim.setFillAfter(true); in createClipRevealAnimationLockedCompat()
581 return anim; in createClipRevealAnimationLockedCompat()
1090 && anim == R.anim.activity_open_enter) { in updateToTranslucentAnimIfNeeded()
1094 && anim == R.anim.activity_close_exit) { in updateToTranslucentAnimIfNeeded()
1097 return anim; in updateToTranslucentAnimIfNeeded()
1101 if (anim == R.anim.activity_open_enter) { in updateToTranslucentAnimIfNeeded()
1104 if (anim == R.anim.activity_close_exit) { in updateToTranslucentAnimIfNeeded()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
H A DScreenRotationAnimation.java265 : R.anim.rotation_animation_xfade_exit); in buildAnimation()
267 R.anim.rotation_animation_enter); in buildAnimation()
269 R.anim.screen_rotate_alpha); in buildAnimation()
276 R.anim.screen_rotate_0_exit); in buildAnimation()
278 R.anim.rotation_animation_enter); in buildAnimation()
282 R.anim.screen_rotate_plus_90_exit); in buildAnimation()
284 R.anim.screen_rotate_plus_90_enter); in buildAnimation()
288 R.anim.screen_rotate_180_exit); in buildAnimation()
290 R.anim.screen_rotate_180_enter); in buildAnimation()
294 R.anim.screen_rotate_minus_90_exit); in buildAnimation()
[all …]

1234567