/base/notification/distributed_notification_service/services/ans/src/ |
D | event_report.cpp | 35 void EventReport::SendHiSysEvent(const std::string &eventName, const EventInfo &eventInfo) in SendHiSysEvent() argument 45 iter->second(eventInfo); in SendHiSysEvent() 50 std::unordered_map<std::string, void (*)(const EventInfo& eventInfo)> EventReport::ansSysEventFuncM… 51 {SUBSCRIBE_ERROR, [](const EventInfo& eventInfo) { in __anond39afa3a0202() 52 InnerSendSubscribeErrorEvent(eventInfo); in __anond39afa3a0202() 54 {ENABLE_NOTIFICATION_ERROR, [](const EventInfo& eventInfo) { in __anond39afa3a0302() 55 InnerSendEnableNotificationErrorEvent(eventInfo); in __anond39afa3a0302() 57 {ENABLE_NOTIFICATION_SLOT_ERROR, [](const EventInfo& eventInfo) { in __anond39afa3a0402() 58 InnerSendEnableNotificationSlotErrorEvent(eventInfo); in __anond39afa3a0402() 60 {PUBLISH_ERROR, [](const EventInfo& eventInfo) { in __anond39afa3a0502() [all …]
|
/base/notification/common_event_service/services/src/ |
D | event_report.cpp | 32 void EventReport::SendHiSysEvent(const std::string &eventName, const EventInfo &eventInfo) in SendHiSysEvent() argument 42 iter->second(eventInfo); in SendHiSysEvent() 47 std::unordered_map<std::string, void (*)(const EventInfo& eventInfo)> EventReport::cesSysEventFuncM… 48 {ORDERED_EVENT_PROC_TIMEOUT, [](const EventInfo& eventInfo) { in __anon79e3b76a0202() 49 InnerSendOrderedEventProcTimeoutEvent(eventInfo); in __anon79e3b76a0202() 51 {STATIC_EVENT_PROC_ERROR, [](const EventInfo& eventInfo) { in __anon79e3b76a0302() 52 InnerSendStaticEventProcErrorEvent(eventInfo); in __anon79e3b76a0302() 54 {SUBSCRIBER_EXCEED_MAXIMUM, [](const EventInfo& eventInfo) { in __anon79e3b76a0402() 55 InnerSendSubscriberExceedMaximumEvent(eventInfo); in __anon79e3b76a0402() 57 {PUBLISH_ERROR, [](const EventInfo& eventInfo) { in __anon79e3b76a0502() [all …]
|
D | inner_common_event_manager.cpp | 470 EventInfo eventInfo; in SendSubscribeHiSysEvent() local 471 eventInfo.userId = userId; in SendSubscribeHiSysEvent() 472 eventInfo.subscriberName = subscriberName; in SendSubscribeHiSysEvent() 473 eventInfo.pid = pid; in SendSubscribeHiSysEvent() 474 eventInfo.uid = uid; in SendSubscribeHiSysEvent() 475 eventInfo.eventName = std::accumulate(events.begin(), events.end(), std::string(""), in SendSubscribeHiSysEvent() 479 EventReport::SendHiSysEvent(SUBSCRIBE, eventInfo); in SendSubscribeHiSysEvent() 490 EventInfo eventInfo; in SendUnSubscribeHiSysEvent() local 492 eventInfo.userId = subscriberRecord->eventSubscribeInfo->GetUserId(); in SendUnSubscribeHiSysEvent() 494 eventInfo.eventName = std::accumulate(events.begin(), events.end(), std::string(""), in SendUnSubscribeHiSysEvent() [all …]
|
/base/notification/common_event_service/services/test/unittest/ |
D | common_event_hisysevent_test.cpp | 69 EventInfo eventInfo; in HWTEST_F() local 70 eventInfo.userId = TEST_USER_ID; in HWTEST_F() 71 eventInfo.subscriberName = TEST_BUNDLE_NAME_OF_SUBSCRIBER; in HWTEST_F() 72 eventInfo.pid = getpid(); in HWTEST_F() 73 eventInfo.uid = getuid(); in HWTEST_F() 74 eventInfo.eventName = TEST_EVENT_NAME; in HWTEST_F() 75 eventReport->SendHiSysEvent(ORDERED_EVENT_PROC_TIMEOUT, eventInfo); in HWTEST_F() 92 EventInfo eventInfo; in HWTEST_F() local 93 eventInfo.userId = TEST_USER_ID; in HWTEST_F() 94 eventInfo.publisherName = TEST_BUNDLE_NAME_OF_PUBLISHER; in HWTEST_F() [all …]
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | notification_hisysevent_test.cpp | 76 EventInfo eventInfo; in HWTEST_F() local 77 eventInfo.pid = getpid(); in HWTEST_F() 78 eventInfo.uid = getuid(); in HWTEST_F() 79 eventInfo.errCode = TEST_ERROR_CODE; in HWTEST_F() 80 EventReport::SendHiSysEvent(SUBSCRIBE_ERROR, eventInfo); in HWTEST_F() 82 eventInfo.userId = TEST_USER_ID; in HWTEST_F() 84 eventInfo.bundleName = std::accumulate(appNames.begin(), appNames.end(), std::string(""), in HWTEST_F() 88 EventReport::SendHiSysEvent(SUBSCRIBE_ERROR, eventInfo); in HWTEST_F() 108 EventInfo eventInfo; in HWTEST_F() local 109 eventInfo.bundleName = TEST_BUNDLE_OPTION_BUNDLE_NAME; in HWTEST_F() [all …]
|
/base/notification/distributed_notification_service/services/ans/include/ |
D | event_report.h | 66 static void SendHiSysEvent(const std::string &eventName, const EventInfo &eventInfo); 71 static void InnerSendSubscribeErrorEvent(const EventInfo &eventInfo); 72 static void InnerSendEnableNotificationErrorEvent(const EventInfo &eventInfo); 73 static void InnerSendEnableNotificationSlotErrorEvent(const EventInfo &eventInfo); 74 static void InnerSendPublishErrorEvent(const EventInfo &eventInfo); 75 static void InnerSendFlowControlOccurEvent(const EventInfo &eventInfo); 78 static void InnerSendSubscribeEvent(const EventInfo &eventInfo); 79 static void InnerSendUnSubscribeEvent(const EventInfo &eventInfo); 80 static void InnerSendEnableNotificationEvent(const EventInfo &eventInfo); 81 static void InnerSendEnableNotificationSlotEvent(const EventInfo &eventInfo); [all …]
|
/base/notification/common_event_service/services/include/ |
D | event_report.h | 58 static void SendHiSysEvent(const std::string &eventName, const EventInfo &eventInfo); 63 static void InnerSendOrderedEventProcTimeoutEvent(const EventInfo &eventInfo); 64 static void InnerSendStaticEventProcErrorEvent(const EventInfo &eventInfo); 65 static void InnerSendSubscriberExceedMaximumEvent(const EventInfo &eventInfo); 66 static void InnerSendPublishErrorEvent(const EventInfo &eventInfo); 69 static void InnerSendSubscribeEvent(const EventInfo &eventInfo); 70 static void InnerSendUnSubscribeEvent(const EventInfo &eventInfo); 71 static void InnerSendPublishEvent(const EventInfo &eventInfo); 77 … static std::unordered_map<std::string, void (*)(const EventInfo &eventInfo)> cesSysEventFuncMap_;
|
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
D | napi_hisysevent_adapter.cpp | 125 auto eventInfo = eventAsyncContext->eventInfo; in CheckThenWriteSysEvent() local 128 eventAsyncContext->eventWroteResult = Write(eventInfo); in CheckThenWriteSysEvent() 135 …if (HiSysEvent::controller.CheckLimitWritingEvent(param, eventInfo.domain.c_str(), eventInfo.name.… in CheckThenWriteSysEvent() 140 eventAsyncContext->eventWroteResult = Write(eventInfo); in CheckThenWriteSysEvent() 157 !NapiHiSysEventUtil::HasStrParamLenOverLimit(eventAsyncContext->eventInfo); in Write() 184 const HiSysEventInfo& eventInfo) in InnerWrite() argument 186 AppendParams(eventBase, eventInfo.boolParams); in InnerWrite() 187 AppendParams(eventBase, eventInfo.boolArrayParams); in InnerWrite() 188 AppendParams(eventBase, eventInfo.doubleParams); in InnerWrite() 189 AppendParams(eventBase, eventInfo.doubleArrayParams); in InnerWrite() [all …]
|
/base/update/update_app/feature/ota/src/main/ets/manager/ |
D | OtaUpdateManager.ets | 293 private async notifyUpdateStatusRemote(eventInfo: update.EventInfo): Promise<void> { 294 this.log(`notifyUpdateStatusRemote ${JSON.stringify(eventInfo)}`); 297 eventInfo: eventInfo, 303 private async handleMessage(context: common.Context, eventInfo: update.EventInfo): Promise<void> { 304 let otaStatus: OtaStatus = this.getFormattedOtaStatus(eventInfo); 306 globalThis.lastVersionName = await VersionUtils.obtainNewVersionName(eventInfo?.taskBody); 308 let versionDigest: string = eventInfo?.taskBody?.versionDigestInfo?.versionDigest ?? ''; 309 await this.notifyUpdateStatus(otaStatus, context, versionDigest, eventInfo?.eventId); 343 async onReceivedUpdateServiceMessage(eventInfo: update.EventInfo): Promise<void> { 344 this.log('receives from onReceivedUpdateServiceMessage:' + JSON.stringify(eventInfo)); [all …]
|
/base/update/updateservice/services/callback/src/ |
D | update_callback_stub.cpp | 45 EventInfo eventInfo; in OnRemoteRequest() local 46 MessageParcelHelper::ReadEventInfo(data, eventInfo); in OnRemoteRequest() 47 OnEvent(eventInfo); in OnRemoteRequest()
|
D | update_callback.cpp | 27 void UpdateCallback::OnEvent(const EventInfo &eventInfo) in OnEvent() argument 29 ENGINE_LOGI("OnEvent eventId %d", eventInfo.eventId); in OnEvent()
|
D | update_callback_proxy.cpp | 50 void UpdateCallbackProxy::OnEvent(const EventInfo &eventInfo) in OnEvent() argument 65 int32_t result = MessageParcelHelper::WriteEventInfo(data, eventInfo); in OnEvent()
|
/base/update/updateservice/services/core/ability/callback/src/ |
D | base_callback_utils.cpp | 71 EventInfo eventInfo(eventId, taskBody); in ProgressCallback() local 72 CallbackToHap(eventInfo); in ProgressCallback() 75 void BaseCallbackUtils::CallbackToHap(EventInfo &eventInfo) in CallbackToHap() argument 80 … ENGINE_LOGD("CallbackToHap upgradeCallback eventInfoStr %{public}s", eventInfo.ToJson().c_str()); in CallbackToHap() 81 upgradeCallback->OnEvent(eventInfo); in CallbackToHap() 83 NotifyToHap(eventInfo); in CallbackToHap()
|
/base/hiviewdfx/hiview/utility/common_utils/ |
D | tbox.cpp | 136 void Tbox::FilterTrace(std::map<std::string, std::string>& eventInfo, string eventType) in FilterTrace() argument 138 auto iterEndStack = eventInfo.find(PARAMETER_ENDSTACK); in FilterTrace() 139 if (eventInfo.empty() || iterEndStack == eventInfo.end() || iterEndStack->second.empty()) { in FilterTrace() 145 eventInfo[PARAMETER_ENDSTACK] = block; in FilterTrace() 146 eventInfo["FINGERPRINT"] = Tbox::CalcFingerPrint(block, 0, FP_BUFFER); in FilterTrace() 148 logparse.SetFrame(stackTop, eventInfo); in FilterTrace()
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
D | user_auth_callback_v9.cpp | 186 napi_value eventInfo; in DoResultCallback() local 187 napi_status ret = napi_create_object(env_, &eventInfo); in DoResultCallback() 192 ret = UserAuthNapiHelper::SetInt32Property(env_, eventInfo, "result", result); in DoResultCallback() 197 ret = UserAuthNapiHelper::SetUint8ArrayProperty(env_, eventInfo, "token", token); in DoResultCallback() 204 …ret = UserAuthNapiHelper::SetInt32Property(env_, eventInfo, "remainAttempts", remainTimes.value()); in DoResultCallback() 212 …ret = UserAuthNapiHelper::SetInt32Property(env_, eventInfo, "lockoutDuration", freezingTime.value(… in DoResultCallback() 219 return UserAuthNapiHelper::CallVoidNapiFunc(env_, resultCallback->Get(), ARGS_ONE, &eventInfo); in DoResultCallback() 229 napi_value eventInfo; in DoAcquireCallback() local 230 napi_status ret = napi_create_object(env_, &eventInfo); in DoAcquireCallback() 235 ret = UserAuthNapiHelper::SetInt32Property(env_, eventInfo, "module", module); in DoAcquireCallback() [all …]
|
D | user_auth_callback_v10.cpp | 118 napi_value eventInfo; in DoResultCallback() local 119 napi_status ret = napi_create_object(env_, &eventInfo); in DoResultCallback() 124 ret = UserAuthNapiHelper::SetInt32Property(env_, eventInfo, "result", result); in DoResultCallback() 131 ret = UserAuthNapiHelper::SetUint8ArrayProperty(env_, eventInfo, "token", token); in DoResultCallback() 141 ret = UserAuthNapiHelper::SetInt32Property(env_, eventInfo, "authType", authType); in DoResultCallback() 148 return UserAuthNapiHelper::CallVoidNapiFunc(env_, resultCallback->Get(), ARGS_ONE, &eventInfo); in DoResultCallback()
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_hiappevent_builder.cpp | 89 bool NapiHiAppEventBuilder::IsValidEventInfo(const napi_env env, const napi_value eventInfo) in IsValidEventInfo() argument 91 if (!NapiUtil::IsObject(env, eventInfo)) { in IsValidEventInfo() 95 return IsValidEventDomain(env, NapiUtil::GetProperty(env, eventInfo, DOMAIN_PROPERTY)) in IsValidEventInfo() 96 && IsValidEventName(env, NapiUtil::GetProperty(env, eventInfo, NAME_PROPERTY)) in IsValidEventInfo() 97 && IsValidEventType(env, NapiUtil::GetProperty(env, eventInfo, TYPE_PROPERTY)) in IsValidEventInfo() 98 && IsValidEventParam(env, NapiUtil::GetProperty(env, eventInfo, PARAM_PROPERTY)); in IsValidEventInfo() 209 void NapiHiAppEventBuilder::BuildEventPack(napi_env env, const napi_value eventInfo) in BuildEventPack() argument 211 …std::string domain = NapiUtil::GetString(env, NapiUtil::GetProperty(env, eventInfo, DOMAIN_PROPERT… in BuildEventPack() 212 … std::string name = NapiUtil::GetString(env, NapiUtil::GetProperty(env, eventInfo, NAME_PROPERTY)); in BuildEventPack() 213 int32_t type = NapiUtil::GetInt32(env, NapiUtil::GetProperty(env, eventInfo, TYPE_PROPERTY)); in BuildEventPack() [all …]
|
/base/telephony/cellular_call/services/manager/src/ |
D | cellular_call_handler.cpp | 311 CellularCallEventInfo eventInfo; in GetCsCallsDataResponse() local 312 eventInfo.eventType = CellularCallEventType::EVENT_REQUEST_RESULT_TYPE; in GetCsCallsDataResponse() 313 eventInfo.eventId = RequestResultEventId::RESULT_GET_CURRENT_CALLS_FAILED; in GetCsCallsDataResponse() 318 registerInstance_->ReportEventResultInfo(eventInfo); in GetCsCallsDataResponse() 366 CellularCallEventInfo eventInfo; in DialResponse() local 367 eventInfo.eventType = CellularCallEventType::EVENT_REQUEST_RESULT_TYPE; in DialResponse() 375 eventInfo.eventId = RequestResultEventId::RESULT_DIAL_NO_CARRIER; in DialResponse() 377 eventInfo.eventId = RequestResultEventId::RESULT_DIAL_SEND_FAILED; in DialResponse() 383 registerInstance_->ReportEventResultInfo(eventInfo); in DialResponse() 391 const AppExecFwk::InnerEvent::Pointer &event, CellularCallEventInfo &eventInfo) in CommonResultEventHandling() argument [all …]
|
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/include/ |
D | napi_hisysevent_adapter.h | 51 HiSysEventInfo eventInfo; member 63 static void InnerWrite(InnerWriter::EventBase& eventBase, const HiSysEventInfo& eventInfo); 64 static int Write(const HiSysEventInfo& eventInfo);
|
/base/theme/screenlock_mgr/frameworks/js/napi/include/ |
D | napi_screenlock_ability.h | 35 std::string eventInfo; member 40 … : Context(nullptr, nullptr), param(0), eventInfo(""), flag(false), status(napi_generic_failure), in SendEventInfo() 43 : Context(std::move(input), std::move(output)), param(0), eventInfo(""), flag(false), in SendEventInfo()
|
/base/update/updateservice/frameworks/js/napi/base/include/ |
D | session_manager.h | 39 void PublishToJS(const EventClassifyInfo &eventClassifyInfo, const EventInfo &eventInfo); 42 void Emit(const EventClassifyInfo &eventClassifyInfo, const EventInfo &eventInfo);
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/ |
D | js_text_input_client_engine.cpp | 98 EditorEventInfo eventInfo = { std::chrono::system_clock::now(), EditorEvent::MOVE_CURSOR}; in MoveCursorSync() local 99 editorQueue_.Push(eventInfo); in MoveCursorSync() 100 editorQueue_.Wait(eventInfo); in MoveCursorSync() 249 EditorEventInfo eventInfo = { std::chrono::system_clock::now(), EditorEvent::DELETE_FORWARD }; in DeleteForwardSync() local 250 editorQueue_.Push(eventInfo); in DeleteForwardSync() 251 editorQueue_.Wait(eventInfo); in DeleteForwardSync() 308 EditorEventInfo eventInfo = { std::chrono::system_clock::now(), EditorEvent::DELETE_BACKWARD }; in DeleteBackwardSync() local 309 editorQueue_.Push(eventInfo); in DeleteBackwardSync() 310 editorQueue_.Wait(eventInfo); in DeleteBackwardSync() 401 EditorEventInfo eventInfo = { std::chrono::system_clock::now(), EditorEvent::INSERT_TEXT}; in InsertTextSync() local [all …]
|
/base/update/updateservice/services/engine/src/ |
D | update_notify.cpp | 112 void UpdateNotify::NotifyToAppService(const std::string &eventInfo, const std::string &subscribeInf… in NotifyToAppService() argument 114 if (eventInfo.empty()) { in NotifyToAppService() 120 Want want = MakeWant("", abilityName, bundleName, subscribeInfo, eventInfo); in NotifyToAppService()
|
/base/account/os_account/services/accountmgr/src/ |
D | account_info_report.cpp | 59 std::shared_ptr<EventInfo> eventInfo = std::make_shared<EventInfo>(eventId, "1.0", content); in ReportSecurityInfo() local 60 NativeDataCollectKit::ReportSecurityInfo(eventInfo); in ReportSecurityInfo()
|
/base/update/updateservice/frameworks/js/napi/base/src/ |
D | session_manager.cpp | 209 …SessionManager::PublishToJS(const EventClassifyInfo &eventClassifyInfo, const EventInfo &eventInfo) in PublishToJS() argument 234 listener->NotifyJS(env_, thisVar, eventInfo); in PublishToJS() 266 void SessionManager::Emit(const EventClassifyInfo &eventClassifyInfo, const EventInfo &eventInfo) in Emit() argument 274 UvWorkData *data = new (std::nothrow) std::tuple(this, eventClassifyInfo, eventInfo); in Emit() 287 auto &[mgr, eventClassifyInfo, eventInfo] = *data; in Emit() 288 mgr->PublishToJS(eventClassifyInfo, eventInfo); in Emit()
|