Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DLayerDrawableTest.java406 Drawable mockDrawable1 = spy(new ColorDrawable(Color.BLUE)); in testDraw() local
408 Drawable[] array = new Drawable[] { mockDrawable1, mockDrawable2 }; in testDraw()
413 verify(mockDrawable1, times(1)).draw(any()); in testDraw()
416 reset(mockDrawable1); in testDraw()
418 doNothing().when(mockDrawable1).draw(any()); in testDraw()
421 verify(mockDrawable1, times(1)).draw(any()); in testDraw()
514 Drawable mockDrawable1 = spy(new ColorDrawable(Color.BLUE)); in testSetDither() local
516 Drawable[] array = new Drawable[] { mockDrawable1, mockDrawable2 }; in testSetDither()
520 verify(mockDrawable1, times(1)).setDither(anyBoolean()); in testSetDither()
523 reset(mockDrawable1); in testSetDither()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarTest.java393 Drawable mockDrawable1 = spy(new ColorDrawable(Color.RED)); in testInvalidateDrawable() local
395 mockProgressBar.setBackgroundDrawable(mockDrawable1); in testInvalidateDrawable()
397 mockProgressBar.invalidateDrawable(mockDrawable1); in testInvalidateDrawable()
404 mockProgressBar.setIndeterminateDrawable(mockDrawable1); in testInvalidateDrawable()