• Home
  • Raw
  • Download

Lines Matching refs:fd

45   android::base::unique_fd fd;  member
80 android::base::unique_fd fd(openat(dirfd(dir.get()), de->d_name, O_RDONLY | O_CLOEXEC)); in ev_init() local
81 if (fd == -1) continue; in ev_init()
87 if (ioctl(fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_init()
102 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in ev_init()
107 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_init()
126 int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb) { in ev_add_fd() argument
134 int ret = epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev); in ev_add_fd()
136 ev_fdinfo[g_ev_count].fd.reset(fd.release()); in ev_add_fd()
147 ev_fdinfo[--g_ev_count].fd.reset(); in ev_exit()
167 cb(fdi->fd, g_polled_events[n].events); in ev_dispatch()
172 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input() argument
174 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input()
191 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_sync_key_state()
197 if (ioctl(ev_fdinfo[i].fd, EVIOCGKEY(sizeof(key_bits)), key_bits) == -1) { in ev_sync_key_state()
221 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_iterate_available_keys()
228 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(EV_KEY, KEY_MAX), key_bits) == -1) { in ev_iterate_available_keys()
244 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(0, sizeof(ev_bits)), ev_bits) == -1) { in ev_iterate_touch_inputs()
252 if (ioctl(ev_fdinfo[i].fd, EVIOCGBIT(EV_ABS, KEY_MAX), key_bits) == -1) { in ev_iterate_touch_inputs()