Home
last modified time | relevance | path

Searched refs:mInotifyFd (Results 1 – 8 of 8) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/
DConnectionDetector.cpp113 mLooper(new Looper(true /*allowNonCallback*/)), mInotifyFd(-1) { in FileConnectionDetector()
118 mInotifyFd = ::inotify_init1(IN_NONBLOCK); in FileConnectionDetector()
119 if (mInotifyFd < 0) { in FileConnectionDetector()
124 int wd = ::inotify_add_watch(mInotifyFd, path.c_str(), IN_CREATE | IN_DELETE); in FileConnectionDetector()
125 if (wd < 0 || !mLooper->addFd(mInotifyFd, POLL_IDENT, Looper::EVENT_INPUT, nullptr, nullptr)) { in FileConnectionDetector()
126 ::close(mInotifyFd); in FileConnectionDetector()
127 mInotifyFd = -1; in FileConnectionDetector()
134 if (mInotifyFd > 0) { in ~FileConnectionDetector()
138 ::close(mInotifyFd); in ~FileConnectionDetector()
200 ssize_t len = ::read(mInotifyFd, &buffer, sizeof(buffer)); in readInotifyData()
[all …]
DConnectionDetector.h82 int mInotifyFd; variable
/hardware/interfaces/usb/gadget/1.1/default/lib/
DMonitorFfs.cpp63 mInotifyFd = move(inotifyFd); in MonitorFfs()
134 if (events[i].data.fd == monitorFfs->mInotifyFd) { in startMonitorFd()
136 int numRead = read(monitorFfs->mInotifyFd, buf, kBufferSize); in startMonitorFd()
206 inotify_rm_watch(mInotifyFd, mWatchFd[i]); in reset()
244 wfd = inotify_add_watch(mInotifyFd, fd.c_str(), IN_ALL_EVENTS); in addInotifyFd()
/hardware/google/pixel/usb/
DMonitorFfs.cpp66 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/interfaces/usb/gadget/1.2/default/lib/
DMonitorFfs.cpp63 mInotifyFd = move(inotifyFd); in MonitorFfs()
134 if (events[i].data.fd == monitorFfs->mInotifyFd) { in startMonitorFd()
136 int numRead = read(monitorFfs->mInotifyFd, buf, kBufferSize); in startMonitorFd()
206 inotify_rm_watch(mInotifyFd, mWatchFd[i]); in reset()
244 wfd = inotify_add_watch(mInotifyFd, fd.c_str(), IN_ALL_EVENTS); in addInotifyFd()
/hardware/interfaces/usb/gadget/1.2/default/lib/include/
DUsbGadgetCommon.h102 unique_fd mInotifyFd;
/hardware/interfaces/usb/gadget/1.1/default/lib/include/
DUsbGadgetCommon.h100 unique_fd mInotifyFd;
/hardware/google/pixel/usb/include/pixelusb/
DUsbGadgetCommon.h102 unique_fd mInotifyFd;