Home
last modified time | relevance | path

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

/cts/tests/tests/animation/src/android/animation/cts/
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.java228 private float[] getValue(ValueAnimator animator, int n, String methodName, in getValue() argument
235 value = animator.getAnimatedFraction(); in getValue()
237 value = ((Float)animator.getAnimatedValue()).floatValue(); in getValue()
239 value = ((Float)animator.getAnimatedValue(property)).floatValue(); in getValue()
246 private void startAnimation(final ValueAnimator animator) throws Throwable { in startAnimation() argument
249 mActivity.startAnimation(animator); in startAnimation()
254 private void endAnimation(final ValueAnimator animator) throws Throwable { in endAnimation() argument
257 animator.end(); in endAnimation()
262 private void cancelAnimation(final ValueAnimator animator) throws Throwable { in cancelAnimation() argument
265 animator.cancel(); in cancelAnimation()
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()
DObjectAnimatorTest.java77 ObjectAnimator animator = ObjectAnimator.ofFloat(object, property, startY, endY); in testOfFloatBase() local
81 assertEquals(animator.getTarget(), objAnimator.getTarget()); in testOfFloatBase()
82 assertEquals(animator.getPropertyName(), objAnimator.getPropertyName()); in testOfFloatBase()
DLayoutAnimationTest.java247 public void setAnimator(int transitionType, Animator animator) { in setAnimator() argument
248 super.setAnimator(transitionType, animator); in setAnimator()
DAnimatorSetTest.java223 for (Animator animator : set2.getChildAnimations()) { in testClone()
224 assertUnique(animator); in testClone()
/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()