Home
last modified time | relevance | path

Searched refs:inotifyFd_ (Results 1 - 9 of 9) sorted by relevance

/foundation/multimodalinput/input/intention/services/device_manager/src/
H A Dmonitor.cpp75 int32_t ret = inotify_rm_watch(inotifyFd_, devWd_); in Disable()
81 if (inotifyFd_ >= 0) { in Disable()
82 if (close(inotifyFd_) < 0) { in Disable()
83 FI_HILOGE("close inotify fd failed, error:%{public}s, inotifyFd_:%{public}d", strerror(errno), inotifyFd_); in Disable()
85 inotifyFd_ = -1; in Disable()
92 inotifyFd_ = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); in OpenConnection()
93 if (inotifyFd_ < 0) { in OpenConnection()
103 devWd_ = inotify_add_watch(inotifyFd_, DEV_INPUT_PATH.c_str(), IN_CREATE | IN_DELETE); in EnableReceiving()
120 numRead = ::read(inotifyFd_, bu in ReceiveDevice()
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_inotify.cpp75 int32_t len = read(inotifyFd_, data, READ_LEN); in WatchCallBack()
77 MEDIA_ERR_LOG("read event error, len: %{public}d, fd: %{public}d, error: %{public}d", len, inotifyFd_, in WatchCallBack()
118 if (inotify_rm_watch(inotifyFd_, iter->first) != 0) { in Restart()
124 inotifyFd_ = 0; in Restart()
141 if (inotify_rm_watch(inotifyFd_, iter->first) != 0) { in DoStop()
147 inotifyFd_ = 0; in DoStop()
173 if (inotify_rm_watch(inotifyFd_, wd) != 0) { in Remove()
182 if (inotifyFd_ <= 0) { in Init()
183 inotifyFd_ = inotify_init(); in Init()
184 if (inotifyFd_ < in Init()
[all...]
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_file_observer.cpp27 int MtpFileObserver::inotifyFd_ = 0; member in OHOS::Media::MtpFileObserver
102 if (inotify_rm_watch(inotifyFd_, ret.first) == -1) { in StopFileInotify()
107 close(inotifyFd_); in StopFileInotify()
111 inotifyFd_ = 0; in StopFileInotify()
118 inotifyFd_ = inotify_init(); in StartFileInotify()
119 if (inotifyFd_ == -1) { in StartFileInotify()
138 AddInotifyEvents(inotifyFd_, context); in WatchPathThread()
149 int ret = inotify_add_watch(inotifyFd_, realPath.c_str(), in AddFileInotify()
/foundation/multimodalinput/input/service/libinput_adapter/include/
H A Dhotplug_detector.h40 return inotifyFd_; in GetFd()
49 UniqueFd inotifyFd_; member in OHOS::MMI::final
/foundation/multimodalinput/input/service/libinput_adapter/src/
H A Dhotplug_detector.cpp52 inotifyFd_ = {}; in Stop()
77 inotifyFd_ = std::move(fd); in Init()
105 if (inotifyFd_ < 0) { in OnEvent()
109 int32_t res = read(inotifyFd_, event_buf, sizeof(event_buf)); in OnEvent()
/foundation/multimodalinput/input/intention/services/device_manager/include/
H A Dmonitor.h54 int32_t inotifyFd_ { -1 };
61 return inotifyFd_; in GetFd()
/foundation/multimodalinput/input/service/libinput_adapter/test/
H A Dlibinput_adapter_test.cpp102 libinputAdapter.hotplugDetector_.inotifyFd_ = UniqueFd{ 10 }; in HWTEST_F()
118 libinputAdapter.hotplugDetector_.inotifyFd_ = UniqueFd{ 15 }; in HWTEST_F()
/foundation/multimedia/media_library/frameworks/services/media_mtp/include/
H A Dmtp_file_observer.h41 static int inotifyFd_; member in OHOS::Media::MtpFileObserver
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dmedialibrary_inotify.h61 static inline int inotifyFd_ = 0; member in OHOS::Media::MediaLibraryInotify

Completed in 3 milliseconds