Searched refs:callbackInfos (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_event.cpp | 91 void UpdateCallbackInfo(std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> callbackInfos, in UpdateCallbackInfo() argument 94 auto it = callbackInfos.find(type); in UpdateCallbackInfo() 95 if (it != callbackInfos.end() && it->second != nullptr) { in UpdateCallbackInfo() 124 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos) in OnEvent() argument 154 UpdateCallbackInfo(callbackInfos, type); in OnEvent() 156 callbackInfos[type] = callbackInfo; in OnEvent() 162 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos) in OffEvent() argument 181 auto it = callbackInfos.find(type); in OffEvent() 182 if (it == callbackInfos.end() || it->second == nullptr) { in OffEvent()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/ble/ |
H A D | napi_bluetooth_ble_central_manager_callback.cpp | 146 auto callbackInfos = observers[REGISTER_SYS_BLE_FIND_DEVICE_TYPE]; in SysOnScanCallBack() local 148 napi_get_uv_event_loop(callbackInfos[PARAM0]->env_, &loop); in SysOnScanCallBack() 166 data->env = callbackInfos[PARAM0]->env_; in SysOnScanCallBack() 167 data->callbackSuccess = callbackInfos[PARAM0]->callback_; in SysOnScanCallBack() 168 data->callbackFail = callbackInfos[PARAM1]->callback_; in SysOnScanCallBack() 297 callbackInfos = observers[REGISTER_SYS_BLE_SCAN_TYPE]; in OnStartOrStopScanEvent() 301 napi_get_uv_event_loop(callbackInfos[PARAM0]->env_, &loop); in OnStartOrStopScanEvent() 318 data->env = callbackInfos[PARAM0]->env_; in OnStartOrStopScanEvent() 319 data->callbackSuccess = callbackInfos[PARAM0]->callback_; in OnStartOrStopScanEvent() 320 data->callbackFail = callbackInfos[PARAM1]->callback_; in OnStartOrStopScanEvent() [all …]
|
/ohos5.0/base/notification/eventhandler/frameworks/cj/src/ |
H A D | emitter.cpp | 275 …rocessCallback(const InnerEvent::Pointer& event, std::unordered_set<CallbackInfo *>& callbackInfos) in ProcessCallback() argument 282 for (auto iter = callbackInfos.begin(); iter != callbackInfos.end();) { in ProcessCallback() 286 iter = callbackInfos.erase(iter); in ProcessCallback() 311 std::unordered_set<CallbackInfo *> callbackInfos; in ProcessEvent() local 319 callbackInfos = subscribe->second; in ProcessEvent() 321 LOGD("size = %{public}zu", callbackInfos.size()); in ProcessEvent() 322 ProcessCallback(event, callbackInfos); in ProcessEvent() 323 if (callbackInfos.empty()) { in ProcessEvent() 329 subscribe->second = callbackInfos; in ProcessEvent()
|
/ohos5.0/base/sensors/sensor/frameworks/js/napi/src/ |
H A D | sensor_js.cpp | 257 for (auto callbackInfo : callbackInfos) { in IsOnceSubscribed() 430 for (auto iter = callbackInfos.begin(); iter != callbackInfos.end();) { in RemoveAllCallback() 436 iter = callbackInfos.erase(iter); in RemoveAllCallback() 438 if (callbackInfos.empty()) { in RemoveAllCallback() 444 return callbackInfos.size(); in RemoveAllCallback() 452 for (auto iter = callbackInfos.begin(); iter != callbackInfos.end();) { in RemoveCallback() 470 if (callbackInfos.empty()) { in RemoveCallback() 476 return callbackInfos.size(); in RemoveCallback() 1238 for (auto iter = callbackInfos.begin(); iter != callbackInfos.end();) { in RemoveSubscribeCallback() 1244 iter = callbackInfos.erase(iter); in RemoveSubscribeCallback() [all …]
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_event.h | 45 void UpdateCallbackInfo(std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> callbackInfos, 54 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos); 56 std::map<std::string, std::shared_ptr<BluetoothCallbackInfo>> &callbackInfos);
|
/ohos5.0/base/notification/eventhandler/frameworks/napi/src/ |
H A D | events_emitter.cpp | 149 auto callbackInfos = GetAsyncCallbackInfo(eventId); variable 150 if (callbackInfos.size() <= 0) { 155 size_t callbackSize = callbackInfos.size(); 165 for (auto it = callbackInfos.begin(); it != callbackInfos.end(); ++it) { 171 HILOGW("EventData maybe release at process %{public}zu", callbackInfos.size()); 178 HILOGW("EventData maybe release at nullptr %{public}zu", callbackInfos.size());
|