Searched refs:colorAnimator (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/animation/src/android/animation/cts/ |
D | AnimationActivity.java | 170 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 …]
|
D | ObjectAnimatorTest.java | 176 final ObjectAnimator colorAnimator = ObjectAnimator.ofObject(object, property, in testOfObject() local 179 int color = (Integer) colorAnimator.getAnimatedValue(); in testOfObject() 189 colorAnimator.addListener(mockListener); in testOfObject() 191 colorAnimator.addUpdateListener(updateListener); in testOfObject() 192 colorAnimator.setDuration(200); in testOfObject() 193 colorAnimator.setRepeatCount(1); in testOfObject() 194 colorAnimator.setRepeatMode(ValueAnimator.REVERSE); in testOfObject() 195 mActivityRule.runOnUiThread(colorAnimator::start); in testOfObject() 197 verify(mockListener, timeout(400)).onAnimationRepeat(colorAnimator); in testOfObject() 198 verify(mockListener, timeout(400)).onAnimationEnd(colorAnimator, false); in testOfObject() [all …]
|
D | PropertyValuesHolderTest.java | 292 ObjectAnimator colorAnimator = ObjectAnimator.ofPropertyValuesHolder(object,pVHolder); in testOfInt_Property() local 293 colorAnimator.setDuration(1000); in testOfInt_Property() 294 colorAnimator.setEvaluator(new ArgbEvaluator()); in testOfInt_Property() 295 colorAnimator.setRepeatCount(ValueAnimator.INFINITE); in testOfInt_Property() 296 colorAnimator.setRepeatMode(ValueAnimator.REVERSE); in testOfInt_Property() 300 startAnimation(objectAnimator, colorAnimator); in testOfInt_Property() 302 Integer animatedValue = (Integer) colorAnimator.getAnimatedValue(); in testOfInt_Property() 818 final ObjectAnimator colorAnimator) throws Throwable { in startAnimation() argument 819 mActivityRule.runOnUiThread(() -> mActivity.startAnimation(mObjectAnimator, colorAnimator)); in startAnimation()
|