/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableContainerStateTest.java | 242 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 …]
|
D | DrawableContainerTest.java | 702 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 …]
|
D | ColorDrawableTest.java | 101 assertEquals(PixelFormat.TRANSPARENT, colorDrawable.getOpacity()); in testGetOpacity() 104 assertEquals(PixelFormat.OPAQUE, colorDrawable.getOpacity()); in testGetOpacity() 107 assertEquals(PixelFormat.TRANSLUCENT, colorDrawable.getOpacity()); in testGetOpacity()
|
D | ClipDrawableTest.java | 164 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()
|
D | GradientDrawableTest.java | 78 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()
|
D | ShapeDrawableTest.java | 144 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()
|
D | LayerDrawableTest.java | 597 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 …]
|
D | CustomDrawableTest.java | 94 public int getOpacity() { in getOpacity() method in CustomDrawableTest.CustomDrawable
|
D | DrawableWrapperTest.java | 263 wrapper.getOpacity(); in testGetOpacity() 264 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity() 385 public int getOpacity() { in getOpacity() method in DrawableWrapperTest.MockDrawable
|
D | BitmapDrawableTest.java | 325 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()
|
D | PictureDrawableTest.java | 89 assertEquals(PixelFormat.TRANSLUCENT, pictureDrawable.getOpacity()); in testGetOpacity()
|
D | AnimatedVectorDrawableTest.java | 188 assertEquals("Default is translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity() 190 assertEquals("Still translucent", PixelFormat.TRANSLUCENT, d1.getOpacity()); in testGetOpacity()
|
D | ScaleDrawableTest.java | 265 scaleDrawable.getOpacity(); in testGetOpacity() 266 verify(mockDrawable, times(1)).getOpacity(); in testGetOpacity() 517 public int getOpacity() { in getOpacity() method in ScaleDrawableTest.MockDrawable
|
D | VectorDrawableTest.java | 398 vectorDrawable.getOpacity()); in testGetOpacity() 403 vectorDrawable.getOpacity()); in testGetOpacity()
|
D | InsetDrawableTest.java | 253 assertEquals(PixelFormat.OPAQUE, mInsetDrawable.getOpacity()); in testGetOpacity() 256 assertEquals(PixelFormat.TRANSLUCENT, mInsetDrawable.getOpacity()); in testGetOpacity()
|
D | AdaptiveIconDrawableTest.java | 243 assertEquals(PixelFormat.OPAQUE, iconDrawable.getOpacity()); in testGetOpacity() 246 assertEquals(PixelFormat.TRANSPARENT, iconDrawable.getOpacity()); in testGetOpacity()
|
D | AnimatedStateListDrawableTest.java | 290 public int getOpacity() { in getOpacity() method in AnimatedStateListDrawableTest.MockDrawable
|
D | NinePatchDrawableTest.java | 320 assertEquals(PixelFormat.OPAQUE, mNinePatchDrawable.getOpacity()); in testGetOpacity() 323 assertEquals(PixelFormat.TRANSLUCENT, mNinePatchDrawable.getOpacity()); in testGetOpacity()
|
D | RotateDrawableTest.java | 173 assertEquals(PixelFormat.OPAQUE, mRotateDrawable.getOpacity()); in testGetOpacity()
|
D | DrawableTest.java | 717 public int getOpacity() { in getOpacity() method in DrawableTest.MockDrawable
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | CanvasClientDrawable.java | 44 public int getOpacity() { in getOpacity() method in CanvasClientDrawable
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | PreferenceTest.java | 171 assertEquals(iconExp.getOpacity(), icon.getOpacity()); in testGetIcon()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | WindowTest.java | 398 assertEquals(PixelFormat.OPAQUE, decor.getBackground().getOpacity()); in testSetBackgroundDrawable() 413 assertEquals(PixelFormat.TRANSPARENT, decor.getBackground().getOpacity()); in testSetBackgroundDrawable()
|
D | ViewTest.java | 4291 public int getOpacity() { in getOpacity() method in ViewTest.MockDrawable
|
/cts/tests/app/src/android/app/cts/ |
D | DialogTest.java | 907 public int getOpacity() { in getOpacity() method in DialogTest.MockDrawable
|