Searched refs:mockProgressDrawable (Results 1 – 2 of 2) sorted by relevance
197 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.YELLOW)); in testAccessIndeterminateDrawable() local198 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() local215 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 …]
159 Drawable mockProgressDrawable = spy(new ColorDrawable(Color.YELLOW)); in testDrawableStateChanged() local160 myAbsSeekBar.setProgressDrawable(mockProgressDrawable); in testDrawableStateChanged()165 verify(mockProgressDrawable, atLeastOnce()).setAlpha(alphaCaptor.capture()); in testDrawableStateChanged()174 verify(mockProgressDrawable, atLeastOnce()).setAlpha(alphaCaptor.capture()); in testDrawableStateChanged()