Home
last modified time | relevance | path

Searched refs:bm2 (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java34 Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testBasic() local
38 assertTrue("mutability", bm2.isMutable()); in testBasic()
42 assertEquals("width", 100, bm2.getWidth()); in testBasic()
46 assertEquals("rowbytes", 200, bm2.getRowBytes()); in testBasic()
50 assertEquals("byteCount", 40000, bm2.getByteCount()); in testBasic()
54 assertEquals("height", 200, bm2.getHeight()); in testBasic()
58 assertFalse("hasAlpha", bm2.hasAlpha()); in testBasic()
62 assertTrue("getConfig", bm2.getConfig() == Bitmap.Config.RGB_565); in testBasic()
69 Bitmap bm2 = Bitmap.createBitmap(new int[100 * 200], 100, 200, in testMutability() local
73 assertFalse("mutability", bm2.isMutable()); in testMutability()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileRequestDialogTest.kt284 val bm2 = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888) in areDrawablesEqual() constant
287 val canvas2 = Canvas(bm2) in areDrawablesEqual()
295 return equalBitmaps(bm1, bm2).also { in areDrawablesEqual()
297 bm2.recycle() in areDrawablesEqual()
DCustomTileTest.kt531 val bm2 = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888) in areDrawablesEqual() constant
534 val canvas2 = Canvas(bm2) in areDrawablesEqual()
542 return equalBitmaps(bm1, bm2).also { in areDrawablesEqual()
544 bm2.recycle() in areDrawablesEqual()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java81 final Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testWithBitmap() local
87 final Canvas can2 = new Canvas(bm2); in testWithBitmap()
91 final Icon im2 = Icon.createWithBitmap(bm2); in testWithBitmap()
126 bm2.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
130 if (!equalBitmaps(bm2, test2)) { in testWithBitmap()
131 findBitmapDifferences(bm2, test2); in testWithBitmap()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java818 Bitmap bm2 = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888); in areDrawablesEqual() local
821 Canvas canvas2 = new Canvas(bm2); in areDrawablesEqual()
829 boolean areBitmapsEqual = areBitmapsEqual(bm1, bm2); in areDrawablesEqual()
831 bm2.recycle(); in areDrawablesEqual()