/external/valgrind/main/drd/tests/ |
unit_bitmap.c | 89 int bm_equal_print_diffs(struct bitmap* bm1, struct bitmap* bm2) 93 equal = DRD_(bm_equal)(bm1, bm2); 101 if (DRD_(bm_has_1)(bm1, i, eLoad) != DRD_(bm_has_1)(bm2, i, eLoad) 102 || DRD_(bm_has_1)(bm1, i, eStore) != DRD_(bm_has_1)(bm2, i, eStore)) 106 DRD_(bm_has_1)(bm1, i, eLoad) ? 'R' : ' ', 107 DRD_(bm_has_1)(bm1, i, eStore) ? 'W' : ' ', 163 struct bitmap* bm1; local 166 bm1 = DRD_(bm_new)(); 168 DRD_(bm_access_load_1)(bm1, 7); 170 assert(! DRD_(bm_equal)(bm1, bm2)) 186 struct bitmap* bm1; local [all...] |
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 27 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 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); local 66 assertTrue("mutability", bm1.isMutable()) 130 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config); local 156 Bitmap bm1 = Bitmap.createBitmap(colors, 10, 10, config); local 188 Bitmap bm1 = Bitmap.createBitmap(colors, 16, 16, config); local [all...] |
/external/e2fsprogs/lib/ext2fs/ |
gen_bitmap.c | 267 ext2fs_generic_bitmap bm1, 272 if (!bm1 || bm1->magic != magic) 277 if ((bm1->start != bm2->start) || 278 (bm1->end != bm2->end) || 279 (memcmp(bm1->bitmap, bm2->bitmap, 280 (size_t) (bm1->end - bm1->start)/8))) 283 for (i = bm1->end - ((bm1->end - bm1->start) % 8); i <= bm1->end; i++ [all...] |
bitmaps.c | 133 errcode_t ext2fs_compare_block_bitmap(ext2fs_block_bitmap bm1, 138 bm1, bm2)); 141 errcode_t ext2fs_compare_inode_bitmap(ext2fs_inode_bitmap bm1, 146 bm1, bm2));
|
ext2fs.h | 667 extern errcode_t ext2fs_compare_block_bitmap(ext2fs_block_bitmap bm1, 669 extern errcode_t ext2fs_compare_inode_bitmap(ext2fs_inode_bitmap bm1, 926 ext2fs_generic_bitmap bm1, [all...] |
/external/valgrind/main/drd/ |
drd_bitmap.c | 176 bm2->bm1.bm0_r[k] = ~(UWord)0; 183 bm0_set(bm2->bm1.bm0_r, b0); 273 bm2->bm1.bm0_w[k] = ~(UWord)0; 280 bm0_set(bm2->bm1.bm0_w, b0); 353 const struct bitmap1* const p1 = &bm2->bm1; 406 const struct bitmap1* const p1 = &bm2->bm1; 461 const struct bitmap1* const p1 = &bm2->bm1; 513 p1 = &p2->bm1; 562 bm0_clear_range(p2->bm1.bm0_r, address_lsb(c), SCALED_SIZE(c_next - c)); 563 bm0_clear_range(p2->bm1.bm0_w, address_lsb(c), SCALED_SIZE(c_next - c)) 1194 const struct bitmap1* bm1; local [all...] |
drd_bitmap.h | 336 struct bitmap1 bm1; 549 VG_(memset)(&bm2->bm1, 0, sizeof(bm2->bm1)); 587 VG_(memcpy)(&bm2_copy->bm1, &bm2->bm1, sizeof(bm2->bm1)); 668 bm0_set_range(bm2->bm1.bm0_r, 684 bm0_set_range(bm2->bm1.bm0_w, 701 && bm0_is_any_set(bm2->bm1.bm0_w, 719 if (bm0_is_any_set(bm2->bm1.bm0_r, address_lsb(a), SCALED_SIZE(size) [all...] |
pub_drd_bitmap.h | 133 void DRD_(bm_swap)(struct bitmap* const bm1, struct bitmap* const bm2); 137 void DRD_(bm_mark)(struct bitmap* bm1, struct bitmap* bm2); 141 int DRD_(bm_has_races)(struct bitmap* const bm1, 144 struct bitmap* const bm1,
|
/external/skia/samplecode/ |
SampleXfermodes.cpp | 40 SkBitmap bm1, bm2, bm3; 41 bm1.setConfig(SkBitmap::kRGB_565_Config, width, 256); bm1.allocPixels(NULL); 52 sk_memset16(bm1.getAddr16(0, alpha), newdst, bm1.width()); 74 canvas->drawBitmap(bm1, 0, 0, NULL); canvas->translate(dx, 0); 78 SkRect rect = { 0, 0, SkIntToScalar(bm1.width()), SkIntToScalar(bm1.height()) };
|
/external/skia/bench/ |
benchmain.cpp | 37 static bool equal(const SkBitmap& bm1, const SkBitmap& bm2) { 38 if (bm1.width() != bm2.width() || 39 bm1.height() != bm2.height() || 40 bm1.config() != bm2.config()) { 44 size_t pixelBytes = bm1.width() * bm1.bytesPerPixel(); 45 for (int y = 0; y < bm1.height(); y++) { 46 if (memcmp(bm1.getAddr(0, y), bm2.getAddr(0, y), pixelBytes)) {
|
/frameworks/base/core/jni/android/graphics/ |
Bitmap.cpp | 587 const SkBitmap* bm1) {
588 if (bm0->width() != bm1->width() ||
589 bm0->height() != bm1->height() ||
590 bm0->config() != bm1->config()) {
595 SkAutoLockPixels alp1(*bm1);
598 if (NULL == bm0->getPixels() || NULL == bm1->getPixels()) {
604 SkColorTable* ct1 = bm1->getColorTable();
626 if (memcmp(bm0->getAddr(0, y), bm1->getAddr(0, y), size) != 0) {
|
/external/skia/tests/ |
BitmapCopyTest.cpp | 207 void reportCopyVerification(const SkBitmap& bm1, const SkBitmap& bm2, 216 (getPixel(coords[i]->fX, coords[i]->fY, bm1) == 222 msg, getSkConfigName(bm1));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapTest.java | 470 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 475 assertEquals(Bitmap.Config.ARGB_8888, bm1.getConfig()); 543 Bitmap bm1 = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); local 548 assertEquals(400, bm1.getRowBytes());
|