Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java407 Drawable mockDrawable2 = spy(new ColorDrawable(Color.RED)); in testDraw() local
408 Drawable[] array = new Drawable[] { mockDrawable1, mockDrawable2 }; in testDraw()
414 verify(mockDrawable2, times(1)).draw(any()); in testDraw()
417 reset(mockDrawable2); in testDraw()
419 doNothing().when(mockDrawable2).draw(any()); in testDraw()
422 verify(mockDrawable2, times(1)).draw(any()); in testDraw()
515 Drawable mockDrawable2 = spy(new ColorDrawable(Color.BLACK)); in testSetDither() local
516 Drawable[] array = new Drawable[] { mockDrawable1, mockDrawable2 }; in testSetDither()
521 verify(mockDrawable2, times(1)).setDither(anyBoolean()); in testSetDither()
524 reset(mockDrawable2); in testSetDither()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarTest.java394 Drawable mockDrawable2 = spy(new ColorDrawable(Color.GREEN)); in testInvalidateDrawable() local
401 mockProgressBar.invalidateDrawable(mockDrawable2); in testInvalidateDrawable()
405 mockProgressBar.setProgressDrawable(mockDrawable2); in testInvalidateDrawable()