Home
last modified time | relevance | path

Searched defs:FdInterfaceWrapper (Results 1 – 1 of 1) sorted by relevance

/aosp_15_r20/hardware/google/pixel/power-libperfmgr/aidl/tests/
DGpuCapacityNodeTest.cpp40 struct FdInterfaceWrapper : FdInterface { struct
41 FdInterfaceWrapper(std::shared_ptr<FdInterface> const &wrapped) : wrapped_(wrapped) {} in FdInterfaceWrapper() argument
43 int open(const char *path, int flags) const final { return wrapped_->open(path, flags); } in open()
45 int write(int fd, const char *data, size_t count) const final { in write()
48 ssize_t read(int fd, void *data, size_t count) const final { in read()
51 off_t lseek(int fd, off_t offset, int whence) const final { in lseek()
55 int close(int fd) const final { return wrapped_->close(fd); } in close()
56 std::shared_ptr<FdInterface> const wrapped_;