Home
last modified time | relevance | path

Searched refs:sparse_file (Results 1 – 20 of 20) 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()
139 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
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.h48 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
52 bool AddData(sparse_file* file, const std::string& blob, uint64_t sector);
Dimages.cpp193 bool ImageBuilder::AddData(sparse_file* file, const std::string& blob, uint64_t sector) { in AddData()
325 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,
111 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
Dfastboot.cpp806 static struct sparse_file** load_sparse_files(int fd, int64_t max_size) { in load_sparse_files()
807 struct sparse_file* s = sparse_file_import_auto(fd, false, true); in load_sparse_files()
817sparse_file** out_s = reinterpret_cast<sparse_file**>(calloc(sizeof(struct sparse_file *), files +… in load_sparse_files()
874 if (sparse_file* s = sparse_file_import_auto(fd, false, false)) { in load_buf_fd()
884 sparse_file** s = load_sparse_files(fd, limit); in load_buf_fd()
956 sparse_file** s; in flash_buf()
966 std::vector<std::pair<sparse_file*, int64_t>> sparse_files; in flash_buf()
967 s = reinterpret_cast<sparse_file**>(buf->data); in flash_buf()
Dfastboot_driver.cpp142 RetCode FastBootDriver::FlashPartition(const std::string& partition, sparse_file* s, uint32_t size, in FlashPartition()
233 RetCode FastBootDriver::Download(const std::string& partition, struct sparse_file* s, uint32_t size, in Download()
243 RetCode FastBootDriver::Download(sparse_file* s, bool use_crc, std::string* response, in Download()
/system/core/fastboot/device/
Dflashing.cpp104 struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, false); in FlashSparseData()
/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/extras/partition_tools/
Dlpunpack.cc37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;