Home
last modified time | relevance | path

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

/cts/tests/tests/animation/src/android/animation/cts/
DCreationTest.java46 ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in testValueAnimatorCreation() local
47 verifyValues(animator, 0, 1); in testValueAnimatorCreation()
52 ValueAnimator animator = (ValueAnimator) in testValueAnimatorResourceCreation() local
53 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator); in testValueAnimatorResourceCreation()
54 verifyValues(animator, 0, 1); in testValueAnimatorResourceCreation()
59 ValueAnimator animator = (ValueAnimator) in testValueAnimatorPvh1() local
60 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator_pvh1); in testValueAnimatorPvh1()
61 verifyValues(animator, 0, 1); in testValueAnimatorPvh1()
66 ValueAnimator animator = (ValueAnimator) in testValueAnimatorPvh2() local
67 AnimatorInflater.loadAnimator(mActivity, R.animator.value_animator_pvh2); in testValueAnimatorPvh2()
[all …]
DAnimatorTest.java112 Animator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testEnd() local
113 animator.setDuration(mDuration); in testEnd()
114 ((ObjectAnimator)animator).setRepeatCount(ValueAnimator.INFINITE); in testEnd()
115 animator.setInterpolator(new AccelerateInterpolator()); in testEnd()
116 ((ObjectAnimator)animator).setRepeatMode(ValueAnimator.REVERSE); in testEnd()
117 startAnimation(animator); in testEnd()
119 endAnimation(animator); in testEnd()
187 final ObjectAnimator animator = ObjectAnimator.ofFloat(object, "y", 0, 100); in testNullObjectAnimator() local
189 animator.addListener(listener); in testNullObjectAnimator()
191 startAnimation(animator); in testNullObjectAnimator()
[all …]
DValueAnimatorTest.java397 ValueAnimator animator = ValueAnimator.ofFloat(0, 1); in testNoDelayOnSeekAnimation() local
398 animator.setInterpolator(new LinearInterpolator()); in testNoDelayOnSeekAnimation()
399 animator.setStartDelay(1000); in testNoDelayOnSeekAnimation()
400 animator.setDuration(300); in testNoDelayOnSeekAnimation()
401 animator.setCurrentPlayTime(150); in testNoDelayOnSeekAnimation()
403 animator.addListener(watcher); in testNoDelayOnSeekAnimation()
407 animator.start(); in testNoDelayOnSeekAnimation()
411 assertTrue(((Float)animator.getAnimatedValue()) >= 0.5f); in testNoDelayOnSeekAnimation()
412 assertTrue(animator.getAnimatedFraction() >= 0.5f); in testNoDelayOnSeekAnimation()
416 animator.cancel(); in testNoDelayOnSeekAnimation()
[all …]
DAnimationActivity.java148 public void startSingleAnimation(Animator animator) { in startSingleAnimation() argument
149 animator.setTarget(view.newBall); in startSingleAnimation()
150 animator.start(); in startSingleAnimation()
159 public void startAnimation(Animator animator){ in startAnimation() argument
160 view.bounceYAnimator = (ValueAnimator)animator; in startAnimation()
210 public void startColorAnimator(ValueAnimator animator) { in startColorAnimator() argument
211 this.colorAnimator = animator; in startColorAnimator()
DPropertyValuesHolderTest.java117 private void setTarget(final Animator animator, final Object target) throws Throwable { in setTarget() argument
121 animator.setTarget(target); in setTarget()
126 private void startSingleAnimation(final Animator animator) throws Throwable { in startSingleAnimation() argument
130 mActivity.startSingleAnimation(animator); in startSingleAnimation()
411 private void startAnimation(final Animator animator) throws Throwable { in startAnimation() argument
414 mActivity.startAnimation(animator); in startAnimation()
DLayoutAnimationTest.java256 public void setAnimator(int transitionType, Animator animator) { in setAnimator() argument
257 super.setAnimator(transitionType, animator); in setAnimator()
DObjectAnimatorTest.java78 ObjectAnimator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloatBase() local
82 assertEquals(animator.getTarget(), objAnimator.getTarget()); in testOfFloatBase()
83 assertEquals(animator.getPropertyName(), objAnimator.getPropertyName()); in testOfFloatBase()
DAnimatorSetTest.java422 for (Animator animator : set2.getChildAnimations()) { in testClone()
423 assertUnique(animator); in testClone()
/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/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java105 for (ObjectAnimator animator : new ObjectAnimator[]{child1, child2}) { in testLoadAnimator()
106 animator.setTarget(dummyObject); in testLoadAnimator()
107 animator.setupStartValues(); in testLoadAnimator()
108 animator.start(); in testLoadAnimator()
109 animator.end(); in testLoadAnimator()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionTest.java408 Animator animator = transition.animators.get(redSquare); in testInterpolator() local
411 assertSame(interpolator, animator.getInterpolator()); in testInterpolator()
483 Animator animator = transition.animators.get(redSquare); in testStartDelay() local
484 assertFalse(animator.isRunning()); in testStartDelay()
544 private Animator setupAnimator(Animator animator, View view) { in setupAnimator() argument
545 animators.put(view, animator); in setupAnimator()
547 animator.addListener(listener); in setupAnimator()
549 return animator; in setupAnimator()
DChangeImageTransformTest.java254 Animator animator = super.createAnimator(sceneRoot, startValues, endValues); in createAnimator() local
255 animator.addListener(new CaptureMatrixListener((ImageView) endValues.view)); in createAnimator()
256 return animator; in createAnimator()