Home
last modified time | relevance | path

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

12

/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 …]
Dcow_writer_file_descriptor.cc57 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()
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;
121 off64_t Seek(off64_t offset, int whence) override;
Dcow_writer_file_descriptor_unittest.cc97 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()
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()
Dcow_writer_file_descriptor.h44 off64_t Seek(off64_t offset, int whence) override;
Dfec_file_descriptor.cc57 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
Dverity_writer_android.cc122 write_fd->Seek(partition_->hash_tree_offset, SEEK_SET)); in Finalize()
212 write_fd->Seek(fec_offset, SEEK_SET); in EncodeFEC()
Dpartition_writer.cc134 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()
Dfile_descriptor.cc72 off64_t EintrSafeFileDescriptor::Seek(off64_t offset, int whence) { in Seek() function in chromeos_update_engine::EintrSafeFileDescriptor
Dfilesystem_verifier_action.cc226 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/
Dsnapshot_reader_test.cpp85 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()
Dsnapshot_reader.h42 off64_t Seek(off64_t offset, int whence) override;
60 off64_t Seek(off64_t offset, int whence) override;
Dsnapshot_writer_test.cpp56 cow_reader->Seek(BLOCK_SIZE, SEEK_SET); in TEST_F()
Dsnapshot_reader.cpp55 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/
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.cc199 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()

12