Lines Matching refs:fd_
53 if (fd_ >= 0) { in ~VirtualDevice()
54 ioctl(fd_, UI_DEV_DESTROY); in ~VirtualDevice()
55 close(fd_); in ~VirtualDevice()
56 fd_ = -1; in ~VirtualDevice()
62 fd_ = open("/dev/uinput", O_WRONLY | O_NONBLOCK); in SetUp()
63 if (fd_ < 0) { in SetUp()
68 if (!DoIoctl(fd_, UI_SET_EVBIT, item)) { in SetUp()
74 if (!DoIoctl(fd_, UI_SET_KEYBIT, item)) { in SetUp()
80 if (!DoIoctl(fd_, UI_SET_PROPBIT, item)) { in SetUp()
86 if (!DoIoctl(fd_, UI_SET_ABSBIT, item)) { in SetUp()
92 if (!DoIoctl(fd_, UI_SET_RELBIT, item)) { in SetUp()
112 if (write(fd_, &dev_, sizeof(dev_)) < 0) { in SetUpExt()
116 if (ioctl(fd_, UI_DEV_CREATE) < 0) { in SetUpExt()
132 if (write(fd_, &event, sizeof(event)) < static_cast<ssize_t>(sizeof(event))) { in EmitEvent()