Home
last modified time | relevance | path

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

/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/
H A 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()
204 ssize_t len = ::read(mInotifyFd, &buffer, sizeof(buffer)); in readInotifyData()
[all …]
H A DConnectionDetector.h82 int mInotifyFd; variable
/aosp12/hardware/interfaces/usb/gadget/1.1/default/lib/
H A 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()
/aosp12/hardware/interfaces/usb/gadget/1.2/default/lib/
H A 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()
/aosp12/hardware/google/pixel/usb/
H A 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()
/aosp12/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp1746 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 DBootAnimation.h163 int mInotifyFd; variable
/aosp12/hardware/interfaces/usb/gadget/1.1/default/lib/include/
H A DUsbGadgetCommon.h100 unique_fd mInotifyFd;
/aosp12/hardware/interfaces/usb/gadget/1.2/default/lib/include/
H A DUsbGadgetCommon.h102 unique_fd mInotifyFd;
/aosp12/hardware/google/pixel/usb/include/pixelusb/
H A DUsbGadgetCommon.h102 unique_fd mInotifyFd;