/aosp14/system/core/libsparse/include/sparse/ |
H A 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); 165 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, 180 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc); 187 unsigned int sparse_file_block_size(struct sparse_file *s); 207 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, 278 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc); 324 int sparse_file_resparse(struct sparse_file *in_s, unsigned int max_len, 325 struct sparse_file **out_s, int out_s_count); [all …]
|
/aosp14/system/core/libsparse/ |
H A 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() 71 unsigned int sparse_count_chunks(struct sparse_file* s) { in sparse_count_chunks() 168 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback() 259 unsigned int sparse_file_block_size(struct sparse_file* s) { in sparse_file_block_size() 263 static int move_chunks_up_to_len(struct sparse_file* from, struct sparse_file* to, unsigned int len, in move_chunks_up_to_len() 326 int sparse_file_resparse(struct sparse_file* in_s, unsigned int max_len, struct sparse_file** out_s, in sparse_file_resparse() 329 struct sparse_file* s; in sparse_file_resparse() 330 struct sparse_file* tmp; in sparse_file_resparse() [all …]
|
H A D | sparse_read.cpp | 102 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile() 212 static int process_raw_chunk(struct sparse_file* s, unsigned int chunk_size, in process_raw_chunk() 246 static int process_fill_chunk(struct sparse_file* s, unsigned int chunk_size, in process_fill_chunk() 287 static int process_skip_chunk(struct sparse_file* s, unsigned int chunk_size, in process_skip_chunk() 507 static int sparse_file_read_normal(struct sparse_file* s, int fd) { in sparse_file_read_normal() 520 static int sparse_file_read_hole(struct sparse_file* s, int fd) { in sparse_file_read_hole() 570 static int sparse_file_read_hole(struct sparse_file* s __unused, int fd __unused) { in sparse_file_read_hole() 599 struct sparse_file* s; in sparse_file_import_source() 658 struct sparse_file* sparse_file_import(int fd, bool verbose, bool crc) { in sparse_file_import() 668 struct sparse_file* sparse_file_import_auto(int fd, bool crc, bool verbose) { in sparse_file_import_auto() [all …]
|
H A D | sparse_file.h | 26 struct sparse_file { struct
|
H A D | sparse_fuzzer.cpp | 22 struct sparse_file* file = sparse_file_import_buf((char*)data, size, true, false); in LLVMFuzzerTestOneInput()
|
H A D | simg2img.cpp | 40 struct sparse_file* s; in main()
|
H A D | img2simg.cpp | 53 struct sparse_file* s; in main()
|
H A D | append2simg.cpp | 51 struct sparse_file* sparse_output; in main()
|
/aosp14/system/core/fastboot/fuzzy_fastboot/ |
H A D | test_utils.h | 57 SparseWrapper(struct sparse_file* sf) { sparse = sf; } in SparseWrapper() 71 struct sparse_file* operator*() { 75 struct sparse_file* sparse;
|
H A D | main.cpp | 143 bool SparseToBuf(sparse_file* sf, std::vector<char>* out, bool with_crc = false) { in SparseToBuf()
|
/aosp14/system/core/fastboot/ |
H A D | super_flash_helper_test.cpp | 60 auto sparse_file = helper.GetSparseLayout(); in TEST() local 61 ASSERT_NE(sparse_file, nullptr); in TEST() 65 ASSERT_EQ(sparse_file_write(sparse_file.get(), fb_super.fd, false, false, false), 0); in TEST()
|
H A D | fastboot_driver.h | 82 RetCode Download(const std::string& partition, struct sparse_file* s, uint32_t sz, 85 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,
|
H A D | util.h | 14 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
|
H A D | fastboot.h | 160 std::vector<SparsePtr> resparse_file(sparse_file* s, int64_t max_size);
|
H A D | fastboot_driver.cpp | 157 RetCode FastBootDriver::FlashPartition(const std::string& partition, sparse_file* s, uint32_t size, in FlashPartition() 249 RetCode FastBootDriver::Download(const std::string& partition, struct sparse_file* s, uint32_t size, in Download() 259 RetCode FastBootDriver::Download(sparse_file* s, bool use_crc, std::string* response, in Download()
|
H A D | fastboot.cpp | 972 std::vector<SparsePtr> resparse_file(sparse_file* s, int64_t max_size) { in resparse_file() 980 auto temp = std::make_unique<sparse_file*[]>(files); in resparse_file() 1045 if (sparse_file* s = sparse_file_import(fd.get(), false, false)) { in load_buf_fd() 1236 sparse_file* s = files[i].get(); in flash_partition_files()
|
/aosp14/system/core/fs_mgr/liblp/ |
H A 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);
|
H A D | images.cpp | 227 bool ImageBuilder::AddData(sparse_file* file, const std::string& blob, uint64_t sector) { in AddData() 364 sparse_file* output_device = device_images_[extent.target_source].get(); in AddPartitionImage()
|
/aosp14/system/core/fs_mgr/libvbmeta/ |
H A D | super_vbmeta_test.cpp | 37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
|
/aosp14/system/core/fastboot/device/ |
H A D | flashing.cpp | 135 struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), in FlashSparseData()
|