/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableContainerStateTest.java | 243 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 …]
|
D | DrawableContainerTest.java | 714 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 …]
|
D | ColorDrawableTest.java | 103 assertEquals(PixelFormat.TRANSPARENT, colorDrawable.getOpacity()); in testGetOpacity() 106 assertEquals(PixelFormat.OPAQUE, colorDrawable.getOpacity()); in testGetOpacity() 109 assertEquals(PixelFormat.TRANSLUCENT, colorDrawable.getOpacity()); in testGetOpacity()
|
D | GradientDrawableTest.java | 82 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()
|
D | ClipDrawableTest.java | 165 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()
|
D | ColorStateListDrawableTest.java | 115 assertEquals(mDrawable.getOpacity(), PixelFormat.TRANSLUCENT); in testAlpha() 119 assertEquals(mDrawable.getOpacity(), PixelFormat.TRANSPARENT); in testAlpha() 124 assertEquals(mDrawable.getOpacity(), PixelFormat.OPAQUE); in testAlpha()
|
D | LayerDrawableTest.java | 598 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 …]
|
D | ShapeDrawableTest.java | 145 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()
|
D | BitmapDrawableTest.java | 348 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()
|
D | CustomDrawableTest.java | 95 public int getOpacity() { in getOpacity() method in CustomDrawableTest.CustomDrawable
|
D | DrawableTest.java | 906 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
|
D | DrawableWrapperTest.java | 288 wrapper.getOpacity(); in testGetOpacity() 289 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity() 427 public int getOpacity() { in getOpacity() method in DrawableWrapperTest.MockDrawable
|
D | PictureDrawableTest.java | 90 assertEquals(PixelFormat.TRANSLUCENT, pictureDrawable.getOpacity()); in testGetOpacity()
|
D | AnimatedVectorDrawableTest.java | 199 assertEquals("Default is translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity() 201 assertEquals("Still translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity()
|
D | ScaleDrawableTest.java | 266 scaleDrawable.getOpacity(); in testGetOpacity() 267 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity() 518 public int getOpacity() { in getOpacity() method in ScaleDrawableTest.MockDrawable
|
D | VectorDrawableTest.java | 397 vectorDrawable.getOpacity()); in testGetOpacity() 402 vectorDrawable.getOpacity()); in testGetOpacity()
|
D | AdaptiveIconDrawableTest.java | 270 assertEquals(PixelFormat.TRANSLUCENT, iconDrawable.getOpacity()); in testGetOpacity() 273 assertEquals(PixelFormat.TRANSLUCENT, iconDrawable.getOpacity()); in testGetOpacity()
|
D | InsetDrawableTest.java | 252 assertEquals(PixelFormat.OPAQUE, mInsetDrawable.getOpacity()); in testGetOpacity() 255 assertEquals(PixelFormat.TRANSLUCENT, mInsetDrawable.getOpacity()); in testGetOpacity()
|
D | AnimatedStateListDrawableTest.java | 293 public int getOpacity() { in getOpacity() method in AnimatedStateListDrawableTest.MockDrawable
|
D | NinePatchDrawableTest.java | 332 assertEquals(PixelFormat.OPAQUE, mNinePatchDrawable.getOpacity()); in testGetOpacity() 335 assertEquals(PixelFormat.TRANSLUCENT, mNinePatchDrawable.getOpacity()); in testGetOpacity()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | CanvasClientDrawable.java | 44 public int getOpacity() { in getOpacity() method in CanvasClientDrawable
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/ |
D | CanvasClientDrawable.java | 44 public int getOpacity() { in getOpacity() method in CanvasClientDrawable
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | MyDrawable.java | 70 public int getOpacity() { in getOpacity() method in MyDrawable
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceTest.java | 169 assertEquals(iconExp.getOpacity(), icon.getOpacity()); in testGetIcon()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsPresenterDrawable.java | 167 public int getOpacity() { in getOpacity() method in WindowInsetsPresenterDrawable
|