Home
last modified time | relevance | path

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

/cts/tests/tests/animation/src/android/animation/cts/
DCreationTest.java56 ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in testValueAnimatorCreation() local
57 verifyValues(animator, 0, 1); in testValueAnimatorCreation()
63 ValueAnimator animator = (ValueAnimator) in testValueAnimatorResourceCreation() local
64 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator); in testValueAnimatorResourceCreation()
65 verifyValues(animator, 0, 1); in testValueAnimatorResourceCreation()
71 ValueAnimator animator = (ValueAnimator) in testValueAnimatorPvh1() local
72 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator_pvh1); in testValueAnimatorPvh1()
73 verifyValues(animator, 0, 1); in testValueAnimatorPvh1()
79 ValueAnimator animator = (ValueAnimator) in testValueAnimatorPvh2() local
80 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator_pvh2); in testValueAnimatorPvh2()
[all …]
DValueAnimatorTest.java486 ValueAnimator animator = ValueAnimator.ofFloat(0f, 1f); in testGetAnimatedFraction() local
487 assertNotNull(animator); in testGetAnimatedFraction()
488 animator.setDuration(200); in testGetAnimatedFraction()
489 animator.addUpdateListener(new AnimatorUpdateListener() { in testGetAnimatedFraction()
502 animator.addListener(new AnimatorListenerAdapter() { in testGetAnimatedFraction()
509 animator.start(); in testGetAnimatedFraction()
514 assertEquals(1.0f, animator.getAnimatedFraction(), EPSILON); in testGetAnimatedFraction()
527 ValueAnimator animator = ValueAnimator.ofFloat(0f, 1f); in testGetAnimatedValue() local
528 assertNotNull(animator); in testGetAnimatedValue()
530 animator.setInterpolator(myInterpolator); in testGetAnimatedValue()
[all …]
DAnimatorTest.java137 Animator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testEnd() local
138 animator.setDuration(mDuration); in testEnd()
139 ((ObjectAnimator)animator).setRepeatCount(ValueAnimator.INFINITE); in testEnd()
140 animator.setInterpolator(new AccelerateInterpolator()); in testEnd()
141 ((ObjectAnimator)animator).setRepeatMode(ValueAnimator.REVERSE); in testEnd()
142 startAnimation(animator); in testEnd()
144 endAnimation(animator); in testEnd()
218 final ObjectAnimator animator = ObjectAnimator.ofFloat(new AnimTarget(), "y", 0, 100); in testNullObjectAnimator() local
220 animator.addListener(listener); in testNullObjectAnimator()
222 animator.start(); in testNullObjectAnimator()
[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()
DObjectAnimatorTest.java110 ValueAnimator.AnimatorUpdateListener updateListener = ((animator) -> { in testOfFloat()
111 float y = (Float) animator.getAnimatedValue(); in testOfFloat()
136 ObjectAnimator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloatBase() local
140 assertEquals(animator.getTarget(), objAnimator.getTarget()); in testOfFloatBase()
141 assertEquals(animator.getPropertyName(), objAnimator.getPropertyName()); in testOfFloatBase()
150 ValueAnimator.AnimatorUpdateListener updateListener = ((animator) -> { in testOfInt()
179 ValueAnimator.AnimatorUpdateListener updateListener = ((animator) -> { in testOfObject()
213 ValueAnimator.AnimatorUpdateListener updateListener = ((animator) -> { in testOfPropertyValuesHolder()
257 final ObjectAnimator animator = ObjectAnimator.ofArgb(object, property, start, end); in testOfArgb() local
258 animator.setDuration(50); in testOfArgb()
[all …]
DAnimatorSetTest.java703 for (Animator animator : set2.getChildAnimations()) { in testClone()
704 assertUnique(animator); in testClone()
866 final ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in testNotifiesAfterEnd() local
881 animator.addListener(listener); in testNotifiesAfterEnd()
883 animatorSet.playTogether(animator); in testNotifiesAfterEnd()
887 animator.end(); in testNotifiesAfterEnd()
888 assertFalse(animator.isStarted()); in testNotifiesAfterEnd()
DPropertyValuesHolderTest.java152 private void setTarget(final Animator animator, final Object target) throws Throwable { in setTarget() argument
153 mActivityRule.runOnUiThread(() -> animator.setTarget(target)); in setTarget()
156 private void startSingleAnimation(final Animator animator) throws Throwable { in startSingleAnimation() argument
157 mActivityRule.runOnUiThread(() -> mActivity.startSingleAnimation(animator)); in startSingleAnimation()
814 private void startAnimation(final Animator animator) throws Throwable { in startAnimation() argument
815 mActivityRule.runOnUiThread(() -> mActivity.startAnimation(animator)); in startAnimation()
DLayoutAnimationTest.java276 public void setAnimator(int transitionType, Animator animator) { in setAnimator() argument
277 super.setAnimator(transitionType, animator); in setAnimator()
/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.java136 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
137 animator.setTarget(dummyObject); in testLoadAnimator()
138 animator.setupStartValues(); in testLoadAnimator()
139 animator.start(); in testLoadAnimator()
140 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/keystore/src/android/server/am/
DWindowManagerState.java504 WindowStateAnimatorProto animatorProto = proto.animator; in WindowState()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerState.java859 WindowStateAnimatorProto animatorProto = proto.animator; in WindowState()