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.java177 final ObjectAnimator colorAnimator = ObjectAnimator.ofObject(object, property, in testOfObject() local
180 int color = (Integer) colorAnimator.getAnimatedValue(); in testOfObject()
190 colorAnimator.addListener(mockListener); in testOfObject()
192 colorAnimator.addUpdateListener(updateListener); in testOfObject()
193 colorAnimator.setDuration(200); in testOfObject()
194 colorAnimator.setRepeatCount(10); in testOfObject()
195 colorAnimator.setRepeatMode(ValueAnimator.REVERSE); in testOfObject()
196 mActivityRule.runOnUiThread(colorAnimator::start); in testOfObject()
198 verify(mockListener, timeout(2000)).onAnimationRepeat(colorAnimator); in testOfObject()
199 verify(mockListener, timeout(3000)).onAnimationEnd(colorAnimator, false); in testOfObject()
[all …]
DPropertyValuesHolderTest.java293 ObjectAnimator colorAnimator = ObjectAnimator.ofPropertyValuesHolder(object,pVHolder); in testOfInt_Property() local
294 colorAnimator.setDuration(1000); in testOfInt_Property()
295 colorAnimator.setEvaluator(new ArgbEvaluator()); in testOfInt_Property()
296 colorAnimator.setRepeatCount(ValueAnimator.INFINITE); in testOfInt_Property()
297 colorAnimator.setRepeatMode(ValueAnimator.REVERSE); in testOfInt_Property()
301 startAnimation(objectAnimator, colorAnimator); in testOfInt_Property()
303 Integer animatedValue = (Integer) colorAnimator.getAnimatedValue(); in testOfInt_Property()
819 final ObjectAnimator colorAnimator) throws Throwable { in startAnimation() argument
820 mActivityRule.runOnUiThread(() -> mActivity.startAnimation(mObjectAnimator, colorAnimator)); in startAnimation()