Searched refs:whence (Results 1 - 14 of 14) sorted by relevance

/system/update_engine/payload_consumer/
H A Dcached_file_descriptor.cc29 off64_t CachedFileDescriptor::Seek(off64_t offset, int whence) { argument
33 CHECK(whence == SEEK_SET || whence == SEEK_CUR);
34 off64_t next_offset = whence == SEEK_SET ? offset : offset_ + offset;
H A Dfake_file_descriptor.cc55 off64_t FakeFileDescriptor::Seek(off64_t offset, int whence) { argument
56 switch (whence) {
H A Dfile_descriptor.h73 virtual off64_t Seek(off64_t offset, int whence) = 0;
120 off64_t Seek(off64_t offset, int whence) override;
H A Dmtd_file_descriptor.h42 off64_t Seek(off64_t offset, int whence) override;
78 off64_t Seek(off64_t offset, int whence) override;
H A Dfile_descriptor.cc65 off64_t EintrSafeFileDescriptor::Seek(off64_t offset, int whence) { argument
67 return lseek64(fd_, offset, whence);
H A Dcached_file_descriptor.h49 off64_t Seek(off64_t offset, int whence) override;
H A Dfake_file_descriptor.h59 off64_t Seek(off64_t offset, int whence) override;
H A Dmtd_file_descriptor.cc154 off64_t MtdFileDescriptor::Seek(off64_t offset, int whence) { argument
159 return EintrSafeFileDescriptor::Seek(offset, whence);
231 off64_t UbiFileDescriptor::Seek(off64_t offset, int whence) { argument
236 return EintrSafeFileDescriptor::Seek(offset, whence);
/system/core/include/utils/
H A DCompat.h28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument
29 return lseek(fd, offset, whence);
/system/core/libutils/include/utils/
H A DCompat.h28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument
29 return lseek(fd, offset, whence);
/system/extras/libfec/include/fec/
H A Dio.h105 extern int fec_seek(struct fec_handle *f, int64_t offset, int whence);
150 bool seek(int64_t offset, int whence) { argument
151 return !fec_seek(handle_.get(), offset, whence);
/system/core/libcutils/
H A Dopen_memstream.c162 static fpos_t seek_memstream(void* cookie, fpos_t offset, int whence) argument
167 if (whence == SEEK_CUR) {
169 } else if (whence == SEEK_END) {
/system/core/libcutils/tests/
H A DAshmemTest.cpp157 int whence; member in struct:__anon1673
168 auto off = lseek(fd, cfg.offset, cfg.whence);
169 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed"
/system/extras/libfec/
H A Dfec_read.cpp403 /* sets the internal file position to `offset' relative to `whence' */
404 int fec_seek(struct fec_handle *f, int64_t offset, int whence) argument
408 if (whence == SEEK_SET) {
415 } else if (whence == SEEK_CUR) {
425 } else if (whence == SEEK_END) {

Completed in 225 milliseconds