Searched refs:mInotifyFd (Results 1 – 4 of 4) sorted by relevance
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | ConnectionDetector.cpp | 109 mLooper(new Looper(true /*allowNonCallback*/)), mInotifyFd(-1) { in FileConnectionDetector() 114 mInotifyFd = ::inotify_init1(IN_NONBLOCK); in FileConnectionDetector() 115 if (mInotifyFd < 0) { in FileConnectionDetector() 120 int wd = ::inotify_add_watch(mInotifyFd, path.c_str(), IN_CREATE | IN_DELETE); in FileConnectionDetector() 121 if (wd < 0 || !mLooper->addFd(mInotifyFd, POLL_IDENT, Looper::EVENT_INPUT, nullptr, nullptr)) { in FileConnectionDetector() 122 ::close(mInotifyFd); in FileConnectionDetector() 123 mInotifyFd = -1; in FileConnectionDetector() 133 if (mInotifyFd > 0) { in ~FileConnectionDetector() 137 ::close(mInotifyFd); in ~FileConnectionDetector() 192 ssize_t len = ::read(mInotifyFd, &buffer, sizeof(buffer)); in readInotifyData() [all …]
|
D | ConnectionDetector.h | 79 int mInotifyFd; variable
|
/hardware/google/pixel/usb/ |
D | MonitorFfs.cpp | 66 mInotifyFd = move(inotifyFd); in MonitorFfs() 155 if (events[i].data.fd == monitorFfs->mInotifyFd) { in startMonitorFd() 157 int numRead = read(monitorFfs->mInotifyFd, buf, kBufferSize); in startMonitorFd() 231 inotify_rm_watch(mInotifyFd, mWatchFd[i]); in reset() 270 wfd = inotify_add_watch(mInotifyFd, fd.c_str(), IN_ALL_EVENTS); in addInotifyFd()
|
/hardware/google/pixel/usb/include/pixelusb/ |
D | UsbGadgetCommon.h | 101 unique_fd mInotifyFd;
|