/external/e2fsprogs/lib/ext2fs/ |
D | gen_bitmap.c | 36 char * bitmap; member 55 void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, in ext2fs_warn_bitmap2() argument 59 if (bitmap->description) in ext2fs_warn_bitmap2() 60 com_err(0, bitmap->base_error_code+code, in ext2fs_warn_bitmap2() 61 "#%lu for %s", arg, bitmap->description); in ext2fs_warn_bitmap2() 63 com_err(0, bitmap->base_error_code + code, "#%lu", arg); in ext2fs_warn_bitmap2() 67 static errcode_t check_magic(ext2fs_generic_bitmap bitmap) in check_magic() argument 69 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || in check_magic() 70 (bitmap->magic == EXT2_ET_MAGIC_INODE_BITMAP) || in check_magic() 71 (bitmap->magic == EXT2_ET_MAGIC_BLOCK_BITMAP))) in check_magic() [all …]
|
D | bitops.h | 53 extern void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap, 65 extern int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 66 extern int ext2fs_unmark_block_bitmap(ext2fs_block_bitmap bitmap, 68 extern int ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block); 70 extern int ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 71 extern int ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap, 73 extern int ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode); 75 extern void ext2fs_fast_mark_block_bitmap(ext2fs_block_bitmap bitmap, 77 extern void ext2fs_fast_unmark_block_bitmap(ext2fs_block_bitmap bitmap, 79 extern int ext2fs_fast_test_block_bitmap(ext2fs_block_bitmap bitmap, [all …]
|
D | gen_bitmap64.c | 70 static void warn_bitmap(ext2fs_generic_bitmap bitmap, in warn_bitmap() argument 74 if (bitmap->description) in warn_bitmap() 75 com_err(0, bitmap->base_error_code+code, in warn_bitmap() 76 "#%llu for %s", arg, bitmap->description); in warn_bitmap() 78 com_err(0, bitmap->base_error_code + code, "#%llu", arg); in warn_bitmap() 95 ext2fs_generic_bitmap bitmap; in ext2fs_alloc_generic_bmap() local 122 &bitmap); in ext2fs_alloc_generic_bmap() 127 if (gettimeofday(&bitmap->stats.created, in ext2fs_alloc_generic_bmap() 130 ext2fs_free_mem(&bitmap); in ext2fs_alloc_generic_bmap() 133 bitmap->stats.type = type; in ext2fs_alloc_generic_bmap() [all …]
|
D | blkmap64_ba.c | 42 static errcode_t ba_alloc_private_data (ext2fs_generic_bitmap bitmap) in ba_alloc_private_data() argument 58 size = (size_t) (((bitmap->real_end - bitmap->start) / 8) + 1); in ba_alloc_private_data() 66 bitmap->private = (void *) bp; in ba_alloc_private_data() 71 ext2fs_generic_bitmap bitmap) in ba_new_bmap() argument 77 retval = ba_alloc_private_data (bitmap); in ba_new_bmap() 81 bp = (ext2fs_ba_private) bitmap->private; in ba_new_bmap() 82 size = (size_t) (((bitmap->real_end - bitmap->start) / 8) + 1); in ba_new_bmap() 88 static void ba_free_bmap(ext2fs_generic_bitmap bitmap) in ba_free_bmap() argument 90 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_free_bmap() 164 static int ba_mark_bmap(ext2fs_generic_bitmap bitmap, __u64 arg) in ba_mark_bmap() argument [all …]
|
/external/valgrind/main/drd/ |
D | pub_drd_bitmap.h | 53 struct bitmap; 69 struct bitmap struct 80 struct bitmap* DRD_(bm_new)(void); argument 81 void DRD_(bm_delete)(struct bitmap* const bm); 82 void DRD_(bm_init)(struct bitmap* const bm); 83 void DRD_(bm_cleanup)(struct bitmap* const bm); 84 void DRD_(bm_access_range)(struct bitmap* const bm, 87 void DRD_(bm_access_range_load)(struct bitmap* const bm, 89 void DRD_(bm_access_load_1)(struct bitmap* const bm, const Addr a1); 90 void DRD_(bm_access_load_2)(struct bitmap* const bm, const Addr a1); [all …]
|
/external/e2fsprogs/tests/r_move_itable/ |
D | expect | 50 Block bitmap at 130 (+129), Inode bitmap at 131 (+130) 58 Block bitmap at 386 (+129), Inode bitmap at 387 (+130) 64 Block bitmap at 513 (+0), Inode bitmap at 514 (+1) 72 Block bitmap at 898 (+129), Inode bitmap at 899 (+130) 78 Block bitmap at 1025 (+0), Inode bitmap at 1026 (+1) 86 Block bitmap at 1410 (+129), Inode bitmap at 1411 (+130) 92 Block bitmap at 1537 (+0), Inode bitmap at 1538 (+1) 100 Block bitmap at 1922 (+129), Inode bitmap at 1923 (+130) 106 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1) 114 Block bitmap at 2434 (+129), Inode bitmap at 2435 (+130) [all …]
|
/external/e2fsprogs/tests/m_meta_bg/ |
D | expect.1 | 59 Block bitmap at 3 (+2), Inode bitmap at 4 (+3) 66 Block bitmap at 1027 (+2), Inode bitmap at 1028 (+3) 72 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1) 79 Block bitmap at 3074 (+1), Inode bitmap at 3075 (+2) 85 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1) 92 Block bitmap at 5122 (+1), Inode bitmap at 5123 (+2) 98 Block bitmap at 6145 (+0), Inode bitmap at 6146 (+1) 105 Block bitmap at 7170 (+1), Inode bitmap at 7171 (+2) 111 Block bitmap at 8193 (+0), Inode bitmap at 8194 (+1) 118 Block bitmap at 9218 (+1), Inode bitmap at 9219 (+2) [all …]
|
/external/e2fsprogs/tests/r_resize_inode/ |
D | expect | 48 Block bitmap at 259 (+258), Inode bitmap at 260 (+259) 56 Block bitmap at 1283 (+258), Inode bitmap at 1284 (+259) 62 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1) 70 Block bitmap at 3331 (+258), Inode bitmap at 3332 (+259) 76 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1) 84 Block bitmap at 5379 (+258), Inode bitmap at 5380 (+259) 90 Block bitmap at 6145 (+0), Inode bitmap at 6146 (+1) 98 Block bitmap at 7427 (+258), Inode bitmap at 7428 (+259) 104 Block bitmap at 8193 (+0), Inode bitmap at 8194 (+1) 112 Block bitmap at 9475 (+258), Inode bitmap at 9476 (+259) [all …]
|
/external/e2fsprogs/tests/m_desc_size_128/ |
D | expect.1 | 63 Block bitmap at 274 (+273), Inode bitmap at 275 (+274) 71 Block bitmap at 1298 (+273), Inode bitmap at 1299 (+274) 77 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1) 85 Block bitmap at 3346 (+273), Inode bitmap at 3347 (+274) 91 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1) 99 Block bitmap at 5394 (+273), Inode bitmap at 5395 (+274) 105 Block bitmap at 6145 (+0), Inode bitmap at 6146 (+1) 113 Block bitmap at 7442 (+273), Inode bitmap at 7443 (+274) 119 Block bitmap at 8193 (+0), Inode bitmap at 8194 (+1) 127 Block bitmap at 9490 (+273), Inode bitmap at 9491 (+274) [all …]
|
/external/e2fsprogs/tests/m_raid_opt/ |
D | expect.1 | 63 Block bitmap at 294 (+293), Inode bitmap at 295 (+294) 71 Block bitmap at 1331 (+306), Inode bitmap at 1332 (+307) 77 Block bitmap at 2107 (+58), Inode bitmap at 2108 (+59) 85 Block bitmap at 3405 (+332), Inode bitmap at 3406 (+333) 91 Block bitmap at 4181 (+84), Inode bitmap at 4182 (+85) 99 Block bitmap at 5479 (+358), Inode bitmap at 5480 (+359) 105 Block bitmap at 6255 (+110), Inode bitmap at 6256 (+111) 113 Block bitmap at 7553 (+384), Inode bitmap at 7554 (+385) 119 Block bitmap at 8329 (+136), Inode bitmap at 8330 (+137) 127 Block bitmap at 9627 (+410), Inode bitmap at 9628 (+411) [all …]
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | BitmapFactoryTest.java | 22 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_shouldSetDescription() local 23 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()); in decodeResource_shouldSetDescription() 24 assertEquals(100, bitmap.getWidth()); in decodeResource_shouldSetDescription() 25 assertEquals(100, bitmap.getHeight()); in decodeResource_shouldSetDescription() 31 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResourceWithOpts_shouldSetDescription() local 32 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()); in decodeResourceWithOpts_shouldSetDescription() 33 assertEquals(100, bitmap.getWidth()); in decodeResourceWithOpts_shouldSetDescription() 34 assertEquals(100, bitmap.getHeight()); in decodeResourceWithOpts_shouldSetDescription() 41 Bitmap bitmap = BitmapFactory.decodeFile("/some/file.jpg"); in decodeFile_shouldSetDescription() local 42 assertEquals("Bitmap for file:/some/file.jpg", shadowOf(bitmap).getDescription()); in decodeFile_shouldSetDescription() [all …]
|
/external/chromium_org/ui/gfx/image/ |
D | image_util.cc | 21 scoped_ptr<SkBitmap> bitmap(gfx::JPEGCodec::Decode(input, input_size)); in ImageFrom1xJPEGEncodedData() local 22 if (bitmap.get()) in ImageFrom1xJPEGEncodedData() 23 return Image::CreateFrom1xBitmap(*bitmap); in ImageFrom1xJPEGEncodedData() 35 const SkBitmap& bitmap = image_skia_rep.sk_bitmap(); in JPEG1xEncodedDataFromImage() local 36 SkAutoLockPixels bitmap_lock(bitmap); in JPEG1xEncodedDataFromImage() 38 if (!bitmap.readyToDraw()) in JPEG1xEncodedDataFromImage() 42 reinterpret_cast<unsigned char*>(bitmap.getAddr32(0, 0)), in JPEG1xEncodedDataFromImage() 43 gfx::JPEGCodec::FORMAT_SkBitmap, bitmap.width(), in JPEG1xEncodedDataFromImage() 44 bitmap.height(), in JPEG1xEncodedDataFromImage() 45 static_cast<int>(bitmap.rowBytes()), quality, in JPEG1xEncodedDataFromImage() [all …]
|
/external/jemalloc/test/unit/ |
D | bitmap.c | 32 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * in TEST_BEGIN() local 34 bitmap_init(bitmap, &binfo); in TEST_BEGIN() 37 assert_false(bitmap_get(bitmap, &binfo, j), in TEST_BEGIN() 40 free(bitmap); in TEST_BEGIN() 55 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * in TEST_BEGIN() local 57 bitmap_init(bitmap, &binfo); in TEST_BEGIN() 60 bitmap_set(bitmap, &binfo, j); in TEST_BEGIN() 61 assert_true(bitmap_full(bitmap, &binfo), in TEST_BEGIN() 63 free(bitmap); in TEST_BEGIN() 78 bitmap_t *bitmap = malloc(sizeof(bitmap_t) * in TEST_BEGIN() local [all …]
|
/external/e2fsprogs/tests/m_bigjournal/ |
D | expect.1 | 53 Block bitmap at 673 (+673), Inode bitmap at 1185 (+1185) 61 Block bitmap at 674 (bg #0 + 674), Inode bitmap at 1186 (bg #0 + 1186) 67 Block bitmap at 675 (bg #0 + 675), Inode bitmap at 1187 (bg #0 + 1187) 75 Block bitmap at 676 (bg #0 + 676), Inode bitmap at 1188 (bg #0 + 1188) 81 Block bitmap at 677 (bg #0 + 677), Inode bitmap at 1189 (bg #0 + 1189) 89 Block bitmap at 678 (bg #0 + 678), Inode bitmap at 1190 (bg #0 + 1190) 95 Block bitmap at 679 (bg #0 + 679), Inode bitmap at 1191 (bg #0 + 1191) 103 Block bitmap at 680 (bg #0 + 680), Inode bitmap at 1192 (bg #0 + 1192) 109 Block bitmap at 681 (bg #0 + 681), Inode bitmap at 1193 (bg #0 + 1193) 117 Block bitmap at 682 (bg #0 + 682), Inode bitmap at 1194 (bg #0 + 1194) [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
D | GraphicsContextTest.cpp | 48 #define EXPECT_PIXELS_MATCH(bitmap, opaqueRect) \ argument 50 SkAutoLockPixels locker(bitmap); \ 53 int alpha = *bitmap.getAddr32(x, y) >> 24; \ 58 #define EXPECT_PIXELS_MATCH_EXACT(bitmap, opaqueRect) \ argument 60 SkAutoLockPixels locker(bitmap); \ 61 for (int y = 0; y < bitmap.height(); ++y) \ 62 for (int x = 0; x < bitmap.width(); ++x) { \ 63 int alpha = *bitmap.getAddr32(x, y) >> 24; \ 71 SkBitmap bitmap; in TEST() local 72 bitmap.allocN32Pixels(400, 400); in TEST() [all …]
|
/external/chromium_org/ui/gfx/ |
D | icon_util_unittest.cc | 54 SkBitmap bitmap; in CreateBlackSkBitmap() local 55 bitmap.allocN32Pixels(width, height); in CreateBlackSkBitmap() 57 memset(bitmap.getPixels(), 0, width * height * 4); in CreateBlackSkBitmap() 58 return bitmap; in CreateBlackSkBitmap() 134 SkBitmap bitmap = image.AsBitmap(); in CheckAllIconSizes() local 135 EXPECT_EQ(256, bitmap.width()); in CheckAllIconSizes() 136 EXPECT_EQ(256, bitmap.height()); in CheckAllIconSizes() 161 scoped_ptr<SkBitmap> bitmap; in TEST_F() local 162 bitmap.reset(IconUtil::CreateSkBitmapFromHICON(icon, icon_size)); in TEST_F() 163 EXPECT_NE(bitmap.get(), static_cast<SkBitmap*>(NULL)); in TEST_F() [all …]
|
/external/chromium_org/net/disk_cache/blockfile/ |
D | bitmap_unittest.cc | 26 disk_cache::Bitmap bitmap(80, true); in TEST() local 30 EXPECT_EQ(80, bitmap.Size()); in TEST() 31 EXPECT_EQ(3, bitmap.ArraySize()); in TEST() 34 EXPECT_EQ(0U, bitmap.GetMapElement(1)); in TEST() 35 bitmap.SetMapElement(1, kValue); in TEST() 36 EXPECT_EQ(kValue, bitmap.GetMapElement(1)); in TEST() 39 EXPECT_TRUE(bitmap.Get(48)); in TEST() 40 EXPECT_FALSE(bitmap.Get(49)); in TEST() 41 EXPECT_FALSE(bitmap.Get(50)); in TEST() 42 bitmap.Set(49, true); in TEST() [all …]
|
/external/skia/src/gpu/ |
D | SkGr.cpp | 35 static void build_compressed_data(void* buffer, const SkBitmap& bitmap) { in build_compressed_data() argument 36 SkASSERT(kIndex_8_SkColorType == bitmap.colorType()); in build_compressed_data() 38 SkAutoLockPixels alp(bitmap); in build_compressed_data() 39 if (!bitmap.readyToDraw()) { in build_compressed_data() 44 SkColorTable* ctable = bitmap.getColorTable(); in build_compressed_data() 68 if ((unsigned)bitmap.width() == bitmap.rowBytes()) { in build_compressed_data() 69 memcpy(dst, bitmap.getPixels(), bitmap.getSize()); in build_compressed_data() 72 size_t width = bitmap.width(); in build_compressed_data() 73 size_t rowBytes = bitmap.rowBytes(); in build_compressed_data() 74 const char* src = (const char*)bitmap.getPixels(); in build_compressed_data() [all …]
|
/external/chromium_org/ui/base/cursor/ |
D | cursor_loader_x11_unittest.cc | 18 SkBitmap bitmap; in TEST() local 19 bitmap.allocN32Pixels(10, 5); in TEST() 20 bitmap.eraseColor(SK_ColorBLACK); in TEST() 26 &bitmap, in TEST() 28 EXPECT_EQ(10, bitmap.width()); in TEST() 29 EXPECT_EQ(5, bitmap.height()); in TEST() 34 &bitmap, in TEST() 37 EXPECT_EQ(5, bitmap.width()); in TEST() 38 EXPECT_EQ(10, bitmap.height()); in TEST() 43 &bitmap, in TEST() [all …]
|
D | cursor_util.cc | 20 SkBitmap* bitmap, in ScaleAndRotateCursorBitmapAndHotpoint() argument 26 hotpoint->SetPoint(bitmap->height() - hotpoint->y(), hotpoint->x()); in ScaleAndRotateCursorBitmapAndHotpoint() 27 *bitmap = SkBitmapOperations::Rotate( in ScaleAndRotateCursorBitmapAndHotpoint() 28 *bitmap, SkBitmapOperations::ROTATION_90_CW); in ScaleAndRotateCursorBitmapAndHotpoint() 32 bitmap->width() - hotpoint->x(), bitmap->height() - hotpoint->y()); in ScaleAndRotateCursorBitmapAndHotpoint() 33 *bitmap = SkBitmapOperations::Rotate( in ScaleAndRotateCursorBitmapAndHotpoint() 34 *bitmap, SkBitmapOperations::ROTATION_180_CW); in ScaleAndRotateCursorBitmapAndHotpoint() 37 hotpoint->SetPoint(hotpoint->y(), bitmap->width() - hotpoint->x()); in ScaleAndRotateCursorBitmapAndHotpoint() 38 *bitmap = SkBitmapOperations::Rotate( in ScaleAndRotateCursorBitmapAndHotpoint() 39 *bitmap, SkBitmapOperations::ROTATION_270_CW); in ScaleAndRotateCursorBitmapAndHotpoint() [all …]
|
/external/chromium_org/third_party/skia/tests/ |
D | TextureCompressionTest.cpp | 45 SkBitmap bitmap; in DEF_TEST() local 58 bool setInfoSuccess = bitmap.setInfo(info); in DEF_TEST() 61 bitmap.allocPixels(info); in DEF_TEST() 62 bitmap.unlockPixels(); in DEF_TEST() 69 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(bitmap, fmt)); in DEF_TEST() 79 SkBitmap bitmap; in DEF_TEST() local 91 bool setInfoSuccess = bitmap.setInfo(info); in DEF_TEST() 94 bitmap.allocPixels(info); in DEF_TEST() 95 bitmap.unlockPixels(); in DEF_TEST() 102 SkAutoDataUnref data(SkTextureCompressor::CompressBitmapToFormat(bitmap, fmt)); in DEF_TEST() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | bitmap.h | 52 void bitmap_init(bitmap_t *bitmap, const bitmap_info_t *binfo); 59 bool bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo); 60 bool bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 61 void bitmap_set(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 62 size_t bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo); 63 void bitmap_unset(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit); 68 bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo) in bitmap_full() argument 71 bitmap_t rg = bitmap[rgoff]; in bitmap_full() 77 bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit) in bitmap_get() argument 84 g = bitmap[goff]; in bitmap_get() [all …]
|
/external/chromium_org/third_party/skia/gm/ |
D | extractbitmap.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { in create_bitmap() argument 20 bitmap->allocN32Pixels(W, H); in create_bitmap() 22 SkCanvas canvas(*bitmap); in create_bitmap() 44 SkBitmap bitmap; in onDraw() local 45 create_bitmap(&bitmap); in onDraw() 46 int x = bitmap.width() / 2; in onDraw() 47 int y = bitmap.height() / 2; in onDraw() 51 canvas->drawBitmap(bitmap, 0, 0); in onDraw() 58 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); in onDraw() 61 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y)); in onDraw() [all …]
|
/external/skia/gm/ |
D | extractbitmap.cpp | 17 static void create_bitmap(SkBitmap* bitmap) { in create_bitmap() argument 20 bitmap->allocN32Pixels(W, H); in create_bitmap() 22 SkCanvas canvas(*bitmap); in create_bitmap() 44 SkBitmap bitmap; in onDraw() local 45 create_bitmap(&bitmap); in onDraw() 46 int x = bitmap.width() / 2; in onDraw() 47 int y = bitmap.height() / 2; in onDraw() 51 canvas->drawBitmap(bitmap, 0, 0); in onDraw() 58 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); in onDraw() 61 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y)); in onDraw() [all …]
|
D | bitmappremul.cpp | 25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap() argument 26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, in init_bitmap() 28 bitmap->eraseColor(SK_ColorWHITE); in init_bitmap() 32 SkBitmap bitmap; in make_argb8888_gradient() local 33 init_bitmap(kN32_SkColorType, &bitmap); in make_argb8888_gradient() 36 uint32_t* dst = bitmap.getAddr32(0, y); in make_argb8888_gradient() 45 return bitmap; in make_argb8888_gradient() 49 SkBitmap bitmap; in make_argb4444_gradient() local 50 init_bitmap(kARGB_4444_SkColorType, &bitmap); in make_argb4444_gradient() 53 uint16_t* dst = bitmap.getAddr16(0, y); in make_argb4444_gradient() [all …]
|