Home
last modified time | relevance | path

Searched refs:fetch_size (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/fuse_sideload/
Dfuse_provider.cpp57 bool FuseFileDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData() argument
60 if (fetch_size > file_size_ || offset > file_size_ - fetch_size) { in ReadBlockAlignedData()
64 start_block, fetch_size, file_size_); in ReadBlockAlignedData()
68 if (!android::base::ReadFullyAtOffset(fd_, buffer, fetch_size, offset)) { in ReadBlockAlignedData()
70 fetch_size, offset, strerror(errno)); in ReadBlockAlignedData()
93 bool FuseBlockDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData() argument
96 if (fetch_size > file_size_ || offset > file_size_ - fetch_size) { in ReadBlockAlignedData()
97 LOG(ERROR) << "Out of bound read, offset: " << offset << ", fetch size: " << fetch_size in ReadBlockAlignedData()
103 ranges_.GetSubRanges(offset / source_block_size_, fetch_size / source_block_size_); in ReadBlockAlignedData()
120 if (uint64_t tailing_bytes = fetch_size % source_block_size_; tailing_bytes != 0) { in ReadBlockAlignedData()
Dfuse_sideload.cpp239 uint32_t fetch_size = fd->block_size; in fetch_block() local
240 if (block * fd->block_size + fetch_size > fd->file_size) { in fetch_block()
243 fetch_size = fd->file_size - (block * fd->block_size); in fetch_block()
244 memset(fd->block_data + fetch_size, 0, fd->block_size - fetch_size); in fetch_block()
247 if (!fd->provider->ReadBlockAlignedData(fd->block_data, fetch_size, block)) { in fetch_block()
/bootable/recovery/minadbd/
Dfuse_adb_provider.cpp26 bool FuseAdbDataProvider::ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size, in ReadBlockAlignedData() argument
33 if (!ReadFdExactly(fd_, buffer, fetch_size)) { in ReadBlockAlignedData()
Dfuse_adb_provider.h29 bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,
/bootable/recovery/fuse_sideload/include/
Dfuse_provider.h44 virtual bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,
68 bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,
93 bool ReadBlockAlignedData(uint8_t* buffer, uint32_t fetch_size,