Searched refs:bm1 (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
D | BitmapTest.java | 27 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testBasic() local 31 assertTrue("mutability", bm1.isMutable()); in testBasic() 35 assertEquals("width", 100, bm1.getWidth()); in testBasic() 39 assertEquals("rowbytes", 400, bm1.getRowBytes()); in testBasic() 43 assertEquals("byteCount", 80000, bm1.getByteCount()); in testBasic() 47 assertEquals("height", 200, bm1.getHeight()); in testBasic() 51 assertTrue("hasAlpha", bm1.hasAlpha()); in testBasic() 55 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888); in testBasic() 62 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testMutability() local 66 assertTrue("mutability", bm1.isMutable()); in testMutability() [all …]
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/ |
D | IconTest.java | 45 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap() local 50 final Canvas can1 = new Canvas(bm1); in testWithBitmap() 55 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap() 82 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap() 86 if (!equalBitmaps(bm1, test1)) { in testWithBitmap() 87 findBitmapDifferences(bm1, test1); in testWithBitmap()
|
/frameworks/base/core/jni/android/graphics/ |
D | Bitmap.cpp | 1300 SkBitmap bm1; in Bitmap_sameAs() local 1302 reinterpret_cast<Bitmap*>(bm1Handle)->getSkBitmap(&bm1); in Bitmap_sameAs() 1303 if (bm0.width() != bm1.width() || in Bitmap_sameAs() 1304 bm0.height() != bm1.height() || in Bitmap_sameAs() 1305 bm0.colorType() != bm1.colorType()) { in Bitmap_sameAs() 1310 SkAutoLockPixels alp1(bm1); in Bitmap_sameAs() 1313 if (NULL == bm0.getPixels() || NULL == bm1.getPixels()) { in Bitmap_sameAs() 1319 SkColorTable* ct1 = bm1.getColorTable(); in Bitmap_sameAs() 1345 void *bm1Addr = bm1.getAddr(0, y); in Bitmap_sameAs()
|