/system/core/libsparse/include/sparse/ |
D | sparse.h | 28 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/ |
D | sparse.cpp | 30 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 …]
|
D | sparse_read.cpp | 72 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 …]
|
D | simg2simg.cpp | 44 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()
|
D | sparse_file.h | 26 struct sparse_file { struct
|
D | simg2img.cpp | 40 struct sparse_file* s; in main()
|
D | img2simg.cpp | 48 struct sparse_file* s; in main()
|
D | append2simg.cpp | 51 struct sparse_file* sparse_output; in main()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | test_utils.h | 57 SparseWrapper(struct sparse_file* sf) { sparse = sf; } in SparseWrapper() 71 struct sparse_file* operator*() { 75 struct sparse_file* sparse;
|
D | main.cpp | 141 bool SparseToBuf(sparse_file* sf, std::vector<char>* out, bool with_crc = false) { in SparseToBuf()
|
/system/core/fs_mgr/liblp/ |
D | images.h | 48 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>; 52 bool AddData(sparse_file* file, const std::string& blob, uint64_t sector);
|
D | images.cpp | 193 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/ |
D | build_verity_tree.cpp | 36 struct sparse_file* file; in generate_verity_tree()
|
D | verity_verifier.cpp | 88 struct sparse_file* file = sparse_file_import_auto(fd, false, false); in main()
|
/system/core/fastboot/ |
D | fastboot_driver.h | 87 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,
|
D | fastboot.cpp | 806 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() 817 …sparse_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()
|
D | fastboot_driver.cpp | 142 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/ |
D | flashing.cpp | 104 struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, false); in FlashSparseData()
|
/system/extras/verity/fec/ |
D | image.cpp | 95 std::vector<struct sparse_file *> files; in file_image_load() 99 struct sparse_file *file; in file_image_load()
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
|