Home
last modified time | relevance | path

Searched refs:mockProgressDrawable (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarTest.java197 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.YELLOW)); in testAccessIndeterminateDrawable() local
198 mProgressBar.setIndeterminateDrawable(mockProgressDrawable); in testAccessIndeterminateDrawable()
199 assertSame(mockProgressDrawable, mProgressBar.getIndeterminateDrawable()); in testAccessIndeterminateDrawable()
200 verify(mockProgressDrawable, never()).draw(any(Canvas.class)); in testAccessIndeterminateDrawable()
202 verify(mockProgressDrawable, atLeastOnce()).draw(any(Canvas.class)); in testAccessIndeterminateDrawable()
214 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.BLUE)); in testAccessProgressDrawable() local
215 mProgressBarHorizontal.setProgressDrawable(mockProgressDrawable); in testAccessProgressDrawable()
216 assertSame(mockProgressDrawable, mProgressBarHorizontal.getProgressDrawable()); in testAccessProgressDrawable()
217 verify(mockProgressDrawable, never()).draw(any(Canvas.class)); in testAccessProgressDrawable()
219 verify(mockProgressDrawable, atLeastOnce()).draw(any(Canvas.class)); in testAccessProgressDrawable()
[all …]
DAbsSeekBarTest.java159 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.YELLOW)); in testDrawableStateChanged() local
160 myAbsSeekBar.setProgressDrawable(mockProgressDrawable); in testDrawableStateChanged()
165 verify(mockProgressDrawable, atLeastOnce()).setAlpha(alphaCaptor.capture()); in testDrawableStateChanged()
174 verify(mockProgressDrawable, atLeastOnce()).setAlpha(alphaCaptor.capture()); in testDrawableStateChanged()