Home
last modified time | relevance | path

Searched refs:Seek (Results 1 – 17 of 17) sorted by relevance

/system/update_engine/payload_consumer/
Dcached_file_descriptor_unittest.cc86 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 …]
Dextent_reader_unittest.cc83 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 …]
Dextent_reader.h39 virtual bool Seek(uint64_t offset) = 0;
55 bool Seek(uint64_t offset) override;
Dcached_file_descriptor.cc29 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()
Dfile_descriptor.h73 virtual off64_t Seek(off64_t offset, int whence) = 0;
120 off64_t Seek(off64_t offset, int whence) override;
Dfec_file_descriptor.h43 off64_t Seek(off64_t offset, int whence) override;
Dextent_writer.cc50 TEST_AND_RETURN_FALSE_ERRNO(fd_->Seek(offset, SEEK_SET) != in Write()
Dfec_file_descriptor.cc55 off64_t FecFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::FecFileDescriptor
Dcached_file_descriptor.h49 off64_t Seek(off64_t offset, int whence) override;
Dfake_file_descriptor.cc55 off64_t FakeFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::FakeFileDescriptor
Dfake_file_descriptor.h61 off64_t Seek(off64_t offset, int whence) override;
Dextent_reader.cc50 bool DirectExtentReader::Seek(uint64_t offset) { in Seek() function in chromeos_update_engine::DirectExtentReader
Dfile_descriptor.cc65 off64_t EintrSafeFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::EintrSafeFileDescriptor
Ddelta_performer.cc1321 bool Seek(off_t pos) override { in Seek() function in chromeos_update_engine::__anona5c7ad4d0311::BsdiffExtentFile
1323 TEST_AND_RETURN_FALSE(reader_->Seek(pos)); in Seek()
1421 bool Seek(uint64_t offset) override { in Seek() function in chromeos_update_engine::__anona5c7ad4d0411::PuffinExtentStream
1423 TEST_AND_RETURN_FALSE(reader_->Seek(offset)); in Seek()
/system/core/libsparse/
Dsparse_read.cpp62 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/
Dutils.cc220 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(offset, SEEK_SET) != in PWriteAll()
247 TEST_AND_RETURN_FALSE_ERRNO(fd->Seek(offset, SEEK_SET) != in PReadAll()
/system/update_engine/
Ddynamic_partition_control_android.cc524 off64_t offset = fd_->Seek(-AVB_FOOTER_SIZE, SEEK_END); in Erase()