Searched refs:mockDrawable (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTest.java | 60 MockDrawable mockDrawable = new MockDrawable(); in testClearColorFilter() local 61 mockDrawable.clearColorFilter(); in testClearColorFilter() 62 assertNull(mockDrawable.getColorFilter()); in testClearColorFilter() 65 mockDrawable.setColorFilter(cf); in testClearColorFilter() 66 assertEquals(cf, mockDrawable.getColorFilter()); in testClearColorFilter() 68 mockDrawable.clearColorFilter(); in testClearColorFilter() 69 assertNull(mockDrawable.getColorFilter()); in testClearColorFilter() 73 MockDrawable mockDrawable = new MockDrawable(); in testCopyBounds() local 74 Rect rect1 = mockDrawable.copyBounds(); in testCopyBounds() 76 mockDrawable.copyBounds(r1); in testCopyBounds() [all …]
|
D | DrawableWrapperTest.java | 172 MockDrawable mockDrawable = new MockDrawable(); in testDraw() local 173 MyWrapper wrapper = new MyWrapper(mockDrawable); in testDraw() 176 assertTrue(mockDrawable.hasCalledDraw()); in testDraw() 178 mockDrawable.reset(); in testDraw() 180 assertTrue(mockDrawable.hasCalledDraw()); in testDraw() 187 MockDrawable mockDrawable = new MockDrawable(); in testGetChangingConfigurations() local 188 MyWrapper wrapper = new MyWrapper(mockDrawable); in testGetChangingConfigurations() 192 mockDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); in testGetChangingConfigurations() 201 MockDrawable mockDrawable = new MockDrawable(); in testGetPadding() local 202 MyWrapper wrapper = new MyWrapper(mockDrawable); in testGetPadding() [all …]
|
D | ScaleDrawableTest.java | 160 MockDrawable mockDrawable = new MockDrawable(); in testDraw() local 161 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); in testDraw() 164 assertFalse(mockDrawable.hasCalledDraw()); in testDraw() 168 mockDrawable.setLevel(1); in testDraw() 170 assertTrue(mockDrawable.hasCalledDraw()); in testDraw() 172 mockDrawable.reset(); in testDraw() 174 assertTrue(mockDrawable.hasCalledDraw()); in testDraw() 181 MockDrawable mockDrawable = new MockDrawable(); in testGetChangingConfigurations() local 182 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); in testGetChangingConfigurations() 186 mockDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); in testGetChangingConfigurations() [all …]
|
D | ClipDrawableTest.java | 53 MockDrawable mockDrawable = new MockDrawable(); in testDraw() local 54 mockDrawable.setLevel(5000); in testDraw() 55 ClipDrawable clipDrawable = new ClipDrawable(mockDrawable, in testDraw() 59 assertFalse(mockDrawable.getCalledDraw()); in testDraw() 61 assertTrue(mockDrawable.getCalledDraw()); in testDraw() 74 MockDrawable mockDrawable = new MockDrawable(); in testGetChangingConfigurations() local 75 ClipDrawable clipDrawable = new ClipDrawable(mockDrawable, in testGetChangingConfigurations() 80 mockDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); in testGetChangingConfigurations() 89 MockDrawable mockDrawable = new MockDrawable(); in testGetConstantState() local 90 ClipDrawable clipDrawable = new ClipDrawable(mockDrawable, in testGetConstantState() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ProgressBarTest.java | 83 MockDrawable mockDrawable = new MockDrawable(); in testAccessIndeterminateDrawable() local 84 progressBar.setIndeterminateDrawable(mockDrawable); in testAccessIndeterminateDrawable() 85 assertSame(mockDrawable, progressBar.getIndeterminateDrawable()); in testAccessIndeterminateDrawable() 86 assertFalse(mockDrawable.hasCalledDraw()); in testAccessIndeterminateDrawable() 88 assertTrue(mockDrawable.hasCalledDraw()); in testAccessIndeterminateDrawable() 101 MockDrawable mockDrawable = new MockDrawable(); in testAccessProgressDrawable() local 102 progressBar.setProgressDrawable(mockDrawable); in testAccessProgressDrawable() 103 assertSame(mockDrawable, progressBar.getProgressDrawable()); in testAccessProgressDrawable() 104 assertFalse(mockDrawable.hasCalledDraw()); in testAccessProgressDrawable() 106 assertTrue(mockDrawable.hasCalledDraw()); in testAccessProgressDrawable()
|