Home
last modified time | relevance | path

Searched refs:wd (Results 1 - 14 of 14) sorted by relevance

/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/
H A Dmedialibrary_inotify.cpp87 if (watchList_.count(event->wd) == 0) { in WatchCallBack()
90 auto &item = watchList_.at(event->wd); in WatchCallBack()
105 Remove(event->wd); in WatchCallBack()
154 int32_t wd = -1; in RemoveByFileUri() local
157 wd = iter->first; in RemoveByFileUri()
158 MEDIA_DEBUG_LOG("remove uri:%{public}s wd:%{public}d path:%{public}s", in RemoveByFileUri()
159 iter->second.uri_.c_str(), wd, iter->second.path_.c_str()); in RemoveByFileUri()
163 if (wd < 0) { in RemoveByFileUri()
167 return Remove(wd); in RemoveByFileUri()
170 int32_t MediaLibraryInotify::Remove(int wd) in Remove() argument
200 int32_t wd = inotify_add_watch(inotifyFd_, path.c_str(), IN_CLOSE | IN_MODIFY); AddWatchList() local
[all...]
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A Dwatcher_impl.cpp56 int wd = -1; in CheckEventWatched() local
59 return {false, wd}; in CheckEventWatched()
61 wd = iter->second.first; in CheckEventWatched()
63 return {true, wd}; in CheckEventWatched()
65 return {false, wd}; in CheckEventWatched()
95 if (iter->fileName == arg->fileName && iter->wd > 0) { in RemoveWatcherInfo()
109 auto [isWatched, wd] = CheckEventWatched(arg->fileName, arg->events); in StartNotify()
110 if (isWatched && wd > 0) { in StartNotify()
111 arg->wd = wd; in StartNotify()
131 NotifyToWatchNewEvents(const string &fileName, const int &wd, const uint32_t &watchEvents) NotifyToWatchNewEvents() argument
[all...]
H A Dwatcher_impl.h42 int wd = -1; member
88 int NotifyToWatchNewEvents(const std::string &fileName, const int &wd, const uint32_t &watchEvents);
H A Dcopy.cpp411 std::shared_ptr<ReceiveInfo> CopyImpl::GetReceivedInfo(int wd, std::shared_ptr<CjCallbackObject> callback) in GetReceivedInfo() argument
413 auto it = find_if(callback->wds.begin(), callback->wds.end(), [wd](const auto& item) { in GetReceivedInfo()
414 return item.first == wd; in GetReceivedInfo()
464 auto receivedInfo = GetReceivedInfo(event->wd, callback); in HandleProgress()
H A Dcopy.h165 static std::shared_ptr<ReceiveInfo> GetReceivedInfo(int wd, std::shared_ptr<CjCallbackObject> callback);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_watcher/
H A Dwatcher_entity.cpp59 int wd = -1; in CheckEventWatched() local
62 return {false, wd}; in CheckEventWatched()
64 wd = iter->second.first; in CheckEventWatched()
66 return {true, wd}; in CheckEventWatched()
68 return {false, wd}; in CheckEventWatched()
79 auto [isWatched, wd] = CheckEventWatched(arg->fileName, arg->events); in StartNotify()
80 if (isWatched && wd > 0) { in StartNotify()
81 arg->wd = wd; in StartNotify()
85 if (wd ! in StartNotify()
101 NotifyToWatchNewEvents(const string &fileName, const int &wd, const uint32_t &watchEvents) NotifyToWatchNewEvents() argument
[all...]
H A Dwatcher_entity.h39 int wd = -1; member
67 int NotifyToWatchNewEvents(const std::string &fileName, const int &wd, const uint32_t &watchEvents);
/foundation/communication/bluetooth/frameworks/js/napi/src/audio_manager/
H A Dnapi_bluetooth_audio_manager.cpp58 BluetoothAudioManager &wd = BluetoothAudioManager::GetInstance(); in EnableWearDetection()
59 int32_t err = wd.EnableWearDetection(remoteAddr); in EnableWearDetection()
76 BluetoothAudioManager &wd = BluetoothAudioManager::GetInstance(); in DisableWearDetection()
77 int32_t err = wd.DisableWearDetection(remoteAddr); in DisableWearDetection()
95 BluetoothAudioManager &wd = BluetoothAudioManager::GetInstance(); in IsWearDetectionEnabled()
96 int32_t err = wd.GetWearDetectionState(remoteAddr, ability); in IsWearDetectionEnabled()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/
H A Dmedialibrary_inotify.h52 int32_t Remove(int wd);
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_file_observer.cpp72 iter = watchMap_.find(event->wd); in AddInotifyEvents()
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Drender_backend_vk.cpp1914 LowLevelContextDescriptorWriteDataVk& wd = ctxDescMgr.GetLowLevelDescriptorWriteData();
1917 if ((descIdx >= static_cast<uint32_t>(wd.writeDescriptorSets.size())) ||
1961 wd.descriptorAccelInfos[dsud.accelIndex + idx] = {
1969 wd.writeDescriptorSets[dsud.writeBindIdx++] = {
1971 &wd.descriptorAccelInfos[dsud.accelIndex], // pNext
1997 wd.descriptorBufferInfos[dsud.bufferIndex + idx] = {
2004 wd.writeDescriptorSets[dsud.writeBindIdx++] = {
2013 &wd.descriptorBufferInfos[dsud.bufferIndex], // pBufferInfo
2054 wd.descriptorImageInfos[dsud.imageIndex + idx] = {
2061 wd
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dcopy.cpp641 std::shared_ptr<ReceiveInfo> Copy::GetReceivedInfo(int wd, std::shared_ptr<JsCallbackObject> callback) in GetReceivedInfo() argument
643 auto it = find_if(callback->wds.begin(), callback->wds.end(), [wd](const auto& item) { in GetReceivedInfo()
644 return item.first == wd; in GetReceivedInfo()
704 auto receivedInfo = GetReceivedInfo(event->wd, callback); in HandleProgress()
H A Dcopy.h169 static std::shared_ptr<ReceiveInfo> GetReceivedInfo(int wd, std::shared_ptr<JsCallbackObject> callback);
/foundation/distributedhardware/distributed_input/common/include/
H A Dinput_hub.cpp1109 if (event.wd == inputWd_) { in JudgeDeviceOpenOrClose()
1118 DHLOGI("Unexpected inotify event, wd = %i", event.wd); in JudgeDeviceOpenOrClose()

Completed in 12 milliseconds