Home
last modified time | relevance | path

Searched refs:inotifyFd (Results 1 – 6 of 6) sorted by relevance

/device/google/trout/hal/vehicle/2.0/
DGarageModeServerSideHandler.cpp142 int inotifyFd = inotify_init(); in PowerStateWatcher() local
143 if (inotifyFd < 0) { in PowerStateWatcher()
148 int watchDescriptor = inotify_add_watch(inotifyFd, mPowerStateMarkerPath.c_str(), IN_MODIFY); in PowerStateWatcher()
162 auto eventReadLen = read(inotifyFd, inotifyEventBuffer, sizeof(inotifyEventBuffer)); in PowerStateWatcher()
/device/google/wahoo/usb/
DUsbGadget.cpp462 unique_fd inotifyFd(inotify_init()); in setupFunctions() local
463 if (inotifyFd < 0) { in setupFunctions()
477 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/mtp/", IN_ALL_EVENTS) == -1) in setupFunctions()
491 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/ptp/", IN_ALL_EVENTS) == -1) in setupFunctions()
543 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/adb/", IN_ALL_EVENTS) == -1) in setupFunctions()
573 if (addEpollFd(epollFd, inotifyFd) == -1) return Status::ERROR; in setupFunctions()
578 mInotifyFd = move(inotifyFd); in setupFunctions()
/device/google/crosshatch/usb/
DUsbGadget.cpp487 unique_fd inotifyFd(inotify_init()); in setupFunctions() local
488 if (inotifyFd < 0) { in setupFunctions()
502 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/mtp/", IN_ALL_EVENTS) == -1) in setupFunctions()
516 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/ptp/", IN_ALL_EVENTS) == -1) in setupFunctions()
568 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/adb/", IN_ALL_EVENTS) == -1) in setupFunctions()
598 if (addEpollFd(epollFd, inotifyFd) == -1) return Status::ERROR; in setupFunctions()
603 mInotifyFd = move(inotifyFd); in setupFunctions()
/device/google/bonito/usb/
DUsbGadget.cpp460 unique_fd inotifyFd(inotify_init()); in setupFunctions() local
461 if (inotifyFd < 0) { in setupFunctions()
475 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/mtp/", IN_ALL_EVENTS) == -1) in setupFunctions()
489 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/ptp/", IN_ALL_EVENTS) == -1) in setupFunctions()
541 if (inotify_add_watch(inotifyFd, "/dev/usb-ffs/adb/", IN_ALL_EVENTS) == -1) in setupFunctions()
571 if (addEpollFd(epollFd, inotifyFd) == -1) return Status::ERROR; in setupFunctions()
576 mInotifyFd = move(inotifyFd); in setupFunctions()
/device/google/contexthub/contexthubhal/
Dnanohubhal.cpp228 pollfd &inotifyFd = myFds[IDX_INOTIFY]; in runDeviceRx() local
232 if (init_inotify(&inotifyFd)) { in runDeviceRx()
249 wait_on_dev_lock(inotifyFd); in runDeviceRx()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp1794 int inotifyFd = inotify_init1(IN_NONBLOCK); in initNanohubLock() local
1795 if (inotifyFd < 0) { in initNanohubLock()
1797 } else if (inotify_add_watch(inotifyFd, NANOHUB_LOCK_DIR, IN_CREATE | IN_DELETE) < 0) { in initNanohubLock()
1799 close(inotifyFd); in initNanohubLock()
1801 mPollFds[mNumPollFds].fd = inotifyFd; in initNanohubLock()