Searched refs:bm1 (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | BitmapTest.java | 33 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testBasic() local 37 assertTrue("mutability", bm1.isMutable()); in testBasic() 41 assertEquals("width", 100, bm1.getWidth()); in testBasic() 45 assertEquals("rowbytes", 400, bm1.getRowBytes()); in testBasic() 49 assertEquals("byteCount", 80000, bm1.getByteCount()); in testBasic() 53 assertEquals("height", 200, bm1.getHeight()); in testBasic() 57 assertTrue("hasAlpha", bm1.hasAlpha()); in testBasic() 61 assertTrue("getConfig", bm1.getConfig() == Bitmap.Config.ARGB_8888); in testBasic() 68 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testMutability() local 72 assertTrue("mutability", bm1.isMutable()); in testMutability() [all …]
|
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/ |
D | IconTest.java | 48 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap() local 53 final Canvas can1 = new Canvas(bm1); in testWithBitmap() 58 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap() 85 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap() 89 if (!equalBitmaps(bm1, test1)) { in testWithBitmap() 90 findBitmapDifferences(bm1, test1); in testWithBitmap() 128 final Bitmap bm1 = Bitmap.createBitmap(150, 150, Bitmap.Config.ARGB_8888); in testWithAdaptiveBitmap() local 130 final Canvas can1 = new Canvas(bm1); in testWithAdaptiveBitmap() 133 final Icon im1 = Icon.createWithAdaptiveBitmap(bm1); in testWithAdaptiveBitmap() 150 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithAdaptiveBitmap() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | Bitmap.cpp | 1099 SkBitmap bm1; in Bitmap_sameAs() local 1112 bitmap1->bitmap().getSkBitmap(&bm1); in Bitmap_sameAs() 1113 if (bm0.width() != bm1.width() in Bitmap_sameAs() 1114 || bm0.height() != bm1.height() in Bitmap_sameAs() 1115 || bm0.colorType() != bm1.colorType() in Bitmap_sameAs() 1116 || bm0.alphaType() != bm1.alphaType() in Bitmap_sameAs() 1117 || !SkColorSpace::Equals(bm0.colorSpace(), bm1.colorSpace())) { in Bitmap_sameAs() 1122 if (NULL == bm0.getPixels() || NULL == bm1.getPixels()) { in Bitmap_sameAs() 1138 void *bm1Addr = bm1.getAddr(0, y); in Bitmap_sameAs()
|