/ohos5.0/foundation/ability/dmsfwk/services/dtbabilitymgr/src/continuation_manager/ |
H A D | notifier_info.cpp | 20 sptr<IRemoteObject> NotifierInfo::GetNotifier(const std::string& cbType) const in GetNotifier() 22 auto iter = notifierMap_.find(cbType); in GetNotifier() 29 void NotifierInfo::SetNotifier(const std::string& cbType, const sptr<IRemoteObject>& notifier) in SetNotifier() argument 31 notifierMap_[cbType] = notifier; in SetNotifier() 34 void NotifierInfo::DeleteNotifier(const std::string& cbType) in DeleteNotifier() argument 36 auto iter = notifierMap_.find(cbType); in DeleteNotifier() 61 const std::string& cbType) in RemoveDeathRecipient() argument 63 if (cbType.empty()) { in RemoveDeathRecipient() 69 auto it = notifierMap_.find(cbType); in RemoveDeathRecipient()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/interfaces/kits/js/napi/src/ |
H A D | js_systemload.cpp | 108 std::string cbType; in RegisterSystemloadCallback() local 111 if (!CheckCallbackParam(env, info, cbType, &jsCallback)) { in RegisterSystemloadCallback() 121 if (jsCallBackMap_.find(cbType) == jsCallBackMap_.end()) { in RegisterSystemloadCallback() 122 jsCallBackMap_[cbType] = std::list<CallBackPair>(); in RegisterSystemloadCallback() 124 auto& callbackList = jsCallBackMap_[cbType]; in RegisterSystemloadCallback() 151 std::string cbType; in UnRegisterSystemloadCallback() local 154 if (!CheckCallbackParam(env, info, cbType, &jsCallback)) { in UnRegisterSystemloadCallback() 160 if (jsCallBackMap_.find(cbType) == jsCallBackMap_.end()) { in UnRegisterSystemloadCallback() 164 auto& callbackList = jsCallBackMap_[cbType]; in UnRegisterSystemloadCallback() 260 std::string &cbType, napi_value *jsCallback) in CheckCallbackParam() argument [all …]
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbabilitymgr/src/ |
H A D | distributed_ability_manager_stub.cpp | 127 std::string cbType; in RegisterDeviceSelectionCallbackInner() local 128 PARCEL_READ_HELPER(data, String, cbType); in RegisterDeviceSelectionCallbackInner() 129 if (cbType.empty()) { in RegisterDeviceSelectionCallbackInner() 138 int32_t result = RegisterDeviceSelectionCallback(token, cbType, notifier); in RegisterDeviceSelectionCallbackInner() 149 std::string cbType; in UnregisterDeviceSelectionCallbackInner() local 150 PARCEL_READ_HELPER(data, String, cbType); in UnregisterDeviceSelectionCallbackInner() 151 if (cbType.empty()) { in UnregisterDeviceSelectionCallbackInner() 155 int32_t result = UnregisterDeviceSelectionCallback(token, cbType); in UnregisterDeviceSelectionCallbackInner()
|
H A D | distributed_ability_manager_service.cpp | 216 if (cbType != EVENT_CONNECT && cbType != EVENT_DISCONNECT) { in RegisterDeviceSelectionCallback() 217 HILOGE("type: %{public}s not support!", cbType.c_str()); in RegisterDeviceSelectionCallback() 224 if (IsNotifierRegisteredLocked(token, cbType)) { in RegisterDeviceSelectionCallback() 234 iter->second->SetNotifier(cbType, notifier); in RegisterDeviceSelectionCallback() 237 notifierInfo->SetNotifier(cbType, notifier); in RegisterDeviceSelectionCallback() 249 if (cbType != EVENT_CONNECT && cbType != EVENT_DISCONNECT) { in UnregisterDeviceSelectionCallback() 250 HILOGE("type: %{public}s not support!", cbType.c_str()); in UnregisterDeviceSelectionCallback() 257 if (!IsNotifierRegisteredLocked(token, cbType)) { in UnregisterDeviceSelectionCallback() 265 iter->second->DeleteNotifier(cbType); in UnregisterDeviceSelectionCallback() 575 if (callbackMap_[token]->GetNotifier(cbType) != nullptr) { in IsNotifierRegisteredLocked() [all …]
|
H A D | distributed_ability_manager_proxy.cpp | 83 int32_t token, const std::string& cbType, const sptr<IRemoteObject>& notifier) in RegisterDeviceSelectionCallback() argument 86 if (cbType.empty()) { in RegisterDeviceSelectionCallback() 105 PARCEL_WRITE_HELPER(data, String, cbType); in RegisterDeviceSelectionCallback() 112 …tedAbilityManagerProxy::UnregisterDeviceSelectionCallback(int32_t token, const std::string& cbType) in UnregisterDeviceSelectionCallback() argument 115 if (cbType.empty()) { in UnregisterDeviceSelectionCallback() 129 PARCEL_WRITE_HELPER(data, String, cbType); in UnregisterDeviceSelectionCallback()
|
H A D | distributed_ability_manager_client.cpp | 70 …utedAbilityManagerClient::RegisterDeviceSelectionCallback(int32_t token, const std::string& cbType, in RegisterDeviceSelectionCallback() argument 79 return continuationMgrProxy->RegisterDeviceSelectionCallback(token, cbType, notifier); in RegisterDeviceSelectionCallback() 82 …edAbilityManagerClient::UnregisterDeviceSelectionCallback(int32_t token, const std::string& cbType) in UnregisterDeviceSelectionCallback() argument 90 return continuationMgrProxy->UnregisterDeviceSelectionCallback(token, cbType); in UnregisterDeviceSelectionCallback()
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbabilitymgr/include/continuation_manager/ |
H A D | notifier_info.h | 38 sptr<IRemoteObject> GetNotifier(const std::string& cbType) const; 39 void SetNotifier(const std::string& cbType, const sptr<IRemoteObject>& notifier); 40 void DeleteNotifier(const std::string& cbType); 44 const std::string& cbType = std::string());
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbabilitymgr/test/unittest/ |
H A D | distributed_ability_manager_stub_test.cpp | 142 std::string cbType = ""; variable 143 data.WriteString(cbType); 163 std::string cbType = "mockType"; variable 164 data.WriteString(cbType); 184 std::string cbType = ""; variable 185 data.WriteString(cbType); 205 std::string cbType = "12345"; variable 206 data.WriteString(cbType);
|
/ohos5.0/foundation/ability/dmsfwk/interfaces/kits/napi/continuation_manager/ |
H A D | js_continuation_manager.cpp | 344 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnRegisterDeviceSelectionCallbackParameterCheck() 347 if (cbType != EVENT_CONNECT && cbType != EVENT_DISCONNECT) { in OnRegisterDeviceSelectionCallbackParameterCheck() 364 std::string cbType; in OnRegisterDeviceSelectionCallback() local 372 if (IsCallbackRegistered(token, cbType)) { in OnRegisterDeviceSelectionCallback() 387 token, cbType, deviceSelectionListener); in OnRegisterDeviceSelectionCallback() 412 std::string cbType; in OnUnregisterDeviceSelectionCallback() local 422 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnUnregisterDeviceSelectionCallback() 425 if (cbType != EVENT_CONNECT && cbType != EVENT_DISCONNECT) { in OnUnregisterDeviceSelectionCallback() 434 if (!IsCallbackRegistered(token, cbType)) { in OnUnregisterDeviceSelectionCallback() 441 callbackPair.second->RemoveCallback(cbType); in OnUnregisterDeviceSelectionCallback() [all …]
|
H A D | js_device_selection_listener.cpp | 41 void JsDeviceSelectionListener::AddCallback(const std::string& cbType, napi_value jsListenerObj) in AddCallback() argument 53 jsCallBackMap_[cbType] = std::move(callbackRef); in AddCallback() 55 cbType.c_str(), static_cast<uint32_t>(jsCallBackMap_.size())); in AddCallback() 58 void JsDeviceSelectionListener::RemoveCallback(const std::string& cbType) in RemoveCallback() argument 62 jsCallBackMap_.erase(cbType); in RemoveCallback() 64 cbType.c_str(), static_cast<uint32_t>(jsCallBackMap_.size())); in RemoveCallback()
|
H A D | js_device_selection_listener.h | 35 void AddCallback(const std::string& cbType, napi_value jsListenerObj); 36 void RemoveCallback(const std::string& cbType);
|
H A D | js_continuation_manager.h | 76 bool IsCallbackRegistered(int32_t token, const std::string& cbType); 86 napi_callback_info info, std::string &cbType, int32_t &token, napi_value *jsListenerObj);
|
/ohos5.0/foundation/ability/dmsfwk/interfaces/innerkits/common/include/ |
H A D | distributed_ability_manager_client.h | 33 … int32_t token, const std::string& cbType, const sptr<DeviceSelectionNotifierStub>& notifier); 34 int32_t UnregisterDeviceSelectionCallback(int32_t token, const std::string& cbType);
|
H A D | distributed_ability_manager_proxy.h | 34 int32_t token, const std::string& cbType, const sptr<IRemoteObject>& notifier) override; 35 int32_t UnregisterDeviceSelectionCallback(int32_t token, const std::string& cbType) override;
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbabilitymgr/include/ |
H A D | distributed_ability_manager_interface.h | 39 int32_t token, const std::string& cbType, const sptr<IRemoteObject>& notifier) = 0; 40 virtual int32_t UnregisterDeviceSelectionCallback(int32_t token, const std::string& cbType) = 0;
|
H A D | distributed_ability_manager_service.h | 44 int32_t token, const std::string& cbType, const sptr<IRemoteObject>& notifier) override; 45 int32_t UnregisterDeviceSelectionCallback(int32_t token, const std::string& cbType) override; 65 bool IsNotifierRegisteredLocked(int32_t token, const std::string& cbType);
|
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/ |
H A D | js_root_scene_session.cpp | 97 std::string cbType; in OnRegisterCallback() local 98 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnRegisterCallback() 111 if (IsCallbackRegistered(env, cbType, value)) { in OnRegisterCallback() 129 …HITRACE_METER_FMT(HITRACE_TAG_WINDOW_MANAGER, "JsRootSceneSession set jsCbMap[%s]", cbType.c_str()… in OnRegisterCallback() 131 jsCbMap_[cbType] = callbackRef; in OnRegisterCallback() 133 WLOGFD("[NAPI]Register end, type = %{public}s", cbType.c_str()); in OnRegisterCallback()
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/picture_in_picture_napi/ |
H A D | js_pip_controller.cpp | 320 std::string cbType = ""; in OnRegisterCallback() local 321 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnRegisterCallback() 330 WmErrorCode ret = RegisterListenerWithType(env, cbType, value); in OnRegisterCallback() 465 std::string cbType = ""; in OnUnregisterCallback() local 466 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnUnregisterCallback() 471 UnRegisterListenerWithType(env, cbType, nullptr); in OnUnregisterCallback() 476 UnRegisterListenerWithType(env, cbType, value); in OnUnregisterCallback()
|
/ohos5.0/base/security/device_auth/frameworks/src/standard/ |
H A D | ipc_adapt.cpp | 58 int32_t cbType; member 163 if ((ret == 0) && (g_ipcCallBackList.ctx[i].cbType == type)) { in GetIpcCallBackByAppId() 252 node->cbType = type; in AddIpcCallBackByAppId() 294 (g_ipcCallBackList.ctx[i].cbType == type)) { in GetIpcCallBackByReqId() 383 node->cbType = type; in AddIpcCallBackByReqId() 956 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnGroupCreated() 995 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnGroupDeleted() 1036 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnDeviceBound() 1077 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnDeviceUnBound() 1116 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnDeviceNotTrusted() [all …]
|
/ohos5.0/base/security/device_auth/frameworks/src/lite/ |
H A D | ipc_adapt.c | 52 int32_t cbType; member 163 if ((ret == 0) && (g_ipcCallBackList.ctx[i].cbType == type)) { in GetIpcCallBackByAppId() 252 node->cbType = type; in AddIpcCallBackByAppId() 295 (g_ipcCallBackList.ctx[i].cbType == type)) { in GetIpcCallBackByReqId() 389 node->cbType = type; in AddIpcCallBackByReqId() 1011 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnGroupCreated() 1058 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnGroupDeleted() 1106 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnDeviceBound() 1154 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnDeviceUnBound() 1201 if (g_ipcCallBackList.ctx[i].cbType == CB_TYPE_LISTENER) { in IpcOnDeviceNotTrusted() [all …]
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/extension_window/ |
H A D | js_extension_window.cpp | 775 std::string cbType; in OnRegisterExtensionWindowCallback() local 776 if (!ConvertFromJsValue(env, argv[INDEX_ZERO], cbType)) { in OnRegisterExtensionWindowCallback() 780 if (cbType == RECT_CHANGE) { in OnRegisterExtensionWindowCallback() 788 …WmErrorCode ret = extensionRegisterManager_->RegisterListener(windowImpl, cbType, CaseType::CASE_W… in OnRegisterExtensionWindowCallback() 795 windowImpl->GetWindowId(), windowImpl->GetWindowName().c_str(), cbType.c_str()); in OnRegisterExtensionWindowCallback() 813 std::string cbType; in OnUnRegisterExtensionWindowCallback() local 814 if (!ConvertFromJsValue(env, argv[INDEX_ZERO], cbType)) { in OnUnRegisterExtensionWindowCallback() 818 if (cbType == RECT_CHANGE) { in OnUnRegisterExtensionWindowCallback() 828 …ret = extensionRegisterManager_->UnregisterListener(windowImpl, cbType, CaseType::CASE_WINDOW, env… in OnUnRegisterExtensionWindowCallback() 832 … ret = extensionRegisterManager_->UnregisterListener(windowImpl, cbType, CaseType::CASE_WINDOW, in OnUnRegisterExtensionWindowCallback() [all …]
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/picture_in_picture_napi/inner/ |
H A D | js_pip_manager.cpp | 205 std::string cbType; in OnRegisterCallback() local 206 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnRegisterCallback() 220 TLOGI(WmsLogTag::WMS_PIP, "Register type %{public}s success!", cbType.c_str()); in OnRegisterCallback()
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/display_runtime/ |
H A D | js_display.cpp | 246 std::string cbType; in OnRegisterDisplayManagerCallback() local 247 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnRegisterDisplayManagerCallback() 267 … DmErrorCode ret = DM_JS_TO_ERROR_CODE_MAP.at(RegisterDisplayListenerWithType(env, cbType, value)); in OnRegisterDisplayManagerCallback() 320 std::string cbType; in OnUnregisterDisplayManagerCallback() local 321 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnUnregisterDisplayManagerCallback() 330 ret = DM_JS_TO_ERROR_CODE_MAP.at(UnregisterAllDisplayListenerWithType(cbType)); in OnUnregisterDisplayManagerCallback() 334 ret = DM_JS_TO_ERROR_CODE_MAP.at(UnregisterAllDisplayListenerWithType(cbType)); in OnUnregisterDisplayManagerCallback() 336 ret = DM_JS_TO_ERROR_CODE_MAP.at(UnRegisterDisplayListenerWithType(env, cbType, value)); in OnUnregisterDisplayManagerCallback()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/ |
H A D | notifier_mgr.cpp | 137 auto cbType = static_cast<ResType::DeviceStatus>(type); in OnDeviceLevelChanged() local 138 if (g_DeviceStatusType.count(cbType) == 0) { in OnDeviceLevelChanged()
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/screen_runtime/napi/ |
H A D | js_screen_manager.cpp | 311 std::string cbType; in OnRegisterScreenManagerCallback() local 312 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnRegisterScreenManagerCallback() 329 DmErrorCode ret = RegisterScreenListenerWithType(env, cbType, value); in OnRegisterScreenManagerCallback() 347 std::string cbType; in OnUnregisterScreenManagerCallback() local 348 if (!ConvertFromJsValue(env, argv[0], cbType)) { in OnUnregisterScreenManagerCallback() 355 DmErrorCode ret = UnregisterAllScreenListenerWithType(cbType); in OnUnregisterScreenManagerCallback() 363 DmErrorCode ret = UnregisterAllScreenListenerWithType(cbType); in OnUnregisterScreenManagerCallback() 369 DmErrorCode ret = UnRegisterScreenListenerWithType(env, cbType, value); in OnUnregisterScreenManagerCallback()
|