Searched refs:mInotifyFd (Results 1 – 10 of 10) sorted by relevance
/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/ |
H A D | ConnectionDetector.cpp | 113 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() 204 ssize_t len = ::read(mInotifyFd, &buffer, sizeof(buffer)); in readInotifyData() [all …]
|
H A D | ConnectionDetector.h | 82 int mInotifyFd; variable
|
/aosp12/hardware/interfaces/usb/gadget/1.1/default/lib/ |
H A D | MonitorFfs.cpp | 63 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()
|
/aosp12/hardware/interfaces/usb/gadget/1.2/default/lib/ |
H A D | MonitorFfs.cpp | 63 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()
|
/aosp12/hardware/google/pixel/usb/ |
H A 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()
|
/aosp12/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 1746 close(mInotifyFd); in ~TimeCheckThread() 1753 close(mInotifyFd); in threadLoop() 1754 mInotifyFd = -1; in threadLoop() 1763 struct pollfd pfd = { mInotifyFd, POLLIN, 0 }; in doThreadLoop() 1801 inotify_rm_watch(mInotifyFd, mSystemWd); in addTimeDirWatch() 1807 mInotifyFd = inotify_init(); in readyToRun() 1808 if (mInotifyFd < 0) { in readyToRun() 1815 close(mInotifyFd); in readyToRun() 1816 mInotifyFd = -1; in readyToRun() 1824 close(mInotifyFd); in readyToRun() [all …]
|
H A D | BootAnimation.h | 163 int mInotifyFd; variable
|
/aosp12/hardware/interfaces/usb/gadget/1.1/default/lib/include/ |
H A D | UsbGadgetCommon.h | 100 unique_fd mInotifyFd;
|
/aosp12/hardware/interfaces/usb/gadget/1.2/default/lib/include/ |
H A D | UsbGadgetCommon.h | 102 unique_fd mInotifyFd;
|
/aosp12/hardware/google/pixel/usb/include/pixelusb/ |
H A D | UsbGadgetCommon.h | 102 unique_fd mInotifyFd;
|