Home
last modified time | relevance | path

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

/cts/tests/tests/animation/src/android/animation/cts/
DCreationTest.java65 ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in testValueAnimatorCreation() local
66 verifyValues(animator, 0, 1); in testValueAnimatorCreation()
72 ValueAnimator animator = (ValueAnimator) in testValueAnimatorResourceCreation() local
73 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator); in testValueAnimatorResourceCreation()
74 verifyValues(animator, 0, 1); in testValueAnimatorResourceCreation()
80 ValueAnimator animator = (ValueAnimator) in testValueAnimatorPvh1() local
81 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator_pvh1); in testValueAnimatorPvh1()
82 verifyValues(animator, 0, 1); in testValueAnimatorPvh1()
88 ValueAnimator animator = (ValueAnimator) in testValueAnimatorPvh2() local
89 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator_pvh2); in testValueAnimatorPvh2()
[all …]
DValueAnimatorTest.java496 ValueAnimator animator = ValueAnimator.ofFloat(0f, 1f); in testGetAnimatedFraction() local
497 assertNotNull(animator); in testGetAnimatedFraction()
498 animator.setDuration(200); in testGetAnimatedFraction()
499 animator.addUpdateListener(new AnimatorUpdateListener() { in testGetAnimatedFraction()
512 animator.addListener(new AnimatorListenerAdapter() { in testGetAnimatedFraction()
519 animator.start(); in testGetAnimatedFraction()
524 assertEquals(1.0f, animator.getAnimatedFraction(), EPSILON); in testGetAnimatedFraction()
537 ValueAnimator animator = ValueAnimator.ofFloat(0f, 1f); in testGetAnimatedValue() local
538 assertNotNull(animator); in testGetAnimatedValue()
540 animator.setInterpolator(myInterpolator); in testGetAnimatedValue()
[all …]
DAnimatorTest.java158 Animator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testEnd() local
159 animator.setDuration(mDuration); in testEnd()
160 ((ObjectAnimator)animator).setRepeatCount(ValueAnimator.INFINITE); in testEnd()
161 animator.setInterpolator(new AccelerateInterpolator()); in testEnd()
162 ((ObjectAnimator)animator).setRepeatMode(ValueAnimator.REVERSE); in testEnd()
163 startAnimation(animator); in testEnd()
165 endAnimation(animator); in testEnd()
240 final ObjectAnimator animator = ObjectAnimator.ofFloat(new AnimTarget(), "y", 0, 100); in testNullObjectAnimator() local
242 animator.addListener(listener); in testNullObjectAnimator()
244 animator.start(); in testNullObjectAnimator()
[all …]
DObjectAnimatorTest.java130 ValueAnimator.AnimatorUpdateListener updateListener = ((animator) -> { in testOfFloat()
131 float y = (Float) animator.getAnimatedValue(); in testOfFloat()
156 ObjectAnimator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloatBase() local
160 assertEquals(animator.getTarget(), objAnimator.getTarget()); in testOfFloatBase()
161 assertEquals(animator.getPropertyName(), objAnimator.getPropertyName()); in testOfFloatBase()
171 ValueAnimator.AnimatorUpdateListener updateListener = ((animator) -> { in testOfInt()
201 ValueAnimator.AnimatorUpdateListener updateListener = ((animator) -> { in testOfObject()
237 final ObjectAnimator animator = ObjectAnimator.ofObject(target, property, in testOfObject_generic() local
242 animator.setupStartValues(); in testOfObject_generic()
245 animator.setupEndValues(); in testOfObject_generic()
[all …]
DAnimationActivity.java147 public void startSingleAnimation(Animator animator) { in startSingleAnimation() argument
148 animator.setTarget(view.newBall); in startSingleAnimation()
149 animator.start(); in startSingleAnimation()
158 public void startAnimation(Animator animator){ in startAnimation() argument
159 view.bounceYAnimator = (ValueAnimator)animator; in startAnimation()
209 public void startColorAnimator(ValueAnimator animator) { in startColorAnimator() argument
210 this.colorAnimator = animator; in startColorAnimator()
DAnimatorSetTest.java713 for (Animator animator : set2.getChildAnimations()) { in testClone()
714 assertUnique(animator); in testClone()
875 final ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in testNotifiesAfterEnd() local
890 animator.addListener(listener); in testNotifiesAfterEnd()
892 animatorSet.playTogether(animator); in testNotifiesAfterEnd()
896 animator.end(); in testNotifiesAfterEnd()
897 assertFalse(animator.isStarted()); in testNotifiesAfterEnd()
1286 ObjectAnimator animator = ObjectAnimator.ofFloat(target, "val", 1, 0); in hugeDuration() local
1290 animator.setDuration(1000); in hugeDuration()
1291 animator.setRepeatCount(2147483); in hugeDuration()
[all …]
DPropertyValuesHolderTest.java163 private void setTarget(final Animator animator, final Object target) throws Throwable { in setTarget() argument
164 mActivityRule.runOnUiThread(() -> animator.setTarget(target)); in setTarget()
167 private void startSingleAnimation(final Animator animator) throws Throwable { in startSingleAnimation() argument
168 mActivityRule.runOnUiThread(() -> mActivity.startSingleAnimation(animator)); in startSingleAnimation()
825 private void startAnimation(final Animator animator) throws Throwable { in startAnimation() argument
826 mActivityRule.runOnUiThread(() -> mActivity.startAnimation(animator)); in startAnimation()
DLayoutAnimationTest.java321 public void setAnimator(int transitionType, Animator animator) { in setAnimator() argument
322 super.setAnimator(transitionType, animator); in setAnimator()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewPropertyAnimatorTests.java54 public void configureAnimator(ViewPropertyAnimator animator) { in testViewCustomAlpha()
55 animator.alpha(0.0f); in testViewCustomAlpha()
92 public void configureAnimator(ViewPropertyAnimator animator) { in testViewCustomAlphaBy()
93 animator.alphaBy(-0.5f); in testViewCustomAlphaBy()
109 public void configureAnimator(ViewPropertyAnimator animator) { in testViewTranslateX()
110 animator.translationX(100.0f); in testViewTranslateX()
130 public void configureAnimator(ViewPropertyAnimator animator) { in testViewTranslateXBy()
131 animator.translationXBy(100.0f); in testViewTranslateXBy()
146 public void configureAnimator(ViewPropertyAnimator animator) { in testViewTranslateY()
147 animator.translationY(60.0f); in testViewTranslateY()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowInsetsAnimationUtils.java78 ValueAnimator animator = ValueAnimator.ofObject( in runTransition() local
85 animator.setDuration(DURATION); in runTransition()
86 animator.addUpdateListener((animator1) -> { in runTransition()
89 animator.cancel(); in runTransition()
92 Insets insets = (Insets) animator.getAnimatedValue(); in runTransition()
93 controller.setInsetsAndAlpha(insets, 1.0f, animator.getAnimatedFraction()); in runTransition()
95 animator.addListener(new AnimatorListenerAdapter() { in runTransition()
103 animator.start(); in runTransition()
104 return animator; in runTransition()
DWindowManagerState.java2272 WindowStateAnimatorProto animatorProto = proto.animator;
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DFragmentTest.java74 .setCustomAnimations(R.animator.long_fade_in, R.animator.long_fade_out, in testChildFragmentManagerGone()
75 R.animator.long_fade_in, R.animator.long_fade_out) in testChildFragmentManagerGone()
87 .setCustomAnimations(R.animator.long_fade_in, R.animator.long_fade_out, in testChildFragmentManagerGone()
88 R.animator.long_fade_in, R.animator.long_fade_out) in testChildFragmentManagerGone()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentAnimatorTest.java387 assertNull(fragment1.animator); in popPostponed()
388 assertNull(fragment2.animator); in popPostponed()
410 .setCustomAnimations(0, 0, 0, R.animator.slow_fade_out) in saveWhileAnimatingAway()
544 assertNotNull(fragment.animator); in assertFragmentAnimation()
559 Animator animator; field in FragmentAnimatorTest.AnimatorFragment
572 this.animator = ValueAnimator.ofFloat(0, 1).setDuration(1); in onCreateAnimator()
574 this.animator.addListener(new AnimatorListenerAdapter() { in onCreateAnimator()
587 return this.animator; in onCreateAnimator()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java151 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
152 animator.setTarget(dummyObject); in testLoadAnimator()
153 animator.setupStartValues(); in testLoadAnimator()
154 animator.start(); in testLoadAnimator()
155 animator.end(); in testLoadAnimator()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java483 Animator animator = transition.animators.get(redSquare); in testInterpolator() local
486 assertSame(interpolator, animator.getInterpolator()); in testInterpolator()
639 Animator animator = transition.animators.get(redSquare); in testStartDelay() local
640 assertFalse(animator.isRunning()); in testStartDelay()
757 private Animator setupAnimator(Animator animator, View view) { in setupAnimator() argument
758 animators.put(view, animator); in setupAnimator()
760 animator.addListener(listener); in setupAnimator()
762 return animator; in setupAnimator()
DChangeBoundsTest.java345 Animator animator = super.createAnimator(sceneRoot, startValues, endValues); in createAnimator() local
346 if (animator != null && mBoundsChangeListener != null) { in createAnimator()
347 animator.addListener(mBoundsChangeListener); in createAnimator()
351 return animator; in createAnimator()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java2081 ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in testWinAnimationDurationNoShortenByTinkeredScale() local
2082 animator.setInterpolator(new LinearInterpolator()); in testWinAnimationDurationNoShortenByTinkeredScale()
2089 return animator; in testWinAnimationDurationNoShortenByTinkeredScale()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt377 public static final class R.animator {
378 ctor public R.animator();