Home
last modified time | relevance | path

Searched refs:fd_ (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/libs/vr/libpdx/private/pdx/
Dfile_handle.h25 FileHandle() : fd_(kEmptyFileHandle) {} in FileHandle()
29 explicit FileHandle(int fd) : fd_(fd) {} in FileHandle()
34 fd_ = open(path.c_str(), flags, mode);
41 fd_ = openat(directory_fd, path.c_str(), flags, mode);
47 fd_ = other.fd_; in FileHandle()
48 other.fd_ = kEmptyFileHandle; in FileHandle()
67 Reset(other.fd_);
68 other.fd_ = kEmptyFileHandle;
76 fd_ = fd; in Reset()
82 close(fd_); in Close()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Depoll_file_descriptor.h17 EpollFileDescriptor() : fd_(-1) {} in EpollFileDescriptor()
21 explicit EpollFileDescriptor(int fd) : fd_(fd) {} in EpollFileDescriptor()
23 bool IsValid() const { return fd_.get() >= 0; } in IsValid()
31 fd_.reset(epoll_create1(EPOLL_CLOEXEC)); in Create()
33 if (fd_.get() < 0) in Create()
40 if (epoll_ctl(fd_.get(), op, target_fd, ev) < 0) in Control()
47 int ret = epoll_wait(fd_.get(), events, maxevents, timeout); in Wait()
55 int Get() const { return fd_.get(); } in Get()
58 base::unique_fd fd_;
/frameworks/base/tools/aapt2/io/
DFileStream.cpp43 fd_.reset(TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode))); in FileInputStream()
44 if (fd_ == -1) { in FileInputStream()
52 : fd_(fd), buffer_capacity_(buffer_capacity) { in FileInputStream()
53 if (fd_ < 0) { in FileInputStream()
74 ssize_t n = TEMP_FAILURE_RETRY(read(fd_, buffer_.get(), buffer_capacity_)); in Next()
77 fd_.reset(); in Next()
104 return fd_ == -1; in HadError()
115 fd_ = owned_fd_.get(); in FileOutputStream()
116 if (fd_ < 0) { in FileOutputStream()
129 : fd_(fd), buffer_capacity_(buffer_capacity) { in FileOutputStream()
[all …]
DFileStream.h54 android::base::unique_fd fd_; variable
96 int fd_; variable
/frameworks/native/services/vr/virtual_touchpad/
DEvdevInjector.cpp16 fd_.reset(open("/dev/uinput", O_WRONLY | O_NONBLOCK)); in Open()
17 if (fd_.get() < 0) { in Open()
18 ALOGE("couldn't open uinput (r=%d errno=%d)", fd_.get(), errno); in Open()
25 fd_.reset(); in Close()
32 ssize_t r = write(fd_.get(), buf, count); in Write()
42 if (const int status = ioctl(fd_.get(), request, value)) { in IoctlSetInt()
43 ALOGE("ioctl(%d, 0x%X, 0x%X) failed (r=%d errno=%d)", fd_.get(), request, in IoctlSetInt()
52 if (const int status = ioctl(fd_.get(), request)) { in IoctlVoid()
53 ALOGE("ioctl(%d, 0x%X) failed (r=%d errno=%d)", fd_.get(), request, status, in IoctlVoid()
DEvdevInjector.h53 base::unique_fd fd_;