Home
last modified time | relevance | path

Searched refs:sparse_file (Results 1 – 23 of 23) sorted by relevance

/system/core/libsparse/include/sparse/
Dsparse.h28 struct sparse_file;
48 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len);
58 void sparse_file_destroy(struct sparse_file *s);
78 int sparse_file_add_data(struct sparse_file *s,
96 int sparse_file_add_fill(struct sparse_file *s,
119 int sparse_file_add_file(struct sparse_file *s,
146 int sparse_file_add_fd(struct sparse_file *s,
167 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);
189 unsigned int sparse_file_block_size(struct sparse_file *s);
[all …]
/system/core/libsparse/
Dsparse.cpp30 struct sparse_file* sparse_file_new(unsigned int block_size, int64_t len) { in sparse_file_new()
31 struct sparse_file* s = reinterpret_cast<sparse_file*>(calloc(sizeof(struct sparse_file), 1)); in sparse_file_new()
48 void sparse_file_destroy(struct sparse_file* s) { in sparse_file_destroy()
53 int sparse_file_add_data(struct sparse_file* s, void* data, unsigned int len, unsigned int block) { in sparse_file_add_data()
57 int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, unsigned int len, in sparse_file_add_fill()
62 int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset, in sparse_file_add_file()
67 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, unsigned int len, in sparse_file_add_fd()
71 unsigned int sparse_count_chunks(struct sparse_file* s) { in sparse_count_chunks()
114 static int write_all_blocks(struct sparse_file* s, struct output_file* out) { in write_all_blocks()
145 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write()
[all …]
Dsparse_read.cpp72 virtual int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) = 0;
99 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile()
143 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile()
174 static int process_raw_chunk(struct sparse_file* s, unsigned int chunk_size, in process_raw_chunk()
205 static int process_fill_chunk(struct sparse_file* s, unsigned int chunk_size, in process_fill_chunk()
246 static int process_skip_chunk(struct sparse_file* s, unsigned int chunk_size, in process_skip_chunk()
286 static int process_chunk(struct sparse_file* s, SparseFileSource* source, unsigned int chunk_hdr_sz, in process_chunk()
336 static int sparse_file_read_sparse(struct sparse_file* s, SparseFileSource* source, bool crc) { in sparse_file_read_sparse()
413 static int sparse_file_read_normal(struct sparse_file* s, int fd) { in sparse_file_read_normal()
464 int sparse_file_read(struct sparse_file* s, int fd, bool sparse, bool crc) { in sparse_file_read()
[all …]
Dsimg2simg.cpp44 struct sparse_file* s; in main()
46 struct sparse_file** out_s; in main()
75 out_s = calloc(sizeof(struct sparse_file*), files); in main()
Dsparse_file.h26 struct sparse_file { struct
Dsparse_fuzzer.cpp7 struct sparse_file* file = sparse_file_new(size, blocksize); in LLVMFuzzerTestOneInput()
Dsimg2img.cpp40 struct sparse_file* s; in main()
Dimg2simg.cpp48 struct sparse_file* s; in main()
Dappend2simg.cpp51 struct sparse_file* sparse_output; in main()
/system/core/fastboot/fuzzy_fastboot/
Dtest_utils.h57 SparseWrapper(struct sparse_file* sf) { sparse = sf; } in SparseWrapper()
71 struct sparse_file* operator*() {
75 struct sparse_file* sparse;
Dmain.cpp141 bool SparseToBuf(sparse_file* sf, std::vector<char>* out, bool with_crc = false) { in SparseToBuf()
/system/core/fs_mgr/liblp/
Dimages.h46 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
50 bool AddData(sparse_file* file, const std::string& blob, uint64_t sector);
Dimages.cpp227 bool ImageBuilder::AddData(sparse_file* file, const std::string& blob, uint64_t sector) { in AddData()
359 sparse_file* output_device = device_images_[extent.target_source].get(); in AddPartitionImage()
/system/extras/verity/
Dbuild_verity_tree.cpp36 struct sparse_file* file; in generate_verity_tree()
Dverity_verifier.cpp88 struct sparse_file* file = sparse_file_import_auto(fd, false, false); in main()
/system/core/fastboot/
Dfastboot_driver.h87 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz,
90 RetCode Download(sparse_file* s, bool use_crc = false, std::string* response = nullptr,
113 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
Dfastboot.cpp828 static struct sparse_file** load_sparse_files(int fd, int64_t max_size) { in load_sparse_files()
829 struct sparse_file* s = sparse_file_import_auto(fd, false, true); in load_sparse_files()
839sparse_file** out_s = reinterpret_cast<sparse_file**>(calloc(sizeof(struct sparse_file *), files +… in load_sparse_files()
896 if (sparse_file* s = sparse_file_import(fd, false, false)) { in load_buf_fd()
906 sparse_file** s = load_sparse_files(fd, limit); in load_buf_fd()
1057 sparse_file** s; in flash_buf()
1075 std::vector<std::pair<sparse_file*, int64_t>> sparse_files; in flash_buf()
1076 s = reinterpret_cast<sparse_file**>(buf->data); in flash_buf()
Dfastboot_driver.cpp151 RetCode FastBootDriver::FlashPartition(const std::string& partition, sparse_file* s, uint32_t size, in FlashPartition()
242 RetCode FastBootDriver::Download(const std::string& partition, struct sparse_file* s, uint32_t size, in Download()
252 RetCode FastBootDriver::Download(sparse_file* s, bool use_crc, std::string* response, in Download()
/system/extras/verity/fec/
Dimage.cpp95 std::vector<struct sparse_file *> files; in file_image_load()
99 struct sparse_file *file; in file_image_load()
/system/core/fastboot/device/
Dflashing.cpp109 struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, false); in FlashSparseData()
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_test.cpp37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
/system/extras/partition_tools/
Dlpunpack.cc37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
Dlpadd.cc34 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;