Home
last modified time | relevance | path

Searched refs:bm2 (Results 1 – 2 of 2) 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/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java49 final Bitmap bm2 = Bitmap.createBitmap(100, 200, Bitmap.Config.RGB_565); in testWithBitmap() local
55 final Canvas can2 = new Canvas(bm2); in testWithBitmap()
59 final Icon im2 = Icon.createWithBitmap(bm2); in testWithBitmap()
94 bm2.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
98 if (!equalBitmaps(bm2, test2)) { in testWithBitmap()
99 findBitmapDifferences(bm2, test2); in testWithBitmap()