Home
last modified time | relevance | path

Searched refs:getOpacity (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableContainerStateTest.java243 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainerState.getOpacity()); in testGetOpacity()
246 doReturn(PixelFormat.OPAQUE).when(dr0).getOpacity(); in testGetOpacity()
249 assertEquals(PixelFormat.OPAQUE, mDrawableContainerState.getOpacity()); in testGetOpacity()
252 doReturn(PixelFormat.TRANSPARENT).when(dr1).getOpacity(); in testGetOpacity()
255 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainerState.getOpacity()); in testGetOpacity()
258 doReturn(PixelFormat.TRANSLUCENT).when(dr2).getOpacity(); in testGetOpacity()
261 assertEquals(PixelFormat.TRANSLUCENT, mDrawableContainerState.getOpacity()); in testGetOpacity()
264 doReturn(PixelFormat.UNKNOWN).when(dr3).getOpacity(); in testGetOpacity()
267 assertEquals(PixelFormat.UNKNOWN, mDrawableContainerState.getOpacity()); in testGetOpacity()
270 doReturn(PixelFormat.TRANSLUCENT).when(dr4).getOpacity(); in testGetOpacity()
[all …]
DDrawableContainerTest.java714 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainer.getOpacity()); in testGetOpacity()
718 doReturn(PixelFormat.OPAQUE).when(dr0).getOpacity(); in testGetOpacity()
721 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainer.getOpacity()); in testGetOpacity()
724 assertEquals(mDrawableContainerState.getOpacity(), mDrawableContainer.getOpacity()); in testGetOpacity()
725 assertEquals(PixelFormat.OPAQUE, mDrawableContainer.getOpacity()); in testGetOpacity()
728 doReturn(PixelFormat.TRANSLUCENT).when(dr1).getOpacity(); in testGetOpacity()
732 assertEquals(mDrawableContainerState.getOpacity(), mDrawableContainer.getOpacity()); in testGetOpacity()
733 assertEquals(PixelFormat.TRANSLUCENT, mDrawableContainer.getOpacity()); in testGetOpacity()
815 assertEquals(PixelFormat.OPAQUE, mDrawableContainer.getOpacity()); in testOpacityChange()
820 assertEquals(PixelFormat.TRANSLUCENT, mDrawableContainer.getOpacity()); in testOpacityChange()
[all …]
DGradientDrawableTest.java82 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
86 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
90 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
94 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
98 PixelFormat.OPAQUE, gradientDrawable.getOpacity()); in testGetOpacity()
102 PixelFormat.OPAQUE, gradientDrawable.getOpacity()); in testGetOpacity()
106 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
110 PixelFormat.OPAQUE, gradientDrawable.getOpacity()); in testGetOpacity()
114 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
118 PixelFormat.OPAQUE, gradientDrawable.getOpacity()); in testGetOpacity()
DClipDrawableTest.java165 doReturn(PixelFormat.OPAQUE).when(dr).getOpacity(); in testGetOpacity()
170 PixelFormat.TRANSPARENT, clipDrawable.getOpacity()); in testGetOpacity()
173 PixelFormat.TRANSLUCENT, clipDrawable.getOpacity()); in testGetOpacity()
176 PixelFormat.OPAQUE, clipDrawable.getOpacity()); in testGetOpacity()
178 doReturn(PixelFormat.TRANSLUCENT).when(dr).getOpacity(); in testGetOpacity()
182 PixelFormat.TRANSLUCENT, clipDrawable.getOpacity()); in testGetOpacity()
DColorDrawableTest.java103 assertEquals(PixelFormat.TRANSPARENT, colorDrawable.getOpacity()); in testGetOpacity()
106 assertEquals(PixelFormat.OPAQUE, colorDrawable.getOpacity()); in testGetOpacity()
109 assertEquals(PixelFormat.TRANSLUCENT, colorDrawable.getOpacity()); in testGetOpacity()
DColorStateListDrawableTest.java115 assertEquals(mDrawable.getOpacity(), PixelFormat.TRANSLUCENT); in testAlpha()
119 assertEquals(mDrawable.getOpacity(), PixelFormat.TRANSPARENT); in testAlpha()
124 assertEquals(mDrawable.getOpacity(), PixelFormat.OPAQUE); in testAlpha()
DLayerDrawableTest.java598 assertEquals(PixelFormat.TRANSPARENT, layerDrawable.getOpacity()); in testAccessOpacity()
604 assertEquals(PixelFormat.OPAQUE, layerDrawable.getOpacity()); in testAccessOpacity()
607 doReturn(PixelFormat.OPAQUE).when(mockDrawable1).getOpacity(); in testAccessOpacity()
608 doReturn(PixelFormat.TRANSPARENT).when(mockDrawable2).getOpacity(); in testAccessOpacity()
609 assertEquals(PixelFormat.TRANSPARENT, layerDrawable.getOpacity()); in testAccessOpacity()
612 doReturn(PixelFormat.TRANSLUCENT).when(mockDrawable1).getOpacity(); in testAccessOpacity()
613 doReturn(PixelFormat.TRANSPARENT).when(mockDrawable2).getOpacity(); in testAccessOpacity()
614 assertEquals(PixelFormat.TRANSLUCENT, layerDrawable.getOpacity()); in testAccessOpacity()
617 doReturn(PixelFormat.TRANSLUCENT).when(mockDrawable1).getOpacity(); in testAccessOpacity()
618 doReturn(PixelFormat.UNKNOWN).when(mockDrawable2).getOpacity(); in testAccessOpacity()
[all …]
DShapeDrawableTest.java145 assertEquals(PixelFormat.TRANSLUCENT, shapeDrawable.getOpacity()); in testGetOpacity()
149 assertEquals(PixelFormat.OPAQUE, shapeDrawable.getOpacity()); in testGetOpacity()
152 assertEquals(PixelFormat.TRANSPARENT, shapeDrawable.getOpacity()); in testGetOpacity()
155 assertEquals(PixelFormat.TRANSLUCENT, shapeDrawable.getOpacity()); in testGetOpacity()
DBitmapDrawableTest.java348 assertEquals(PixelFormat.TRANSLUCENT, bitmapDrawable.getOpacity()); in testGetOpacity()
353 assertEquals(PixelFormat.OPAQUE, bitmapDrawable.getOpacity()); in testGetOpacity()
355 assertEquals(PixelFormat.TRANSLUCENT, bitmapDrawable.getOpacity()); in testGetOpacity()
360 assertEquals(PixelFormat.OPAQUE, bitmapDrawable.getOpacity()); in testGetOpacity()
362 assertEquals(PixelFormat.TRANSLUCENT, bitmapDrawable.getOpacity()); in testGetOpacity()
DDrawableTest.java906 public int getOpacity() { in getOpacity() method in DrawableTest.MockDrawable
944 public int getOpacity() { in getOpacity() method in DrawableTest.TestTintDrawable
994 public int getOpacity() { in getOpacity() method in DrawableTest.TestNullPorterDuffDrawable
1024 public int getOpacity() { in getOpacity() method in DrawableTest.TestNullBlendModeDrawable
1050 public int getOpacity() { in getOpacity() method in DrawableTest.TestBlendModeImplementedDrawable
1096 public int getOpacity() { in getOpacity() method in DrawableTest.TestPorterDuffImplementedDrawable
DDrawableWrapperTest.java288 wrapper.getOpacity(); in testGetOpacity()
289 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity()
427 public int getOpacity() { in getOpacity() method in DrawableWrapperTest.MockDrawable
DCustomDrawableTest.java95 public int getOpacity() { in getOpacity() method in CustomDrawableTest.CustomDrawable
DAnimatedVectorDrawableTest.java199 assertEquals("Default is translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity()
201 assertEquals("Still translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity()
DPictureDrawableTest.java90 assertEquals(PixelFormat.TRANSLUCENT, pictureDrawable.getOpacity()); in testGetOpacity()
DScaleDrawableTest.java266 scaleDrawable.getOpacity(); in testGetOpacity()
267 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity()
518 public int getOpacity() { in getOpacity() method in ScaleDrawableTest.MockDrawable
DVectorDrawableTest.java397 vectorDrawable.getOpacity()); in testGetOpacity()
402 vectorDrawable.getOpacity()); in testGetOpacity()
DInsetDrawableTest.java252 assertEquals(PixelFormat.OPAQUE, mInsetDrawable.getOpacity()); in testGetOpacity()
255 assertEquals(PixelFormat.TRANSLUCENT, mInsetDrawable.getOpacity()); in testGetOpacity()
DAdaptiveIconDrawableTest.java270 assertEquals(PixelFormat.TRANSLUCENT, iconDrawable.getOpacity()); in testGetOpacity()
273 assertEquals(PixelFormat.TRANSLUCENT, iconDrawable.getOpacity()); in testGetOpacity()
DAnimatedStateListDrawableTest.java293 public int getOpacity() { in getOpacity() method in AnimatedStateListDrawableTest.MockDrawable
DNinePatchDrawableTest.java332 assertEquals(PixelFormat.OPAQUE, mNinePatchDrawable.getOpacity()); in testGetOpacity()
335 assertEquals(PixelFormat.TRANSLUCENT, mNinePatchDrawable.getOpacity()); in testGetOpacity()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DCanvasClientDrawable.java44 public int getOpacity() { in getOpacity() method in CanvasClientDrawable
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DCanvasClientDrawable.java44 public int getOpacity() { in getOpacity() method in CanvasClientDrawable
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMyDrawable.java70 public int getOpacity() { in getOpacity() method in MyDrawable
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceTest.java169 assertEquals(iconExp.getOpacity(), icon.getOpacity()); in testGetIcon()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsPresenterDrawable.java167 public int getOpacity() { in getOpacity() method in WindowInsetsPresenterDrawable

12