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.cpp542 SparseWrapper sparse(bs, bs); in TEST_F() local
543 ASSERT_TRUE(*sparse) << "Sparse file creation failed on: " << bs; in TEST_F()
544 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F()
545 EXPECT_EQ(fb->Flash("userdata"), SUCCESS) << "Flashing sparse failed: " << sparse.Rep(); in TEST_F()
557 SparseWrapper sparse(bs, bs); in TEST_F() local
558 ASSERT_TRUE(*sparse) << "Sparse file creation failed on: " << bs; in TEST_F()
560 ASSERT_EQ(sparse_file_add_data(*sparse, buf.data(), buf.size(), 0), 0) in TEST_F()
561 << "Adding data failed to sparse file: " << sparse.Rep(); in TEST_F()
562 EXPECT_EQ(fb->Download(*sparse), SUCCESS) << "Download sparse failed: " << sparse.Rep(); in TEST_F()
563 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
278 --sparse "${IMAGES[@]}"
/system/core/libsparse/
Doutput_file.h29 int sparse, int chunks, int crc);
32 int sparse, int chunks, int crc);
Dsparse.cpp145 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write() argument
157 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc); in sparse_file_write()
168 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback() argument
175 out = output_file_open_callback(write, priv, s->block_size, s->len, false, sparse, chunks, crc); in sparse_file_callback()
199 int sparse_file_foreach_chunk(struct sparse_file* s, bool sparse, bool crc, in sparse_file_foreach_chunk() argument
213 out = output_file_open_callback(foreach_chunk_write, &chk, s->block_size, s->len, false, sparse, in sparse_file_foreach_chunk()
236 int64_t sparse_file_len(struct sparse_file* s, bool sparse, bool crc) { in sparse_file_len() argument
242 out = output_file_open_callback(out_counter_write, &count, s->block_size, s->len, false, sparse, in sparse_file_len()
Doutput_file.cpp503 static int output_file_init(struct output_file* out, int block_size, int64_t len, bool sparse, in output_file_init() argument
527 if (sparse) { in output_file_init()
533 if (sparse) { in output_file_init()
592 int sparse, int chunks, int crc) { in output_file_open_callback() argument
607 ret = output_file_init(&outc->out, block_size, len, sparse, chunks, crc); in output_file_open_callback()
617 int sparse, int chunks, int crc) { in output_file_open_fd() argument
632 ret = output_file_init(out, block_size, len, sparse, chunks, crc); in output_file_open_fd()
DAndroid.bp12 "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/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.
70 lpflash writes a non-sparse image from lpmake to a block device. It is intended to be run on the de…
/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/memory/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.cpp606 ImageBuilder sparse(*exported.get(), 512, {}, true /* sparsify */); in TEST_F() local
607 ASSERT_TRUE(sparse.IsValid()); in TEST_F()
608 ASSERT_TRUE(sparse.Build()); in TEST_F()
610 const auto& images = sparse.device_images(); in TEST_F()
/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