Home
last modified time | relevance | path

Searched refs:sparse (Results 1 – 25 of 27) sorted by relevance

12

/system/core/fastboot/fuzzy_fastboot/
Dtest_utils.h54 sparse = sparse_file_new(block_size, len); in SparseWrapper()
57 SparseWrapper(struct sparse_file* sf) { sparse = sf; } in SparseWrapper()
60 if (sparse) { in ~SparseWrapper()
61 sparse_file_destroy(sparse); in ~SparseWrapper()
66 unsigned bs = sparse_file_block_size(sparse); in Rep()
67 unsigned len = sparse_file_len(sparse, true, false); in Rep()
72 return sparse;
75 struct sparse_file* sparse; member
Dmain.cpp562 SparseWrapper sparse(bs, bs); in TEST_F() local
563 ASSERT_TRUE(*sparse) << "Sparse file creation failed on: " << bs; in TEST_F()
564 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F()
565 EXPECT_EQ(fb->Flash("userdata"), SUCCESS) << "Flashing sparse failed: " << sparse.Rep(); in TEST_F()
577 SparseWrapper sparse(bs, bs); in TEST_F() local
578 ASSERT_TRUE(*sparse) << "Sparse file creation failed on: " << bs; in TEST_F()
580 ASSERT_EQ(sparse_file_add_data(*sparse, buf.data(), buf.size(), 0), 0) in TEST_F()
581 << "Adding data failed to sparse file: " << sparse.Rep(); in TEST_F()
582 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F()
583 EXPECT_EQ(fb->Flash("userdata"), SUCCESS) << "Flashing sparse failed: " << sparse.Rep(); in TEST_F()
[all …]
/system/core/libsparse/include/sparse/
Dsparse.h167 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse,
182 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc);
209 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc,
226 int sparse_file_foreach_chunk(struct sparse_file *s, bool sparse, bool crc,
246 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc);
/system/update_engine/sample_images/
Dgenerate_images.sh65 sudo dd of="${mntdir}"/sparse-16k-last_block bs=1 \
72 sudo dd of="${mntdir}"/sparse-10000blocks bs=1 \
75 sudo truncate --size=16384 "${mntdir}"/sparse-16k-first_block
76 echo "first block" | sudo dd of="${mntdir}"/sparse-16k-first_block status=none
78 sudo truncate --size=16384 "${mntdir}"/sparse-16k-holes
79 echo "a" | sudo dd of="${mntdir}"/sparse-16k-holes bs=1 seek=100 status=none
80 echo "b" | sudo dd of="${mntdir}"/sparse-16k-holes bs=1 seek=10000 status=none
277 --sparse "${IMAGES[@]}"
/system/extras/partition_tools/
DREADME.md21 * `--sparse` - If set, the output image will be in sparse format for flashing with fastboot. Otherw…
22 * `-b,--block-size=N` - When writing a sparse image, the device may require a specific block size. …
23sparse image, include the contents of FILE as the data for the partition named NAME. The file can …
40 * A path to a non-sparse image from lpmake.
49 lpflash writes a non-sparse image from lpmake to a block device. It is intended to be run on the de…
/system/core/libsparse/
Dsparse.cpp139 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write() argument
145 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc); in sparse_file_write()
156 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback() argument
163 out = output_file_open_callback(write, priv, s->block_size, s->len, false, sparse, chunks, crc); in sparse_file_callback()
187 int sparse_file_foreach_chunk(struct sparse_file* s, bool sparse, bool crc, in sparse_file_foreach_chunk() argument
201 out = output_file_open_callback(foreach_chunk_write, &chk, s->block_size, s->len, false, sparse, in sparse_file_foreach_chunk()
224 int64_t sparse_file_len(struct sparse_file* s, bool sparse, bool crc) { in sparse_file_len() argument
230 out = output_file_open_callback(out_counter_write, &count, s->block_size, s->len, false, sparse, in sparse_file_len()
Doutput_file.h29 int sparse, int chunks, int crc);
32 int sparse, int chunks, int crc);
Doutput_file.cpp505 static int output_file_init(struct output_file* out, int block_size, int64_t len, bool sparse, in output_file_init() argument
529 if (sparse) { in output_file_init()
535 if (sparse) { in output_file_init()
594 int sparse, int chunks, int crc) { in output_file_open_callback() argument
609 ret = output_file_init(&outc->out, block_size, len, sparse, chunks, crc); in output_file_open_callback()
619 int sparse, int chunks, int crc) { in output_file_open_fd() argument
634 ret = output_file_init(out, block_size, len, sparse, chunks, crc); in output_file_open_fd()
DAndroid.bp11 "sparse.cpp",
Dsparse_read.cpp464 int sparse_file_read(struct sparse_file* s, int fd, bool sparse, bool crc) { in sparse_file_read() argument
465 if (crc && !sparse) { in sparse_file_read()
469 if (sparse) { in sparse_file_read()
/system/extras/verity/
Dbuild_verity_tree_main.cpp51 bool sparse = false; in main() local
86 sparse = true; in main()
158 sparse, verbose)) { in main()
Dbuild_verity_tree.cpp29 size_t block_size, bool sparse, bool verbose) { in generate_verity_tree() argument
37 if (sparse) { in generate_verity_tree()
/system/extras/verity/include/verity/
Dbuild_verity_tree.h31 size_t block_size, bool sparse, bool verbose);
/system/extras/verity/fec/
Dimage.h42 bool sparse; member
Dmain.cpp219 if (ctx.inplace && ctx.sparse) { in decode()
305 ctx.sparse = true; in main()
Dimage.cpp101 if (ctx->sparse) { in file_image_load()
/system/bt/
DEventLogTags.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
/system/core/liblog/
Devent.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
/system/core/storaged/
DEventLogTags.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
/system/core/logd/
Devent.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
/system/core/lmkd/
Devent.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
/system/core/fs_mgr/liblp/
Dio_test.cpp603 ImageBuilder sparse(*exported.get(), 512, {}, true /* sparsify */); in TEST() local
604 ASSERT_TRUE(sparse.IsValid()); in TEST()
605 ASSERT_TRUE(sparse.Build()); in TEST()
607 const auto& images = sparse.device_images(); in TEST()
/system/core/logcat/
Devent.logtags1 # The entries in this file map a sparse set of log tag numbers to tag names.
/system/update_engine/
Dupdate_metadata.proto107 // A sentinel value (kuint64max) as the start block denotes a sparse-hole
/system/update_engine/update_engine/
Dupdate_metadata.proto107 // A sentinel value (kuint64max) as the start block denotes a sparse-hole

12