/system/core/fs_mgr/libvbmeta/ |
D | reader.cpp | 61 if (!android::base::ReadFullyAtOffset(fd, header_buffer.get(), SUPER_VBMETA_HEADER_SIZE, in ReadVBMetaTable() 74 if (!android::base::ReadFullyAtOffset(fd, descriptors_buffer.get(), in ReadVBMetaTable() 98 if (!android::base::ReadFullyAtOffset(fd, buffer.get(), VBMETA_IMAGE_MAX_SIZE, offset)) { in ReadVBMetaImage()
|
/system/libbase/ |
D | abi_compatibility.cpp | 56 bool ReadFullyAtOffset(int fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() function 57 return ReadFullyAtOffset(borrowed_fd(fd), data, byte_count, offset); in ReadFullyAtOffset()
|
D | file.cpp | 341 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() function
|
/system/core/fs_mgr/libsnapshot/ |
D | cow_snapuserd_test.cpp | 272 ASSERT_EQ(ReadFullyAtOffset(rnd_fd, (char*)random_buffer.get(), 1_MiB, 0), true); in CreateBaseDevice() 290 ASSERT_EQ(ReadFullyAtOffset(snapshot_fd, snapuserd_buffer.get(), size_, offset), true); in ReadSnapshotDeviceAndValidate() 295 ASSERT_EQ(ReadFullyAtOffset(snapshot_fd, snapuserd_buffer.get(), size_, offset), true); in ReadSnapshotDeviceAndValidate() 300 ASSERT_EQ(ReadFullyAtOffset(snapshot_fd, snapuserd_buffer.get(), size_, offset), true); in ReadSnapshotDeviceAndValidate() 305 ASSERT_EQ(ReadFullyAtOffset(snapshot_fd, snapuserd_buffer.get(), size_, offset), true); in ReadSnapshotDeviceAndValidate() 340 ASSERT_EQ(android::base::ReadFullyAtOffset(base_fd_, orig_buffer_.get(), total_base_size_, 0), in CreateCowDeviceWithCopyOverlap_2() 393 ASSERT_EQ(android::base::ReadFullyAtOffset(base_fd_, orig_buffer_.get(), total_base_size_, 0), in CreateCowDeviceWithCopyOverlap_1() 397 ASSERT_EQ(android::base::ReadFullyAtOffset(base_fd_, orig_buffer_.get(), options.block_size, 0), in CreateCowDeviceWithCopyOverlap_1() 399 ASSERT_EQ(android::base::ReadFullyAtOffset( in CreateCowDeviceWithCopyOverlap_1() 418 ASSERT_EQ(ReadFullyAtOffset(rnd_fd, (char*)random_buffer_1_.get() + offset, 1_MiB, 0), in CreateCowDeviceOrderedOpsInverted() [all …]
|
D | snapshot_writer.cpp | 174 if (!android::base::ReadFullyAtOffset(source_fd, buffer.data(), buffer.size(), offset)) { in EmitCopy()
|
D | snapuserd_readahead.cpp | 359 if (!android::base::ReadFullyAtOffset(backing_store_fd_, in ReadAheadIOStart()
|
D | snapshot_reader.cpp | 266 if (!android::base::ReadFullyAtOffset(fd, buffer, bytes_to_read, offset)) { in ReadBlock()
|
D | estimate_cow_from_nonab_ota.cpp | 354 if (android::base::ReadFullyAtOffset(source_fd, src_chunk.data(), src_chunk.size(), in AnalyzePartition()
|
D | snapuserd_worker.cpp | 153 if (!android::base::ReadFullyAtOffset(backing_store_fd_, buffer, BLOCK_SZ, in ReadFromBaseDevice()
|
/system/libbase/include/android-base/ |
D | file.h | 105 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset);
|
/system/apex/apexd/ |
D | apex_file.cpp | 42 using android::base::ReadFullyAtOffset; 68 if (!ReadFullyAtOffset(fd, buf, fs.len, image_offset + fs.offset)) { in RetrieveFsType() 290 if (!ReadFullyAtOffset(fd, vbmeta_buf.get(), footer.vbmeta_size, offset)) { in VerifyVbMeta()
|
/system/gsid/ |
D | gsi_service.cpp | 60 using android::base::ReadFullyAtOffset; 1108 if (!ReadFullyAtOffset(fd, footer_bytes.data(), AVB_FOOTER_SIZE, footer_offset)) { in GetAvbPublicKeyFromFd() 1120 if (!ReadFullyAtOffset(fd, vbmeta_bytes.data(), vbmeta_bytes.size(), footer.vbmeta_offset)) { in GetAvbPublicKeyFromFd()
|
/system/extras/simpleperf/ |
D | read_elf.cpp | 86 if (!android::base::ReadFullyAtOffset(fd, buf, 4, file_offset)) { in IsValidElfFile()
|
/system/libziparchive/ |
D | zip_archive.cc | 1600 if (!android::base::ReadFullyAtOffset(fd_, buf, len, read_offset)) { in ReadAtOffset()
|