Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A DBitmapTest.java57 assertTrue("hasAlpha", bm1.hasAlpha()); in testBasic()
75 bm1.eraseColor(0); in testMutability()
305 assertTrue(bm2.sameAs(bm1)); in testCopyWithDirectByteBuffer()
344 assertTrue(bm2.sameAs(bm1)); in testCopyWithDirectShortBuffer()
383 assertTrue(bm2.sameAs(bm1)); in testCopyWithDirectIntBuffer()
409 bm1.copyPixelsToBuffer(heapBuffer); in testCopyWithHeapByteBuffer()
420 assertTrue(bm2.sameAs(bm1)); in testCopyWithHeapByteBuffer()
446 bm1.copyPixelsToBuffer(heapBuffer); in testCopyWithHeapShortBuffer()
457 assertTrue(bm2.sameAs(bm1)); in testCopyWithHeapShortBuffer()
483 bm1.copyPixelsToBuffer(heapBuffer); in testCopyWithHeapIntBuffer()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
H A DIconTest.java49 final Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in testWithBitmap() local
54 final Canvas can1 = new Canvas(bm1); in testWithBitmap()
59 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap()
86 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithBitmap()
90 if (!equalBitmaps(bm1, test1)) { in testWithBitmap()
91 findBitmapDifferences(bm1, test1); in testWithBitmap()
131 final Canvas can1 = new Canvas(bm1); in testWithAdaptiveBitmap()
134 final Icon im1 = Icon.createWithAdaptiveBitmap(bm1); in testWithAdaptiveBitmap()
151 bm1.compress(Bitmap.CompressFormat.PNG, 100, in testWithAdaptiveBitmap()
155 if (!equalBitmaps(bm1, test1, draw1.getSafeZone())) { in testWithAdaptiveBitmap()
[all …]
/aosp14/frameworks/base/libs/hwui/jni/
H A DBitmap.cpp1057 SkBitmap bm1; in Bitmap_sameAs() local
1070 bitmap1->bitmap().getSkBitmap(&bm1); in Bitmap_sameAs()
1071 if (bm0.width() != bm1.width() in Bitmap_sameAs()
1072 || bm0.height() != bm1.height() in Bitmap_sameAs()
1073 || bm0.colorType() != bm1.colorType() in Bitmap_sameAs()
1074 || bm0.alphaType() != bm1.alphaType() in Bitmap_sameAs()
1075 || !SkColorSpace::Equals(bm0.colorSpace(), bm1.colorSpace())) { in Bitmap_sameAs()
1080 if (NULL == bm0.getPixels() || NULL == bm1.getPixels()) { in Bitmap_sameAs()
1096 void *bm1Addr = bm1.getAddr(0, y); in Bitmap_sameAs()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DBitUtilsTest.java51 byte bm1 = -1; in testUnsignedByteWideningConversions()
56 assertEquals(255, uint8(bm1)); in testUnsignedByteWideningConversions()