Searched refs:bm1 (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java27 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888);
31 assertTrue("mutability", bm1.isMutable());
35 assertEquals("width", 100, bm1.getWidth());
39 assertEquals("rowbytes", 400, bm1.getRowBytes());
43 assertEquals("byteCount", 80000, bm1.getByteCount());
47 assertEquals("height", 200, bm1.getHeight());
51 assertTrue("hasAlpha", bm1.hasAlpha());
55 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888);
62 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888);
66 assertTrue("mutability", bm1
[all...]
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/
H A DIconTest.java45 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888);
50 final Canvas can1 = new Canvas(bm1);
55 final Icon im1 = Icon.createWithBitmap(bm1);
82 bm1.compress(Bitmap.CompressFormat.PNG, 100,
86 if (!equalBitmaps(bm1, test1)) {
87 findBitmapDifferences(bm1, test1);
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp1299 SkBitmap bm1; local
1301 reinterpret_cast<Bitmap*>(bm1Handle)->getSkBitmap(&bm1);
1302 if (bm0.width() != bm1.width() ||
1303 bm0.height() != bm1.height() ||
1304 bm0.colorType() != bm1.colorType()) {
1309 SkAutoLockPixels alp1(bm1);
1312 if (NULL == bm0.getPixels() || NULL == bm1.getPixels()) {
1318 SkColorTable* ct1 = bm1.getColorTable();
1340 // and bm1 both have pixel data() (have passed NULL == getPixels() check),
1344 void *bm1Addr = bm1
[all...]

Completed in 280 milliseconds