Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 25 of 1228) sorted by relevance

12345678910>>...50

/external/icing/icing/file/
Dfile-backed-bitmap_test.cc65 std::unique_ptr<FileBackedBitmap> bitmap, in TEST_F()
68 EXPECT_THAT(bitmap->NumBits(), GetBlockCapacity(1)); in TEST_F()
69 EXPECT_THAT(bitmap->Get(0), IsOkAndHolds(false)); in TEST_F()
70 ICING_EXPECT_OK(bitmap->PersistToDisk()); in TEST_F()
75 std::unique_ptr<FileBackedBitmap> bitmap, in TEST_F()
79 ICING_EXPECT_OK(bitmap->Set(100000, true)); in TEST_F()
80 ICING_EXPECT_OK(bitmap->Set(200000, false)); in TEST_F()
82 EXPECT_THAT(bitmap->Get(0), IsOkAndHolds(false)); in TEST_F()
83 EXPECT_THAT(bitmap->Get(100000), IsOkAndHolds(true)); in TEST_F()
84 EXPECT_THAT(bitmap->Get(200000), IsOkAndHolds(false)); in TEST_F()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c37 char * bitmap; member
61 ext2fs_generic_bitmap_32 bitmap = (ext2fs_generic_bitmap_32) gen_bitmap; in ext2fs_warn_bitmap2() local
64 if (bitmap->description) in ext2fs_warn_bitmap2()
65 com_err(0, bitmap->base_error_code+code, in ext2fs_warn_bitmap2()
66 "#%lu for %s", arg, bitmap->description); in ext2fs_warn_bitmap2()
68 com_err(0, bitmap->base_error_code + code, "#%lu", arg); in ext2fs_warn_bitmap2()
72 static errcode_t check_magic(ext2fs_generic_bitmap bitmap) in check_magic() argument
74 if (!bitmap || !((bitmap->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || in check_magic()
75 (bitmap->magic == EXT2_ET_MAGIC_INODE_BITMAP) || in check_magic()
76 (bitmap->magic == EXT2_ET_MAGIC_BLOCK_BITMAP))) in check_magic()
[all …]
Dbitops.h55 extern void ext2fs_warn_bitmap2(ext2fs_generic_bitmap bitmap,
67 extern int ext2fs_mark_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block);
68 extern int ext2fs_unmark_block_bitmap(ext2fs_block_bitmap bitmap,
70 extern int ext2fs_test_block_bitmap(ext2fs_block_bitmap bitmap, blk_t block);
72 extern int ext2fs_mark_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode);
73 extern int ext2fs_unmark_inode_bitmap(ext2fs_inode_bitmap bitmap,
75 extern int ext2fs_test_inode_bitmap(ext2fs_inode_bitmap bitmap, ext2_ino_t inode);
77 extern void ext2fs_fast_mark_block_bitmap(ext2fs_block_bitmap bitmap,
79 extern void ext2fs_fast_unmark_block_bitmap(ext2fs_block_bitmap bitmap,
81 extern int ext2fs_fast_test_block_bitmap(ext2fs_block_bitmap bitmap,
[all …]
Dgen_bitmap64.c71 static void warn_bitmap(ext2fs_generic_bitmap_64 bitmap, in warn_bitmap() argument
75 if (bitmap->description) in warn_bitmap()
76 com_err(0, bitmap->base_error_code+code, in warn_bitmap()
77 "#%llu for %s", arg, bitmap->description); in warn_bitmap()
79 com_err(0, bitmap->base_error_code + code, "#%llu", arg); in warn_bitmap()
96 ext2fs_generic_bitmap_64 bitmap; in ext2fs_alloc_generic_bmap() local
123 &bitmap); in ext2fs_alloc_generic_bmap()
128 if (gettimeofday(&bitmap->stats.created, in ext2fs_alloc_generic_bmap()
131 ext2fs_free_mem(&bitmap); in ext2fs_alloc_generic_bmap()
134 bitmap->stats.type = type; in ext2fs_alloc_generic_bmap()
[all …]
Dblkmap64_ba.c43 static errcode_t ba_alloc_private_data (ext2fs_generic_bitmap_64 bitmap) in ba_alloc_private_data() argument
59 size = (size_t) (((bitmap->real_end - bitmap->start) / 8) + 1); in ba_alloc_private_data()
67 bitmap->private = (void *) bp; in ba_alloc_private_data()
72 ext2fs_generic_bitmap_64 bitmap) in ba_new_bmap() argument
78 retval = ba_alloc_private_data (bitmap); in ba_new_bmap()
82 bp = (ext2fs_ba_private) bitmap->private; in ba_new_bmap()
83 size = (size_t) (((bitmap->real_end - bitmap->start) / 8) + 1); in ba_new_bmap()
89 static void ba_free_bmap(ext2fs_generic_bitmap_64 bitmap) in ba_free_bmap() argument
91 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_free_bmap()
165 static int ba_mark_bmap(ext2fs_generic_bitmap_64 bitmap, __u64 arg) in ba_mark_bmap() argument
[all …]
/external/llvm-project/llvm/test/Transforms/CallSiteSplitting/
Dcallsite-split.ll7 %struct.bitmap = type { i32, %struct.bitmap* }
11 ;CHECK: call void @callee(%struct.bitmap* null, %struct.bitmap* null, %struct.bitmap* %b_elt, i1 fa…
15 ;CHECK: call void @dummy2(%struct.bitmap* %a_elt)
17 define void @caller(i1 %c, %struct.bitmap* %a_elt, %struct.bitmap* %b_elt) {
22 %tobool1 = icmp eq %struct.bitmap* %a_elt, null
26 %cmp = icmp ne %struct.bitmap* %b_elt, null
31 call void @callee(%struct.bitmap* %a_elt, %struct.bitmap* %a_elt, %struct.bitmap* %b_elt, i1 %p)
38 define void @callee(%struct.bitmap* %dst_elt, %struct.bitmap* %a_elt, %struct.bitmap* %b_elt, i1 %c…
40 %tobool = icmp ne %struct.bitmap* %a_elt, null
41 %tobool1 = icmp ne %struct.bitmap* %b_elt, null
[all …]
/external/e2fsprogs/tests/r_move_itable/
Dexpect50 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/
Dexpect.149 Block bitmap at 3 (+2), Inode bitmap at 4 (+3)
56 Block bitmap at 1027 (+2), Inode bitmap at 1028 (+3)
62 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1)
69 Block bitmap at 3074 (+1), Inode bitmap at 3075 (+2)
75 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1)
82 Block bitmap at 5122 (+1), Inode bitmap at 5123 (+2)
88 Block bitmap at 6145 (+0), Inode bitmap at 6146 (+1)
95 Block bitmap at 7170 (+1), Inode bitmap at 7171 (+2)
101 Block bitmap at 8193 (+0), Inode bitmap at 8194 (+1)
108 Block bitmap at 9218 (+1), Inode bitmap at 9219 (+2)
[all …]
/external/e2fsprogs/tests/m_desc_size_128/
Dexpect.152 Block bitmap at 274 (+273), Inode bitmap at 275 (+274)
60 Block bitmap at 1298 (+273), Inode bitmap at 1299 (+274)
66 Block bitmap at 2049 (+0), Inode bitmap at 2050 (+1)
74 Block bitmap at 3346 (+273), Inode bitmap at 3347 (+274)
80 Block bitmap at 4097 (+0), Inode bitmap at 4098 (+1)
88 Block bitmap at 5394 (+273), Inode bitmap at 5395 (+274)
94 Block bitmap at 6145 (+0), Inode bitmap at 6146 (+1)
102 Block bitmap at 7442 (+273), Inode bitmap at 7443 (+274)
108 Block bitmap at 8193 (+0), Inode bitmap at 8194 (+1)
116 Block bitmap at 9490 (+273), Inode bitmap at 9491 (+274)
[all …]
/external/e2fsprogs/tests/m_raid_opt/
Dexpect.152 Block bitmap at 294 (+293), Inode bitmap at 295 (+294)
60 Block bitmap at 1331 (+306), Inode bitmap at 1332 (+307)
66 Block bitmap at 2107 (+58), Inode bitmap at 2108 (+59)
74 Block bitmap at 3405 (+332), Inode bitmap at 3406 (+333)
80 Block bitmap at 4181 (+84), Inode bitmap at 4182 (+85)
88 Block bitmap at 5479 (+358), Inode bitmap at 5480 (+359)
94 Block bitmap at 6255 (+110), Inode bitmap at 6256 (+111)
102 Block bitmap at 7553 (+384), Inode bitmap at 7554 (+385)
108 Block bitmap at 8329 (+136), Inode bitmap at 8330 (+137)
116 Block bitmap at 9627 (+410), Inode bitmap at 9628 (+411)
[all …]
/external/e2fsprogs/tests/r_resize_inode/
Dexpect48 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/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapFactoryTest.java37 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldSetDescriptionAndCreatedFrom() local
38 ShadowBitmap shadowBitmap = shadowOf(bitmap); in decodeResource_shouldSetDescriptionAndCreatedFrom()
41 assertEquals(64, bitmap.getWidth()); in decodeResource_shouldSetDescriptionAndCreatedFrom()
42 assertEquals(53, bitmap.getHeight()); in decodeResource_shouldSetDescriptionAndCreatedFrom()
47 Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.an_image); in decodeResource_shouldSetDefaultBitmapConfig() local
48 assertThat(bitmap.getConfig()).isEqualTo(Bitmap.Config.ARGB_8888); in decodeResource_shouldSetDefaultBitmapConfig()
49 assertThat(bitmap.getRowBytes()).isNotEqualTo(0); in decodeResource_shouldSetDefaultBitmapConfig()
61 Bitmap bitmap = in decodeResource_shouldPassABitmapConfig() local
63 assertThat(bitmap.getConfig()).isEqualTo(Bitmap.Config.ALPHA_8); in decodeResource_shouldPassABitmapConfig()
68 Bitmap bitmap = BitmapFactory.decodeFile("/some/file.jpg"); in decodeFile_shouldSetDescriptionAndCreatedFrom() local
[all …]
/external/jemalloc_new/test/unit/
Dbitmap.c172 bitmap_t *bitmap = (bitmap_t *)malloc(bitmap_size(binfo)); in test_bitmap_init_body() local
173 assert_ptr_not_null(bitmap, "Unexpected malloc() failure"); in test_bitmap_init_body()
175 bitmap_init(bitmap, binfo, false); in test_bitmap_init_body()
177 assert_false(bitmap_get(bitmap, binfo, i), in test_bitmap_init_body()
181 bitmap_init(bitmap, binfo, true); in test_bitmap_init_body()
183 assert_true(bitmap_get(bitmap, binfo, i), "Bit should be set"); in test_bitmap_init_body()
186 free(bitmap); in test_bitmap_init_body()
209 bitmap_t *bitmap = (bitmap_t *)malloc(bitmap_size(binfo)); in test_bitmap_set_body() local
210 assert_ptr_not_null(bitmap, "Unexpected malloc() failure"); in test_bitmap_set_body()
211 bitmap_init(bitmap, binfo, false); in test_bitmap_set_body()
[all …]
/external/e2fsprogs/tests/m_bigjournal/
Dexpect.153 Block bitmap at 673 (+673), Inode bitmap at 757 (+757)
61 Block bitmap at 674 (bg #0 + 674), Inode bitmap at 758 (bg #0 + 758)
67 Block bitmap at 675 (bg #0 + 675), Inode bitmap at 759 (bg #0 + 759)
75 Block bitmap at 676 (bg #0 + 676), Inode bitmap at 760 (bg #0 + 760)
81 Block bitmap at 677 (bg #0 + 677), Inode bitmap at 761 (bg #0 + 761)
89 Block bitmap at 678 (bg #0 + 678), Inode bitmap at 762 (bg #0 + 762)
95 Block bitmap at 679 (bg #0 + 679), Inode bitmap at 763 (bg #0 + 763)
103 Block bitmap at 680 (bg #0 + 680), Inode bitmap at 764 (bg #0 + 764)
109 Block bitmap at 681 (bg #0 + 681), Inode bitmap at 765 (bg #0 + 765)
117 Block bitmap at 682 (bg #0 + 682), Inode bitmap at 766 (bg #0 + 766)
[all …]
/external/skia/gm/
Doverdrawcolorfilter.cpp22 static inline void set_bitmap(SkBitmap* bitmap, uint8_t alpha) { in set_bitmap() argument
23 for (int y = 0; y < bitmap->height(); y++) { in set_bitmap()
24 for (int x = 0; x < bitmap->width(); x++) { in set_bitmap()
25 uint8_t* addr = bitmap->getAddr8(x, y); in set_bitmap()
30 bitmap->notifyPixelsChanged(); in set_bitmap()
50 SkBitmap bitmap; in onDraw() local
51 bitmap.allocPixels(info); in onDraw()
52 set_bitmap(&bitmap, 0); in onDraw()
53 canvas->drawImage(bitmap.asImage(), 0, 0, sampling, &paint); in onDraw()
54 set_bitmap(&bitmap, 1); in onDraw()
[all …]
Dbitmappremul.cpp32 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap() argument
33 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, in init_bitmap()
35 bitmap->eraseColor(SK_ColorWHITE); in init_bitmap()
39 SkBitmap bitmap; in make_argb8888_gradient() local
40 init_bitmap(kN32_SkColorType, &bitmap); in make_argb8888_gradient()
42 uint32_t* dst = bitmap.getAddr32(0, y); in make_argb8888_gradient()
47 return bitmap.asImage(); in make_argb8888_gradient()
51 SkBitmap bitmap; in make_argb4444_gradient() local
52 init_bitmap(kARGB_4444_SkColorType, &bitmap); in make_argb4444_gradient()
56 SkCanvas{ bitmap }.drawImage(make_argb8888_gradient(), 0, 0, SkSamplingOptions(), &paint); in make_argb4444_gradient()
[all …]
/external/skqp/gm/
Doverdrawcolorfilter.cpp12 static inline void set_bitmap(SkBitmap* bitmap, uint8_t alpha) { in set_bitmap() argument
13 for (int y = 0; y < bitmap->height(); y++) { in set_bitmap()
14 for (int x = 0; x < bitmap->width(); x++) { in set_bitmap()
15 uint8_t* addr = bitmap->getAddr8(x, y); in set_bitmap()
20 bitmap->notifyPixelsChanged(); in set_bitmap()
46 SkBitmap bitmap; in onDraw() local
47 bitmap.allocPixels(info); in onDraw()
48 set_bitmap(&bitmap, 0); in onDraw()
49 canvas->drawBitmap(bitmap, 0, 0, &paint); in onDraw()
50 set_bitmap(&bitmap, 1); in onDraw()
[all …]
Dbitmappremul.cpp23 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) { in init_bitmap() argument
24 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct, in init_bitmap()
26 bitmap->eraseColor(SK_ColorWHITE); in init_bitmap()
30 SkBitmap bitmap; in make_argb8888_gradient() local
31 init_bitmap(kN32_SkColorType, &bitmap); in make_argb8888_gradient()
33 uint32_t* dst = bitmap.getAddr32(0, y); in make_argb8888_gradient()
38 return bitmap; in make_argb8888_gradient()
42 SkBitmap bitmap; in make_argb4444_gradient() local
43 init_bitmap(kARGB_4444_SkColorType, &bitmap); in make_argb4444_gradient()
47 SkCanvas{ bitmap }.drawBitmap(make_argb8888_gradient(), 0, 0, &paint); in make_argb4444_gradient()
[all …]
Dextractbitmap.cpp16 static void create_bitmap(SkBitmap* bitmap) { in create_bitmap() argument
19 bitmap->allocN32Pixels(W, H); in create_bitmap()
21 SkCanvas canvas(*bitmap); in create_bitmap()
42 SkBitmap bitmap; in onDraw() local
43 create_bitmap(&bitmap); in onDraw()
44 int x = bitmap.width() / 2; in onDraw()
45 int y = bitmap.height() / 2; in onDraw()
49 canvas->drawBitmap(bitmap, 0, 0); in onDraw()
56 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); in onDraw()
59 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y)); in onDraw()
[all …]
/external/connectedappssdk/processor/src/main/resources/parcelablewrappers/
DParcelableBitmap.java28 private final Bitmap bitmap; field in ParcelableBitmap
31 public static ParcelableBitmap of(Bundler bundler, BundlerType type, Bitmap bitmap) { in of() argument
32 return new ParcelableBitmap(bitmap); in of()
35 private ParcelableBitmap(Bitmap bitmap) { in ParcelableBitmap() argument
36 this.bitmap = bitmap; in ParcelableBitmap()
43 bitmap = null; in ParcelableBitmap()
53 bitmap = Bitmap.createBitmap(colors, width, height, config); in ParcelableBitmap()
58 if (bitmap == null) { in writeToParcel()
63 Bitmap.Config config = bitmap.getConfig(); in writeToParcel()
64 int width = bitmap.getWidth(); in writeToParcel()
[all …]
/external/perfetto/src/trace_processor/metrics/chrome/
Dscroll_jank_cause_get_bitmap.sql116 bitmap.id AS id,
117 bitmap.ts AS ts,
118 bitmap.dur AS dur,
119 bitmap.track_id AS track_id,
125 get_bitmap_calls bitmap LEFT JOIN
127 toolbar.ancestor_id = bitmap.id;
140 bitmap.id,
141 bitmap.ts,
142 bitmap.dur,
143 bitmap.track_id,
[all …]
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/image/
DBitmapContainer.java29 private final Bitmap bitmap; field in BitmapContainer
36 static BitmapContainer create(Bitmap bitmap) { in create() argument
37 return new BitmapContainer(bitmap); in create()
40 private BitmapContainer(Bitmap bitmap) { in BitmapContainer() argument
41 checkNotNull(bitmap, "Cannot load null bitmap."); in BitmapContainer()
43 bitmap.getConfig().equals(Config.ARGB_8888), "Only supports loading ARGB_8888 bitmaps."); in BitmapContainer()
44 this.bitmap = bitmap; in BitmapContainer()
49 return create(bitmap.copy(bitmap.getConfig(), bitmap.isMutable())); in clone()
56 return bitmap; in getBitmap()
62 ImageConversions.convertBitmapToTensorBuffer(bitmap, buffer); in getTensorBuffer()
[all …]
/external/ImageMagick/MagickCore/
Ddeprecate.c174 bitmap; in CropImageToHBITMAP() local
236 bitmap.bmType = 0; in CropImageToHBITMAP()
237 bitmap.bmWidth = (LONG) page.width; in CropImageToHBITMAP()
238 bitmap.bmHeight = (LONG) page.height; in CropImageToHBITMAP()
239 bitmap.bmWidthBytes = bitmap.bmWidth * 4; in CropImageToHBITMAP()
240 bitmap.bmPlanes = 1; in CropImageToHBITMAP()
241 bitmap.bmBitsPixel = 32; in CropImageToHBITMAP()
242 bitmap.bmBits = NULL; in CropImageToHBITMAP()
245 page.height*bitmap.bmBitsPixel); in CropImageToHBITMAP()
249 if ( bitmap.bmBits == NULL ) in CropImageToHBITMAP()
[all …]
/external/llvm-project/llvm/test/tools/llvm-rc/Inputs/
Dmemoryflags.rc19 19 BITMAP PRELOAD "bitmap.bmp"
20 20 BITMAP LOADONCALL "bitmap.bmp"
21 21 BITMAP FIXED "bitmap.bmp"
22 22 BITMAP MOVEABLE "bitmap.bmp"
23 23 BITMAP DISCARDABLE "bitmap.bmp"
24 24 BITMAP PURE "bitmap.bmp"
25 25 BITMAP IMPURE "bitmap.bmp"
26 26 BITMAP SHARED "bitmap.bmp"
27 27 BITMAP NONSHARED "bitmap.bmp"
28 28 BITMAP FIXED IMPURE "bitmap.bmp"
[all …]
/external/freetype/src/smooth/
Dftsmooth.c130 FT_Bitmap* bitmap ) in ft_smooth_raster_lcd() argument
149 params.clip_box.xMax = bitmap->width; in ft_smooth_raster_lcd()
150 params.clip_box.yMax = bitmap->rows; in ft_smooth_raster_lcd()
152 if ( bitmap->pitch < 0 ) in ft_smooth_raster_lcd()
153 target.origin = bitmap->buffer; in ft_smooth_raster_lcd()
155 target.origin = bitmap->buffer in ft_smooth_raster_lcd()
156 + ( bitmap->rows - 1 ) * (unsigned int)bitmap->pitch; in ft_smooth_raster_lcd()
158 target.pitch = bitmap->pitch; in ft_smooth_raster_lcd()
197 FT_Bitmap* bitmap ) in ft_smooth_raster_lcdv() argument
200 int pitch = bitmap->pitch; in ft_smooth_raster_lcdv()
[all …]

12345678910>>...50