/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 | 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; 120 off64_t Seek(off64_t offset, int whence) override;
|
D | mtd_file_descriptor.h | 44 off64_t Seek(off64_t offset, int whence) override; 80 off64_t Seek(off64_t offset, int whence) override;
|
D | mtd_file_descriptor.cc | 152 off64_t MtdFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::MtdFileDescriptor 157 return EintrSafeFileDescriptor::Seek(offset, whence); in Seek() 229 off64_t UbiFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::UbiFileDescriptor 234 return EintrSafeFileDescriptor::Seek(offset, whence); in Seek()
|
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 | fec_file_descriptor.cc | 55 off64_t FecFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::FecFileDescriptor
|
D | fake_file_descriptor.cc | 55 off64_t FakeFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::FakeFileDescriptor
|
D | cached_file_descriptor.h | 49 off64_t Seek(off64_t offset, int whence) override;
|
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 | file_descriptor.cc | 65 off64_t EintrSafeFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::EintrSafeFileDescriptor
|
D | delta_performer.cc | 1385 bool Seek(off_t pos) override { in Seek() function in chromeos_update_engine::__anon4d4a53960311::BsdiffExtentFile 1387 TEST_AND_RETURN_FALSE(reader_->Seek(pos)); in Seek() 1485 bool Seek(uint64_t offset) override { in Seek() function in chromeos_update_engine::__anon4d4a53960411::PuffinExtentStream 1487 TEST_AND_RETURN_FALSE(reader_->Seek(offset)); in Seek()
|
/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 | 262 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(offset, SEEK_SET) != in PWriteAll() 289 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(offset, SEEK_SET) != in PReadAll()
|