Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java70 MockDrawable mockDrawable = new MockDrawable(); in testClearColorFilter() local
71 mockDrawable.clearColorFilter(); in testClearColorFilter()
72 assertNull(mockDrawable.getColorFilter()); in testClearColorFilter()
75 mockDrawable.setColorFilter(cf); in testClearColorFilter()
76 assertEquals(cf, mockDrawable.getColorFilter()); in testClearColorFilter()
78 mockDrawable.clearColorFilter(); in testClearColorFilter()
79 assertNull(mockDrawable.getColorFilter()); in testClearColorFilter()
96 MockDrawable mockDrawable = new MockDrawable(); in testCopyBounds() local
97 Rect rect1 = mockDrawable.copyBounds(); in testCopyBounds()
99 mockDrawable.copyBounds(r1); in testCopyBounds()
[all …]
DScaleDrawableTest.java194 MockDrawable mockDrawable = new MockDrawable(); in testDraw() local
195 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); in testDraw()
198 assertFalse(mockDrawable.hasCalledDraw()); in testDraw()
202 mockDrawable.setLevel(1); in testDraw()
204 assertTrue(mockDrawable.hasCalledDraw()); in testDraw()
206 mockDrawable.reset(); in testDraw()
208 assertTrue(mockDrawable.hasCalledDraw()); in testDraw()
220 MockDrawable mockDrawable = new MockDrawable(); in testGetChangingConfigurations() local
221 ScaleDrawable scaleDrawable = new ScaleDrawable(mockDrawable, Gravity.CENTER, 100, 200); in testGetChangingConfigurations()
225 mockDrawable.setChangingConfigurations(CONTAINED_DRAWABLE_CONFIG); in testGetChangingConfigurations()
[all …]
DClipDrawableTest.java73 MockDrawable mockDrawable = new MockDrawable(); in testDraw() local
74 mockDrawable.setLevel(5000); in testDraw()
75 ClipDrawable clipDrawable = new ClipDrawable(mockDrawable, in testDraw()
79 assertFalse(mockDrawable.getCalledDraw()); in testDraw()
81 assertTrue(mockDrawable.getCalledDraw()); in testDraw()
97 MockDrawable mockDrawable = new MockDrawable(); in testGetChangingConfigurations() local
98 ClipDrawable clipDrawable = new ClipDrawable(mockDrawable, in testGetChangingConfigurations()
105 mockDrawable.setChangingConfigurations(2); in testGetChangingConfigurations()
106 clipDrawable = new ClipDrawable(mockDrawable, in testGetChangingConfigurations()
119 MockDrawable mockDrawable = new MockDrawable(); in testGetConstantState() local
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DProgressBarTest.java129 MockDrawable mockDrawable = new MockDrawable(); in testAccessIndeterminateDrawable() local
130 progressBar.setIndeterminateDrawable(mockDrawable); in testAccessIndeterminateDrawable()
131 assertSame(mockDrawable, progressBar.getIndeterminateDrawable()); in testAccessIndeterminateDrawable()
132 assertFalse(mockDrawable.hasCalledDraw()); in testAccessIndeterminateDrawable()
134 assertTrue(mockDrawable.hasCalledDraw()); in testAccessIndeterminateDrawable()
159 MockDrawable mockDrawable = new MockDrawable(); in testAccessProgressDrawable() local
160 progressBar.setProgressDrawable(mockDrawable); in testAccessProgressDrawable()
161 assertSame(mockDrawable, progressBar.getProgressDrawable()); in testAccessProgressDrawable()
162 assertFalse(mockDrawable.hasCalledDraw()); in testAccessProgressDrawable()
164 assertTrue(mockDrawable.hasCalledDraw()); in testAccessProgressDrawable()