Home
last modified time | relevance | path

Searched refs:notifyDataListenerMap_ (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/base/request/request/frameworks/native/src/
H A Drequest.cpp63 notifyDataListenerMap_[type] = listener; in AddListener()
77 notifyDataListenerMap_.erase(type); in RemoveListener()
87 return !notifyDataListenerMap_.empty(); in HasListener()
101 auto listener = notifyDataListenerMap_.find(notifyData->type); in OnNotifyDataReceive()
102 if (listener != notifyDataListenerMap_.end()) { in OnNotifyDataReceive()
/ohos5.0/base/request/request/frameworks/cj/ffi/src/
H A Dcj_request_task.cpp290 notifyDataListenerMap_[SubscribeType::REMOVE] = in Create()
294 GetTidStr(), SubscribeType::REMOVE, notifyDataListenerMap_[SubscribeType::REMOVE]); in Create()
338 auto listener = notifyDataListenerMap_.find(subscribeType); in On()
339 if (listener == notifyDataListenerMap_.end()) { in On()
340 notifyDataListenerMap_[subscribeType] = in On()
344 notifyDataListenerMap_[subscribeType]->AddListener(CJLambda::Create(callback), in On()
369 auto listener = notifyDataListenerMap_.find(subscribeType); in Off()
370 if (listener == notifyDataListenerMap_.end()) { in Off()
371 notifyDataListenerMap_[subscribeType] = in Off()
375 notifyDataListenerMap_[subscribeType]->RemoveListener((CFunc)callback); in Off()
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Drequest_event.cpp158 auto listener = jsParam.task->notifyDataListenerMap_.find(jsParam.subscribeType); in On()
159 if (listener == jsParam.task->notifyDataListenerMap_.end()) { in On()
160 jsParam.task->notifyDataListenerMap_[jsParam.subscribeType] = in On()
164 …napi_status ret = jsParam.task->notifyDataListenerMap_[jsParam.subscribeType]->AddListener(jsParam… in On()
202 auto listener = jsParam.task->notifyDataListenerMap_.find(jsParam.subscribeType); in Off()
203 if (listener == jsParam.task->notifyDataListenerMap_.end()) { in Off()
204 jsParam.task->notifyDataListenerMap_[jsParam.subscribeType] = in Off()
208 …napi_status ret = jsParam.task->notifyDataListenerMap_[jsParam.subscribeType]->RemoveListener(jsPa… in Off()
H A Djs_task.cpp213 context->task->notifyDataListenerMap_[SubscribeType::REMOVE] = in AddRemoveListener()
217 tid, SubscribeType::REMOVE, context->task->notifyDataListenerMap_[SubscribeType::REMOVE]); in AddRemoveListener()
1155 auto map = context->task->notifyDataListenerMap_; in RemoveTaskContext()
/ohos5.0/base/request/request/frameworks/native/include/
H A Drequest.h45 std::map<SubscribeType, std::shared_ptr<INotifyDataListener>> notifyDataListenerMap_; variable
/ohos5.0/base/request/request/frameworks/cj/ffi/include/
H A Dcj_request_task.h47 std::map<SubscribeType, std::shared_ptr<CJNotifyDataListener>> notifyDataListenerMap_; variable
/ohos5.0/base/request/request/frameworks/js/napi/include/
H A Djs_task.h67 std::map<SubscribeType, std::shared_ptr<JSNotifyDataListener>> notifyDataListenerMap_; variable