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

/frameworks/base/core/tests/coretests/src/android/graphics/
H A DBitmapTest.java28 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888);
32 assertTrue("mutability", bm1.isMutable());
36 assertEquals("width", 100, bm1.getWidth());
40 assertEquals("rowbytes", 400, bm1.getRowBytes());
44 assertEquals("byteCount", 80000, bm1.getByteCount());
48 assertEquals("height", 200, bm1.getHeight());
52 assertTrue("hasAlpha", bm1.hasAlpha());
56 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888);
63 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888);
67 assertTrue("mutability", bm1
[all...]
/frameworks/base/core/tests/coretests/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);
112 final Bitmap bm1 = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888);
114 final Canvas can1 = new Canvas(bm1);
117 final Icon im1 = Icon.createWithAdaptiveBitmap(bm1);
134 bm1
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp1504 SkBitmap bm1; local
1517 bitmap1->bitmap().getSkBitmap(&bm1);
1518 if (bm0.width() != bm1.width()
1519 || bm0.height() != bm1.height()
1520 || bm0.colorType() != bm1.colorType()
1521 || bm0.alphaType() != bm1.alphaType()
1522 || !SkColorSpace::Equals(bm0.colorSpace(), bm1.colorSpace())) {
1527 SkAutoLockPixels alp1(bm1);
1530 if (NULL == bm0.getPixels() || NULL == bm1.getPixels()) {
1536 SkColorTable* ct1 = bm1
[all...]

Completed in 279 milliseconds