Home
last modified time | relevance | path

Searched refs:colorAnimator (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/animation/src/android/animation/cts/
DAnimationActivity.java170 public void startAnimation(ObjectAnimator bounceAnimator, ObjectAnimator colorAnimator) { in startAnimation() argument
172 view.startColorAnimator(colorAnimator); in startAnimation()
181 public void startColorAnimation(ValueAnimator colorAnimator){ in startColorAnimation() argument
182 view.startColorAnimator(colorAnimator); in startColorAnimation()
193 public ValueAnimator colorAnimator; field in AnimationActivity.AnimationView
201 colorAnimator = ObjectAnimator.ofInt(this, "backgroundColor", RED, BLUE); in startColorAnimator()
202 colorAnimator.setDuration(1000); in startColorAnimator()
203 colorAnimator.setEvaluator(new ArgbEvaluator()); in startColorAnimator()
204 colorAnimator.setRepeatCount(ValueAnimator.INFINITE); in startColorAnimator()
205 colorAnimator.setRepeatMode(ValueAnimator.REVERSE); in startColorAnimator()
[all …]
DObjectAnimatorTest.java199 final ObjectAnimator colorAnimator = ObjectAnimator.ofObject(object, property, in testOfObject() local
202 int color = (Integer) colorAnimator.getAnimatedValue(); in testOfObject()
212 colorAnimator.addListener(mockListener); in testOfObject()
214 colorAnimator.addUpdateListener(updateListener); in testOfObject()
215 colorAnimator.setDuration(2000); in testOfObject()
216 colorAnimator.setRepeatCount(2); in testOfObject()
217 colorAnimator.setRepeatMode(ValueAnimator.REVERSE); in testOfObject()
218 mActivityRule.runOnUiThread(colorAnimator::start); in testOfObject()
220 verify(mockListener, timeout(8000)).onAnimationRepeat(colorAnimator); in testOfObject()
221 verify(mockListener, timeout(8000)).onAnimationEnd(colorAnimator, false); in testOfObject()
[all …]
DPropertyValuesHolderTest.java307 ObjectAnimator colorAnimator = ObjectAnimator.ofPropertyValuesHolder(object,pVHolder); in testOfInt_Property() local
308 colorAnimator.setDuration(1000); in testOfInt_Property()
309 colorAnimator.setEvaluator(new ArgbEvaluator()); in testOfInt_Property()
310 colorAnimator.setRepeatCount(ValueAnimator.INFINITE); in testOfInt_Property()
311 colorAnimator.setRepeatMode(ValueAnimator.REVERSE); in testOfInt_Property()
315 startAnimation(objectAnimator, colorAnimator); in testOfInt_Property()
317 Integer animatedValue = (Integer) colorAnimator.getAnimatedValue(); in testOfInt_Property()
830 final ObjectAnimator colorAnimator) throws Throwable { in startAnimation() argument
831 mActivityRule.runOnUiThread(() -> mActivity.startAnimation(mObjectAnimator, colorAnimator)); in startAnimation()