Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableContainerStateTest.java242 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainerState.getOpacity()); in testGetOpacity()
245 doReturn(PixelFormat.OPAQUE).when(dr0).getOpacity(); in testGetOpacity()
248 assertEquals(PixelFormat.OPAQUE, mDrawableContainerState.getOpacity()); in testGetOpacity()
251 doReturn(PixelFormat.TRANSPARENT).when(dr1).getOpacity(); in testGetOpacity()
254 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainerState.getOpacity()); in testGetOpacity()
257 doReturn(PixelFormat.TRANSLUCENT).when(dr2).getOpacity(); in testGetOpacity()
260 assertEquals(PixelFormat.TRANSLUCENT, mDrawableContainerState.getOpacity()); in testGetOpacity()
263 doReturn(PixelFormat.UNKNOWN).when(dr3).getOpacity(); in testGetOpacity()
266 assertEquals(PixelFormat.UNKNOWN, mDrawableContainerState.getOpacity()); in testGetOpacity()
269 doReturn(PixelFormat.TRANSLUCENT).when(dr4).getOpacity(); in testGetOpacity()
[all …]
DDrawableContainerTest.java702 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainer.getOpacity()); in testGetOpacity()
706 doReturn(PixelFormat.OPAQUE).when(dr0).getOpacity(); in testGetOpacity()
709 assertEquals(PixelFormat.TRANSPARENT, mDrawableContainer.getOpacity()); in testGetOpacity()
712 assertEquals(mDrawableContainerState.getOpacity(), mDrawableContainer.getOpacity()); in testGetOpacity()
713 assertEquals(PixelFormat.OPAQUE, mDrawableContainer.getOpacity()); in testGetOpacity()
716 doReturn(PixelFormat.TRANSLUCENT).when(dr1).getOpacity(); in testGetOpacity()
720 assertEquals(mDrawableContainerState.getOpacity(), mDrawableContainer.getOpacity()); in testGetOpacity()
721 assertEquals(PixelFormat.TRANSLUCENT, mDrawableContainer.getOpacity()); in testGetOpacity()
803 assertEquals(PixelFormat.OPAQUE, mDrawableContainer.getOpacity()); in testOpacityChange()
808 assertEquals(PixelFormat.TRANSLUCENT, mDrawableContainer.getOpacity()); in testOpacityChange()
[all …]
DColorDrawableTest.java101 assertEquals(PixelFormat.TRANSPARENT, colorDrawable.getOpacity()); in testGetOpacity()
104 assertEquals(PixelFormat.OPAQUE, colorDrawable.getOpacity()); in testGetOpacity()
107 assertEquals(PixelFormat.TRANSLUCENT, colorDrawable.getOpacity()); in testGetOpacity()
DClipDrawableTest.java164 doReturn(PixelFormat.OPAQUE).when(dr).getOpacity(); in testGetOpacity()
169 PixelFormat.TRANSPARENT, clipDrawable.getOpacity()); in testGetOpacity()
172 PixelFormat.TRANSLUCENT, clipDrawable.getOpacity()); in testGetOpacity()
175 PixelFormat.OPAQUE, clipDrawable.getOpacity()); in testGetOpacity()
177 doReturn(PixelFormat.TRANSLUCENT).when(dr).getOpacity(); in testGetOpacity()
181 PixelFormat.TRANSLUCENT, clipDrawable.getOpacity()); in testGetOpacity()
DGradientDrawableTest.java78 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
82 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
86 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
90 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
94 PixelFormat.OPAQUE, gradientDrawable.getOpacity()); in testGetOpacity()
98 PixelFormat.OPAQUE, gradientDrawable.getOpacity()); in testGetOpacity()
103 PixelFormat.TRANSLUCENT, gradientDrawable.getOpacity()); in testGetOpacity()
DShapeDrawableTest.java144 assertEquals(PixelFormat.TRANSLUCENT, shapeDrawable.getOpacity()); in testGetOpacity()
148 assertEquals(PixelFormat.OPAQUE, shapeDrawable.getOpacity()); in testGetOpacity()
151 assertEquals(PixelFormat.TRANSPARENT, shapeDrawable.getOpacity()); in testGetOpacity()
154 assertEquals(PixelFormat.TRANSLUCENT, shapeDrawable.getOpacity()); in testGetOpacity()
DLayerDrawableTest.java597 assertEquals(PixelFormat.TRANSPARENT, layerDrawable.getOpacity()); in testAccessOpacity()
603 assertEquals(PixelFormat.OPAQUE, layerDrawable.getOpacity()); in testAccessOpacity()
606 doReturn(PixelFormat.OPAQUE).when(mockDrawable1).getOpacity(); in testAccessOpacity()
607 doReturn(PixelFormat.TRANSPARENT).when(mockDrawable2).getOpacity(); in testAccessOpacity()
608 assertEquals(PixelFormat.TRANSPARENT, layerDrawable.getOpacity()); in testAccessOpacity()
611 doReturn(PixelFormat.TRANSLUCENT).when(mockDrawable1).getOpacity(); in testAccessOpacity()
612 doReturn(PixelFormat.TRANSPARENT).when(mockDrawable2).getOpacity(); in testAccessOpacity()
613 assertEquals(PixelFormat.TRANSLUCENT, layerDrawable.getOpacity()); in testAccessOpacity()
616 doReturn(PixelFormat.TRANSLUCENT).when(mockDrawable1).getOpacity(); in testAccessOpacity()
617 doReturn(PixelFormat.UNKNOWN).when(mockDrawable2).getOpacity(); in testAccessOpacity()
[all …]
DCustomDrawableTest.java94 public int getOpacity() { in getOpacity() method in CustomDrawableTest.CustomDrawable
DDrawableWrapperTest.java263 wrapper.getOpacity(); in testGetOpacity()
264 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity()
385 public int getOpacity() { in getOpacity() method in DrawableWrapperTest.MockDrawable
DBitmapDrawableTest.java325 assertEquals(PixelFormat.TRANSLUCENT, bitmapDrawable.getOpacity()); in testGetOpacity()
330 assertEquals(PixelFormat.OPAQUE, bitmapDrawable.getOpacity()); in testGetOpacity()
332 assertEquals(PixelFormat.TRANSLUCENT, bitmapDrawable.getOpacity()); in testGetOpacity()
337 assertEquals(PixelFormat.OPAQUE, bitmapDrawable.getOpacity()); in testGetOpacity()
339 assertEquals(PixelFormat.TRANSLUCENT, bitmapDrawable.getOpacity()); in testGetOpacity()
DPictureDrawableTest.java89 assertEquals(PixelFormat.TRANSLUCENT, pictureDrawable.getOpacity()); in testGetOpacity()
DAnimatedVectorDrawableTest.java188 assertEquals("Default is translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity()
190 assertEquals("Still translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity()
DScaleDrawableTest.java265 scaleDrawable.getOpacity(); in testGetOpacity()
266 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity()
517 public int getOpacity() { in getOpacity() method in ScaleDrawableTest.MockDrawable
DVectorDrawableTest.java398 vectorDrawable.getOpacity()); in testGetOpacity()
403 vectorDrawable.getOpacity()); in testGetOpacity()
DInsetDrawableTest.java253 assertEquals(PixelFormat.OPAQUE, mInsetDrawable.getOpacity()); in testGetOpacity()
256 assertEquals(PixelFormat.TRANSLUCENT, mInsetDrawable.getOpacity()); in testGetOpacity()
DAdaptiveIconDrawableTest.java243 assertEquals(PixelFormat.OPAQUE, iconDrawable.getOpacity()); in testGetOpacity()
246 assertEquals(PixelFormat.TRANSPARENT, iconDrawable.getOpacity()); in testGetOpacity()
DAnimatedStateListDrawableTest.java290 public int getOpacity() { in getOpacity() method in AnimatedStateListDrawableTest.MockDrawable
DNinePatchDrawableTest.java320 assertEquals(PixelFormat.OPAQUE, mNinePatchDrawable.getOpacity()); in testGetOpacity()
323 assertEquals(PixelFormat.TRANSLUCENT, mNinePatchDrawable.getOpacity()); in testGetOpacity()
DRotateDrawableTest.java173 assertEquals(PixelFormat.OPAQUE, mRotateDrawable.getOpacity()); in testGetOpacity()
DDrawableTest.java717 public int getOpacity() { in getOpacity() method in DrawableTest.MockDrawable
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DCanvasClientDrawable.java44 public int getOpacity() { in getOpacity() method in CanvasClientDrawable
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceTest.java171 assertEquals(iconExp.getOpacity(), icon.getOpacity()); in testGetIcon()
/cts/tests/tests/view/src/android/view/cts/
DWindowTest.java398 assertEquals(PixelFormat.OPAQUE, decor.getBackground().getOpacity()); in testSetBackgroundDrawable()
413 assertEquals(PixelFormat.TRANSPARENT, decor.getBackground().getOpacity()); in testSetBackgroundDrawable()
DViewTest.java4291 public int getOpacity() { in getOpacity() method in ViewTest.MockDrawable
/cts/tests/app/src/android/app/cts/
DDialogTest.java907 public int getOpacity() { in getOpacity() method in DialogTest.MockDrawable

12