/system/update_engine/payload_consumer/ |
D | cached_file_descriptor_unittest.cc | 86 EXPECT_EQ(cfd_->Seek(0, SEEK_SET), 0); in TEST_F() 97 EXPECT_EQ(cfd_->Seek(0, SEEK_SET), 0); in TEST_F() 110 EXPECT_EQ(cfd_->Seek(0, SEEK_SET), 0); in TEST_F() 120 EXPECT_EQ(cfd_->Seek(start, SEEK_SET), static_cast<off64_t>(start)); in TEST_F() 131 EXPECT_EQ(cfd_->Seek(0, SEEK_SET), 0); in TEST_F() 132 EXPECT_EQ(cfd_->Seek(1, SEEK_SET), 1); in TEST_F() 133 EXPECT_EQ(cfd_->Seek(kFileSize - 1, SEEK_SET), in TEST_F() 135 EXPECT_EQ(cfd_->Seek(kFileSize, SEEK_SET), static_cast<off64_t>(kFileSize)); in TEST_F() 136 EXPECT_EQ(cfd_->Seek(kFileSize + 1, SEEK_SET), in TEST_F() 139 EXPECT_EQ(cfd_->Seek(0, SEEK_SET), 0); in TEST_F() [all …]
|
D | extent_reader_unittest.cc | 83 EXPECT_TRUE(reader.Seek(0)); in TEST_F() 95 EXPECT_TRUE(reader.Seek(0)); in TEST_F() 104 EXPECT_TRUE(reader.Seek(0)); in TEST_F() 114 EXPECT_TRUE(reader.Seek(0)); in TEST_F() 123 EXPECT_TRUE(reader.Seek(0)); in TEST_F() 124 EXPECT_FALSE(reader.Seek(1)); in TEST_F() 130 EXPECT_TRUE(reader.Seek(0)); in TEST_F() 131 EXPECT_FALSE(reader.Seek(1)); in TEST_F() 139 EXPECT_TRUE(reader.Seek(kBlockSize)); in TEST_F() 140 EXPECT_FALSE(reader.Seek(kBlockSize + 1)); in TEST_F() [all …]
|
D | cow_writer_file_descriptor.cc | 57 const auto offset = cow_reader_->Seek(0, SEEK_CUR); in Read() 68 const auto pos = cow_reader_->Seek(offset, SEEK_SET); in Read() 81 auto offset = cow_reader_->Seek(0, SEEK_CUR); in Write() 86 if (cow_reader_->Seek(count, SEEK_CUR) < 0) { in Write() 95 off64_t CowWriterFileDescriptor::Seek(const off64_t offset, int whence) { in Seek() function in chromeos_update_engine::CowWriterFileDescriptor 96 return cow_reader_->Seek(offset, whence); in Seek()
|
D | extent_reader.h | 39 virtual bool Seek(uint64_t offset) = 0; 55 bool Seek(uint64_t offset) override;
|
D | cached_file_descriptor.cc | 29 off64_t CachedFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::CachedFileDescriptor 43 if (fd_->Seek(next_offset, SEEK_SET) < 0) { in Seek()
|
D | file_descriptor.h | 73 virtual off64_t Seek(off64_t offset, int whence) = 0; 121 off64_t Seek(off64_t offset, int whence) override;
|
D | cow_writer_file_descriptor_unittest.cc | 97 ASSERT_EQ((ssize_t)BLOCK_SIZE * 4, cow_fd->Seek(BLOCK_SIZE * 4, SEEK_SET)); in TEST_F() 111 ASSERT_EQ((ssize_t)BLOCK_SIZE * 4, cow_fd->Seek(BLOCK_SIZE * 4, SEEK_SET)); in TEST_F()
|
D | fec_file_descriptor.h | 43 off64_t Seek(off64_t offset, int whence) override;
|
D | extent_writer.cc | 50 TEST_AND_RETURN_FALSE_ERRNO(fd_->Seek(offset, SEEK_SET) != in Write()
|
D | cow_writer_file_descriptor.h | 44 off64_t Seek(off64_t offset, int whence) override;
|
D | fec_file_descriptor.cc | 57 off64_t FecFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::FecFileDescriptor
|
D | cached_file_descriptor.h | 49 off64_t Seek(off64_t offset, int whence) override;
|
D | fake_file_descriptor.cc | 55 off64_t FakeFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::FakeFileDescriptor
|
D | fake_file_descriptor.h | 61 off64_t Seek(off64_t offset, int whence) override;
|
D | extent_reader.cc | 50 bool DirectExtentReader::Seek(uint64_t offset) { in Seek() function in chromeos_update_engine::DirectExtentReader
|
D | verity_writer_android.cc | 122 write_fd->Seek(partition_->hash_tree_offset, SEEK_SET)); in Finalize() 212 write_fd->Seek(fec_offset, SEEK_SET); in EncodeFEC()
|
D | partition_writer.cc | 134 bool Seek(off_t pos) override { in Seek() function in chromeos_update_engine::BsdiffExtentFile 136 TEST_AND_RETURN_FALSE(reader_->Seek(pos)); in Seek() 193 bool Seek(uint64_t offset) override { in Seek() function in chromeos_update_engine::PuffinExtentStream 195 TEST_AND_RETURN_FALSE(reader_->Seek(offset)); in Seek()
|
D | file_descriptor.cc | 72 off64_t EintrSafeFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::EintrSafeFileDescriptor
|
D | filesystem_verifier_action.cc | 226 const auto cur_offset = fd->Seek(start_offset, SEEK_SET); in WriteVerityAndHashPartition() 272 const auto cur_offset = fd->Seek(start_offset, SEEK_SET); in HashPartition()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_reader_test.cpp | 85 ASSERT_EQ(reader->Seek(i * kBlockSize, SEEK_SET), i * kBlockSize); in TestBlockReads() 92 ASSERT_EQ(reader->Seek(3 * kBlockSize, SEEK_SET), 3 * kBlockSize); in TestBlockReads() 96 ASSERT_EQ(reader->Seek(5 * kBlockSize, SEEK_SET), 5 * kBlockSize); in TestBlockReads() 102 ASSERT_EQ(reader->Seek(7 * kBlockSize, SEEK_SET), 7 * kBlockSize); in TestBlockReads() 116 ASSERT_EQ(reader->Seek(0, SEEK_SET), 0); in TestByteReads() 117 ASSERT_EQ(reader->Seek(offset, SEEK_CUR), offset); in TestByteReads() 127 ASSERT_EQ(reader->Seek(offset, SEEK_SET), offset); in TestByteReads()
|
D | snapshot_reader.h | 42 off64_t Seek(off64_t offset, int whence) override; 60 off64_t Seek(off64_t offset, int whence) override;
|
D | snapshot_writer_test.cpp | 56 cow_reader->Seek(BLOCK_SIZE, SEEK_SET); in TEST_F()
|
D | snapshot_reader.cpp | 55 off64_t ReadFdFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in android::snapshot::ReadFdFileDescriptor 290 off64_t CompressedSnapshotReader::Seek(off64_t offset, int whence) { in Seek() function in android::snapshot::CompressedSnapshotReader
|
/system/core/libsparse/ |
D | sparse_read.cpp | 62 virtual void Seek(int64_t offset) = 0; 91 void Seek(int64_t off) override { lseek64(fd, off, SEEK_CUR); } in Seek() function in SparseFileFdSource 130 void Seek(int64_t off) override { in Seek() function in SparseFileBufSource 149 Seek(len); in ReadValue() 155 Seek(len); in GetCrc32() 199 source->Seek(len); in process_raw_chunk() 382 source->Seek(sparse_header.file_hdr_sz - SPARSE_HEADER_LEN); in sparse_file_read_sparse() 395 source->Seek(sparse_header.chunk_hdr_sz - CHUNK_HEADER_LEN); in sparse_file_read_sparse()
|
/system/update_engine/common/ |
D | utils.cc | 199 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(offset, SEEK_SET) != in WriteAll() 226 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(offset, SEEK_SET) != in ReadAll() 247 auto old_off = fd->Seek(0, SEEK_CUR); in PReadAll() 251 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(old_off, SEEK_SET) == old_off); in PReadAll() 259 auto old_off = fd->Seek(0, SEEK_CUR); in PWriteAll() 263 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(old_off, SEEK_SET) == old_off); in PWriteAll()
|