Home
last modified time | relevance | path

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

/aosp14/system/core/libsparse/include/sparse/
H A 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);
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 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()
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 Dsparse_read.cpp102 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 Dsparse_file.h26 struct sparse_file { struct
H A Dsparse_fuzzer.cpp22 struct sparse_file* file = sparse_file_import_buf((char*)data, size, true, false); in LLVMFuzzerTestOneInput()
H A Dsimg2img.cpp40 struct sparse_file* s; in main()
H A Dimg2simg.cpp53 struct sparse_file* s; in main()
H A Dappend2simg.cpp51 struct sparse_file* sparse_output; in main()
/aosp14/system/core/fastboot/fuzzy_fastboot/
H A Dtest_utils.h57 SparseWrapper(struct sparse_file* sf) { sparse = sf; } in SparseWrapper()
71 struct sparse_file* operator*() {
75 struct sparse_file* sparse;
H A Dmain.cpp143 bool SparseToBuf(sparse_file* sf, std::vector<char>* out, bool with_crc = false) { in SparseToBuf()
/aosp14/system/core/fastboot/
H A Dsuper_flash_helper_test.cpp60 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 Dfastboot_driver.h82 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 Dutil.h14 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
H A Dfastboot.h160 std::vector<SparsePtr> resparse_file(sparse_file* s, int64_t max_size);
H A Dfastboot_driver.cpp157 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 Dfastboot.cpp972 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 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);
H A Dimages.cpp227 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 Dsuper_vbmeta_test.cpp37 using SparsePtr = std::unique_ptr<sparse_file, decltype(&sparse_file_destroy)>;
/aosp14/system/core/fastboot/device/
H A Dflashing.cpp135 struct sparse_file* file = sparse_file_import_buf(downloaded_data.data(), in FlashSparseData()