Searched refs:wfds (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/jni/ |
D | android_util_FileObserver.cpp | 107 ScopedIntArrayRW wfds(env, wfdArray); in android_os_fileobserver_startWatching() local 108 if (wfds.get() == nullptr) { in android_os_fileobserver_startWatching() 116 size_t count = wfds.size(); in android_os_fileobserver_startWatching() 122 wfds[i] = inotify_add_watch(fd, path.c_str(), mask); in android_os_fileobserver_startWatching() 134 ScopedIntArrayRO wfds(env, wfdArray); in android_os_fileobserver_stopWatching() local 135 if (wfds.get() == nullptr) { in android_os_fileobserver_stopWatching() 138 size_t count = wfds.size(); in android_os_fileobserver_stopWatching() 140 inotify_rm_watch((int)fd, (uint32_t)wfds[i]); in android_os_fileobserver_stopWatching()
|
/frameworks/base/core/java/android/os/ |
D | FileObserver.java | 123 final int[] wfds = new int[count]; in startWatching() local 124 Arrays.fill(wfds, -1); in startWatching() 126 startWatching(m_fd, paths, mask, wfds); in startWatching() 131 for (int wfd : wfds) { in startWatching() 138 return wfds; in startWatching() 173 @NotifyEventType int mask, int[] wfds); in startWatching() argument 174 private native void stopWatching(int fd, int[] wfds); in stopWatching() argument
|