Home
last modified time | relevance | path

Searched refs:mockDrawable (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java64 Drawable mockDrawable = new MockDrawable(); in testClearColorFilter() local
65 mockDrawable.clearColorFilter(); in testClearColorFilter()
66 assertNull(mockDrawable.getColorFilter()); in testClearColorFilter()
69 mockDrawable.setColorFilter(cf); in testClearColorFilter()
70 assertEquals(cf, mockDrawable.getColorFilter()); in testClearColorFilter()
72 mockDrawable.clearColorFilter(); in testClearColorFilter()
73 assertNull(mockDrawable.getColorFilter()); in testClearColorFilter()
77 Drawable mockDrawable = new MockDrawable(); in testCopyBounds() local
78 Rect rect1 = mockDrawable.copyBounds(); in testCopyBounds()
80 mockDrawable.copyBounds(r1); in testCopyBounds()
[all …]
DDrawableWrapperTest.java172 MockDrawable mockDrawable = new MockDrawable(); in testDraw() local
173 DrawableWrapper 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 DrawableWrapper wrapper = new MyWrapper(mockDrawable); in testGetChangingConfigurations()
192 mockDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); in testGetChangingConfigurations()
201 MockDrawable mockDrawable = new MockDrawable(); in testGetPadding() local
202 DrawableWrapper wrapper = new MyWrapper(mockDrawable); in testGetPadding()
[all …]
DClipDrawableTest.java53 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 …]
DScaleDrawableTest.java161 MockDrawable mockDrawable = new MockDrawable(); in testDraw() local
162 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); in testDraw()
165 assertFalse(mockDrawable.hasCalledDraw()); in testDraw()
169 mockDrawable.setLevel(1); in testDraw()
171 assertTrue(mockDrawable.hasCalledDraw()); in testDraw()
173 mockDrawable.reset(); in testDraw()
175 assertTrue(mockDrawable.hasCalledDraw()); in testDraw()
182 MockDrawable mockDrawable = new MockDrawable(); in testGetChangingConfigurations() local
183 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); in testGetChangingConfigurations()
187 mockDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); in testGetChangingConfigurations()
[all …]
DDrawableContainerTest.java188 MockDrawable mockDrawable = new MockDrawable(); in testSetAlpha() local
189 addAndSelectDrawable(mockDrawable); in testSetAlpha()
192 mockDrawable.reset(); in testSetAlpha()
194 assertTrue(mockDrawable.hasSetAlphaCalled()); in testSetAlpha()
197 mockDrawable.reset(); in testSetAlpha()
199 assertFalse(mockDrawable.hasSetAlphaCalled()); in testSetAlpha()
273 MockDrawable mockDrawable = new MockDrawable(); in testSetColorFilter() local
274 addAndSelectDrawable(mockDrawable); in testSetColorFilter()
277 mockDrawable.reset(); in testSetColorFilter()
279 assertTrue(mockDrawable.hasSetColorFilterCalled()); in testSetColorFilter()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarTest.java83 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()