/bootable/recovery/fuse_sideload/ |
D | fuse_sideload.cpp | 83 uint32_t block_size; // block size that the adb host is using to send the file to us member 234 memset(fd->block_data, 0, fd->block_size); in fetch_block() 239 uint32_t fetch_size = fd->block_size; in fetch_block() 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() 261 SHA256(fd->block_data, fd->block_size, hash.data()); in fetch_block() 303 uint32_t block = offset / fd->block_size; in handle_read() 315 uint32_t block_offset = offset - (block * fd->block_size); in handle_read() 318 if (size + block_offset <= fd->block_size) { in handle_read() [all …]
|
D | fuse_provider.cpp | 33 FuseFileDataProvider::FuseFileDataProvider(const std::string& path, uint32_t block_size) { in FuseFileDataProvider() argument 46 fuse_block_size_ = block_size; in FuseFileDataProvider()
|
/bootable/recovery/fuse_sideload/include/ |
D | fuse_provider.h | 28 FuseDataProvider(uint64_t file_size, uint32_t block_size) in FuseDataProvider() argument 29 : file_size_(file_size), fuse_block_size_(block_size) {} in FuseDataProvider() 58 FuseFileDataProvider(const std::string& path, uint32_t block_size);
|
/bootable/recovery/minadbd/ |
D | fuse_adb_provider.h | 26 FuseAdbDataProvider(int fd, uint64_t file_size, uint32_t block_size) in FuseAdbDataProvider() argument 27 : FuseDataProvider(file_size, block_size), fd_(fd) {} in FuseAdbDataProvider()
|
D | minadbd_services.cpp | 103 int block_size; in RunAdbFuseSideload() local 105 !android::base::ParseInt(pieces[1], &block_size) || block_size <= 0) { in RunAdbFuseSideload() 110 LOG(INFO) << "sideload-host file size " << file_size << ", block size " << block_size; in RunAdbFuseSideload() 116 auto adb_data_reader = std::make_unique<FuseAdbDataProvider>(sfd, file_size, block_size); in RunAdbFuseSideload()
|
/bootable/recovery/otautil/include/otautil/ |
D | sysutil.h | 53 uint32_t block_size() const { in block_size() function 63 BlockMapData(const std::string& path, uint64_t file_size, uint32_t block_size, in BlockMapData() argument 67 block_size_(block_size), in BlockMapData()
|
/bootable/recovery/updater/ |
D | commands.cpp | 319 const std::vector<uint8_t>& source, size_t block_size) { in MoveRange() argument 327 memmove(to + (it->first * block_size), from + (start * block_size), blocks * block_size); in MoveRange() 332 std::vector<uint8_t>* buffer, size_t block_size, in ReadAll() argument 335 if (buffer->size() < blocks() * block_size) { in ReadAll() 345 MoveRange(buffer, location_, *buffer, block_size); in ReadAll() 351 std::vector<uint8_t> stash_buffer(stash.blocks() * block_size); in ReadAll() 355 MoveRange(buffer, stash.ranges(), stash_buffer, block_size); in ReadAll() 360 void SourceInfo::DumpBuffer(const std::vector<uint8_t>& buffer, size_t block_size) const { in DumpBuffer() 367 CHECK_LE((buffer_index + 1) * block_size, buffer.size()); in DumpBuffer() 370 SHA1(buffer.data() + buffer_index * block_size, block_size, digest); in DumpBuffer()
|
/bootable/recovery/tests/component/ |
D | sideload_test.cpp | 36 FuseTestDataProvider(uint64_t file_size, uint32_t block_size) in FuseTestDataProvider() argument 37 : FuseDataProvider(file_size, block_size) {} in FuseTestDataProvider()
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 123 std::vector<uint8_t>* buffer, size_t block_size, 132 void DumpBuffer(const std::vector<uint8_t>& buffer, size_t block_size) const; 357 size_t block_size() const { in block_size() function
|
/bootable/recovery/tests/unit/ |
D | sysutil_test.cpp | 44 ASSERT_EQ(4096, block_map_data.block_size()); in TEST() 79 ASSERT_EQ(4294967295, block_map_data.block_size()); in TEST()
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 133 uint32_t blksize = block_map_data.block_size(); in MapBlockFile()
|