/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() 145 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 | sparse_fuzzer.cpp | 7 struct sparse_file* file = sparse_file_new(size, blocksize); in LLVMFuzzerTestOneInput()
|
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 | 46 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>; 50 bool AddData(sparse_file* file, const std::string& blob, uint64_t sector);
|
D | images.cpp | 227 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/ |
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, 113 RetCode FlashPartition(const std::string& partition, sparse_file* s, uint32_t sz,
|
D | fastboot.cpp | 828 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() 839 …sparse_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()
|
D | fastboot_driver.cpp | 151 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/ |
D | image.cpp | 95 std::vector<struct sparse_file *> files; in file_image_load() 99 struct sparse_file *file; in file_image_load()
|
/system/core/fastboot/device/ |
D | flashing.cpp | 109 struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), true, false); in FlashSparseData()
|
/system/core/fs_mgr/libvbmeta/ |
D | super_vbmeta_test.cpp | 37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
|
/system/extras/partition_tools/ |
D | lpunpack.cc | 37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
|
D | lpadd.cc | 34 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
|