Searched refs:colorDrawable (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | ColorDrawableTest.java | 47 ColorDrawable colorDrawable = new ColorDrawable(); in testAccessAlpha() local 48 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 50 colorDrawable.setAlpha(128); in testAccessAlpha() 51 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 53 colorDrawable = new ColorDrawable(1 << 24); in testAccessAlpha() 54 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() 56 colorDrawable.setAlpha(128); in testAccessAlpha() 57 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 59 colorDrawable.setAlpha(255); in testAccessAlpha() 60 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() [all …]
|
D | LayerDrawableTest.java | 51 Drawable colorDrawable = new ColorDrawable(Color.BLUE); in testConstructor() local 52 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable }; in testConstructor() 56 assertSame(colorDrawable, layerDrawable.getDrawable(1)); in testConstructor() 126 Drawable colorDrawable = new ColorDrawable(Color.BLUE); in testFindDrawableByLayerId() local 127 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable }; in testFindDrawableByLayerId() 133 assertSame(colorDrawable, layerDrawable.findDrawableByLayerId(20)); in testFindDrawableByLayerId() 139 assertSame(colorDrawable, layerDrawable.findDrawableByLayerId(Integer.MAX_VALUE)); in testFindDrawableByLayerId() 143 assertSame(colorDrawable, layerDrawable.findDrawableByLayerId(10)); in testFindDrawableByLayerId() 208 Drawable colorDrawable = new ColorDrawable(Color.BLUE); in testAccessDrawable() local 209 Drawable[] array = new Drawable[] { bitmapDrawable, colorDrawable }; in testAccessDrawable() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 499 ColorDrawable colorDrawable; in testSetBackgroundColor() local 503 colorDrawable = (ColorDrawable) view.getBackground(); in testSetBackgroundColor() 504 assertNotNull(colorDrawable); in testSetBackgroundColor() 505 assertEquals(0xFF, colorDrawable.getAlpha()); in testSetBackgroundColor() 508 colorDrawable = (ColorDrawable) view.getBackground(); in testSetBackgroundColor() 509 assertNotNull(colorDrawable); in testSetBackgroundColor() 510 assertEquals(0, colorDrawable.getAlpha()); in testSetBackgroundColor()
|