Home
last modified time | relevance | path

Searched refs:bm1 (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/
DBitmapTest.java28 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testBasic() local
32 assertTrue("mutability", bm1.isMutable()); in testBasic()
36 assertEquals("width", 100, bm1.getWidth()); in testBasic()
40 assertEquals("rowbytes", 400, bm1.getRowBytes()); in testBasic()
44 assertEquals("byteCount", 80000, bm1.getByteCount()); in testBasic()
48 assertEquals("height", 200, bm1.getHeight()); in testBasic()
52 assertTrue("hasAlpha", bm1.hasAlpha()); in testBasic()
56 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888); in testBasic()
63 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testMutability() local
67 assertTrue("mutability", bm1.isMutable()); in testMutability()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java47 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap() local
52 final Canvas can1 = new Canvas(bm1); in testWithBitmap()
57 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap()
84 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
88 if (!equalBitmaps(bm1, test1)) { in testWithBitmap()
89 findBitmapDifferences(bm1, test1); in testWithBitmap()
127 final Bitmap bm1 = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888); in testWithAdaptiveBitmap() local
129 final Canvas can1 = new Canvas(bm1); in testWithAdaptiveBitmap()
132 final Icon im1 = Icon.createWithAdaptiveBitmap(bm1); in testWithAdaptiveBitmap()
149 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithAdaptiveBitmap()
[all …]
/frameworks/base/tests/net/java/com/android/internal/util/
DBitUtilsTest.java36 byte bm1 = -1; in testUnsignedByteWideningConversions()
41 assertEquals(255, uint8(bm1)); in testUnsignedByteWideningConversions()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp1467 SkBitmap bm1; in Bitmap_sameAs() local
1480 bitmap1->bitmap().getSkBitmap(&bm1); in Bitmap_sameAs()
1481 if (bm0.width() != bm1.width() in Bitmap_sameAs()
1482 || bm0.height() != bm1.height() in Bitmap_sameAs()
1483 || bm0.colorType() != bm1.colorType() in Bitmap_sameAs()
1484 || bm0.alphaType() != bm1.alphaType() in Bitmap_sameAs()
1485 || !SkColorSpace::Equals(bm0.colorSpace(), bm1.colorSpace())) { in Bitmap_sameAs()
1490 if (NULL == bm0.getPixels() || NULL == bm1.getPixels()) { in Bitmap_sameAs()
1506 void *bm1Addr = bm1.getAddr(0, y); in Bitmap_sameAs()