Home
last modified time | relevance | path

Searched refs:ReadFullyAtOffset (Results 1 – 14 of 14) sorted by relevance

/system/core/fs_mgr/libvbmeta/
Dreader.cpp61 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/
Dabi_compatibility.cpp56 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()
Dfile.cpp341 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() function
/system/core/fs_mgr/libsnapshot/
Dcow_snapuserd_test.cpp272 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 …]
Dsnapshot_writer.cpp174 if (!android::base::ReadFullyAtOffset(source_fd, buffer.data(), buffer.size(), offset)) { in EmitCopy()
Dsnapuserd_readahead.cpp359 if (!android::base::ReadFullyAtOffset(backing_store_fd_, in ReadAheadIOStart()
Dsnapshot_reader.cpp266 if (!android::base::ReadFullyAtOffset(fd, buffer, bytes_to_read, offset)) { in ReadBlock()
Destimate_cow_from_nonab_ota.cpp354 if (android::base::ReadFullyAtOffset(source_fd, src_chunk.data(), src_chunk.size(), in AnalyzePartition()
Dsnapuserd_worker.cpp153 if (!android::base::ReadFullyAtOffset(backing_store_fd_, buffer, BLOCK_SZ, in ReadFromBaseDevice()
/system/libbase/include/android-base/
Dfile.h105 bool ReadFullyAtOffset(borrowed_fd fd, void* data, size_t byte_count, off64_t offset);
/system/apex/apexd/
Dapex_file.cpp42 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/
Dgsi_service.cpp60 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/
Dread_elf.cpp86 if (!android::base::ReadFullyAtOffset(fd, buf, 4, file_offset)) { in IsValidElfFile()
/system/libziparchive/
Dzip_archive.cc1600 if (!android::base::ReadFullyAtOffset(fd_, buf, len, read_offset)) { in ReadAtOffset()