Searched refs:mINotifyFd (Results 1 – 4 of 4) sorted by relevance
/aosp12/hardware/libhardware/modules/input/evdev/ |
H A D | InputHub.cpp | 449 mINotifyFd = inotify_init(); in InputHub() 450 LOG_ALWAYS_FATAL_IF(mINotifyFd < 0, "Could not create inotify instance. errno=%d", errno); in InputHub() 458 eventItem.data.u32 = mINotifyFd; in InputHub() 459 int result = epoll_ctl(mEpollFd, EPOLL_CTL_ADD, mINotifyFd, &eventItem); in InputHub() 476 ::close(mINotifyFd); in ~InputHub() 486 int wd = inotify_add_watch(mINotifyFd, path.c_str(), IN_DELETE | IN_CREATE); in registerDevicePath() 509 if (inotify_rm_watch(mINotifyFd, wd) != 0) { in unregisterDevicePath() 559 if (dataFd == mINotifyFd) { in poll() 673 ssize_t res = TEMP_FAILURE_RETRY(read(mINotifyFd, event_buf, sizeof(event_buf))); in readNotify()
|
H A D | InputHub.h | 214 int mINotifyFd; variable
|
/aosp12/frameworks/native/services/inputflinger/reader/ |
H A D | EventHub.cpp | 687 mINotifyFd = inotify_init(); in EventHub() 688 mInputWd = inotify_add_watch(mINotifyFd, DEVICE_PATH, IN_DELETE | IN_CREATE); in EventHub() 692 mVideoWd = inotify_add_watch(mINotifyFd, VIDEO_DEVICE_PATH, IN_DELETE | IN_CREATE); in EventHub() 702 eventItem.data.fd = mINotifyFd; in EventHub() 703 int result = epoll_ctl(mEpollFd, EPOLL_CTL_ADD, mINotifyFd, &eventItem); in EventHub() 731 ::close(mINotifyFd); in ~EventHub() 1551 if (eventItem.data.fd == mINotifyFd) { in getEvents() 2348 ALOGV("EventHub::readNotify nfd: %d\n", mINotifyFd); in readNotifyLocked() 2349 res = read(mINotifyFd, event_buf, sizeof(event_buf)); in readNotifyLocked()
|
/aosp12/frameworks/native/services/inputflinger/reader/include/ |
H A D | EventHub.h | 701 int mINotifyFd; variable
|