| /base/notification/eventhandler/interfaces/inner_api/ |
| D | event_handler.h | 79 * Get event handler that running on current thread. 86 * Send an event. 88 * @param event Event which should be handled. 89 * @param delayTime Process the event after 'delayTime' milliseconds. 90 * @param priority Priority of the event queue for this event. 91 …* @return Returns true if event has been sent successfully. If returns false, event should be rele… 93 …bool SendEvent(InnerEvent::Pointer &event, int64_t delayTime = 0, Priority priority = Priority::LO… 96 * Send an event. 98 * @param event Event which should be handled. 99 * @param taskTime Process the event at taskTime. [all …]
|
| D | inner_event.h | 62 * @param innerEventId The id of the event. 63 * @param param Basic parameter of the event, default is 0. 71 * @param innerEventId The id of the event. 73 * @param param Basic parameter of the event, default is 0. 79 auto event = Get(innerEventId, param); variable 80 event->SaveSharedPtr(object); 81 return event; 87 * @param innerEventId The id of the event. 89 * @param param Basic parameter of the event, default is 0. 95 auto event = Get(innerEventId, param); variable [all …]
|
| /base/notification/common_event_service/frameworks/native/src/ |
| D | common_event_support.cpp | 22 …* Indicates the action of a common event that the user has finished booting and the system has bee… 23 …* To subscribe to this common event, your application must have the ohos.permission.RECEIVER_START… 25 * This common event can only be published by the system. 27 const std::string CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED = "usual.event.BOOT_COMPLETED"; 30 …* Indicates the action of a common event that the user has finished booting and the system has bee… 32 …* To subscribe to this common event, your application must have the ohos.permission.RECEIVER_START… 34 * This common event can only be published by the system. 36 const std::string CommonEventSupport::COMMON_EVENT_LOCKED_BOOT_COMPLETED = "usual.event.LOCKED_BOOT… 39 …* Indicates the action of a common event that the device is being shut down and the final shutdown… 41 * This common event can only be published by the system. [all …]
|
| /base/notification/common_event_service/interfaces/inner_api/ |
| D | common_event_support.h | 27 …* Indicates the action of a common event that the user has finished booting and the system has bee… 28 …* To subscribe to this common event, your application must have the ohos.permission.RECEIVER_START… 30 * This common event can only be published by the system. 34 …* Indicates the action of a common event that the user has finished booting and the system has bee… 36 …* To subscribe to this common event, your application must have the ohos.permission.RECEIVER_START… 38 * This common event can only be published by the system. 42 …* Indicates the action of a common event that the device is being shut down and the final shutdown… 44 * This common event can only be published by the system. 48 …* Indicates the action of a common event that the charging state, level, and other information abo… 50 * This common event can only be published by the system. [all …]
|
| D | async_common_event_result.h | 28 * @param resultCode Indicates the result code of the current ordered common event. 29 * @param resultData Indicates the result data of the current ordered common event. 30 * @param ordered Indicates the type of the current ordered common event is ordered or not. 31 * @param sticky Indicates the type of the current sticky common event is sticky or not. 32 * @param token Indicates the remote object of the current ordered common event. 40 * Sets the result code of the current ordered common event. 42 * @param code Indicates the result code of the current ordered common event 48 * Obtains the result code of the current ordered common event. 50 * @return Returns the result code of the current ordered common event 55 * Sets the result data of the current ordered common event. [all …]
|
| D | common_event_manager.h | 28 * Publishes a standard common event. 30 * @param data Indicates the common event data. 36 * Publishes a standard common event. 38 * @param data Indicates the common event data. 45 * Publishes a common event. 47 * @param data Indicates the common event data. 54 * Publishes a common event. 56 * @param data Indicates the common event data. 63 * Publishes a common event. 65 * @param data Indicates the common event data. [all …]
|
| D | common_event_subscriber.h | 40 * Calls back when the application receives a new common event. 42 * @param data Indicates the common event data. 47 * Gets common event subscriber info 49 * @return Returns common event subscriber info 54 * Sets the result code of the current ordered common event. 56 * @param code Indicates the result code of the current ordered common event 62 * Obtains the result code of the current ordered common event. 64 * @return Returns the result code of the current ordered common event. 69 * Sets the result data of the current ordered common event. 71 * @param data Indicates the result data of the current ordered common event. [all …]
|
| /base/notification/eventhandler/frameworks/eventhandler/test/unittest/ |
| D | lib_event_handler_event_test.cpp | 41 auto event = InnerEvent::Get(f, taskName); in TestTaskInfo() local 42 auto getName = event->GetTaskName(); in TestTaskInfo() 45 (event->GetTaskCallback())(); in TestTaskInfo() 46 // drop event, execute destructor function in TestTaskInfo() 51 * Deleter of event shared pointer. 84 * @tc.desc: get event from pool, set id and param 90 * @tc.steps: step1. get event with event id and param, then get event id and param from event. 91 * @tc.expected: step1. the event id and param is the same as we set. 95 auto event = InnerEvent::Get(eventId, eventParam); variable 96 auto id = event->GetInnerEventId(); [all …]
|
| D | lib_event_handler_event_queue_test.cpp | 95 * get event from queue and compare. 97 * @param eventId of the event we want to get. 98 * @param queue we get event from this queue. 102 auto event = queue.GetEvent(); in GetEventAndCompare() local 103 EXPECT_NE(nullptr, event); in GetEventAndCompare() 104 if (event != nullptr) { in GetEventAndCompare() 105 auto id = event->GetInnerEventId(); in GetEventAndCompare() 111 * set event handler time delay. 113 * @param delayTime of the event handle time. 127 auto event = InnerEvent::Get(eventId); in DelayTest() local [all …]
|
| /base/telephony/cellular_call/services/manager/include/ |
| D | cellular_call_handler.h | 52 * @param CellularCallRadioResponseEvent, Process Radio Response Event . 54 void ProcessEvent(const AppExecFwk::InnerEvent::Pointer &event) override; 57 * Receive Operator Config Change event and process. 78 void SimStateChangeReport(const AppExecFwk::InnerEvent::Pointer &event); 80 void SimRecordsLoadedReport(const AppExecFwk::InnerEvent::Pointer &event); 82 void DialResponse(const AppExecFwk::InnerEvent::Pointer &event); 84 …void CommonResultEventHandling(const AppExecFwk::InnerEvent::Pointer &event, CellularCallEventInfo… 86 void CommonResultResponse(const AppExecFwk::InnerEvent::Pointer &event); 88 void SendDtmfResponse(const AppExecFwk::InnerEvent::Pointer &event); 90 void StartDtmfResponse(const AppExecFwk::InnerEvent::Pointer &event); [all …]
|
| /base/telephony/cellular_call/test/fuzztest/getcscalldata_fuzzer/ |
| D | getcscalldata_fuzzer.cpp | 44 …d GetCsCallData(std::shared_ptr<CellularCallHandler> handle, AppExecFwk::InnerEvent::Pointer event, in GetCsCallData() argument 59 handle->GetCsCallData(event); in GetCsCallData() 60 handle->GetImsCallData(event); in GetCsCallData() 62 handle->GetCsCallsDataResponse(event); in GetCsCallData() 63 handle->GetImsCallsDataResponse(event); in GetCsCallData() 64 handle->DialResponse(event); in GetCsCallData() 65 handle->SendDtmfResponse(event); in GetCsCallData() 66 handle->StartDtmfResponse(event); in GetCsCallData() 67 handle->SimStateChangeReport(event); in GetCsCallData() 68 handle->SimRecordsLoadedReport(event); in GetCsCallData() [all …]
|
| /base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/ |
| D | event_logger_plugin_test.cpp | 71 std::shared_ptr<Event> event = nullptr; variable 72 ASSERT_EQ(eventLogger.IsInterestedPipelineEvent(event), false); 86 std::shared_ptr<Event> event = std::make_shared<Event>("Eventlogger002"); variable 87 event->eventId_ = eventMaxId; 88 ASSERT_EQ(eventLogger.IsInterestedPipelineEvent(event), false); 101 std::shared_ptr<Event> event = std::make_shared<Event>("Eventlogger003"); variable 102 event->eventId_ = 0; 103 event->domain_ = "FRAMEWORK"; 104 event->eventName_ = "SERVICE_BLOCK2"; 105 ASSERT_EQ(eventLogger.IsInterestedPipelineEvent(event), false); [all …]
|
| /base/notification/eventhandler/test/systemtest/ems_inner_event_system_test/ |
| D | ems_inner_event_system_test.cpp | 44 auto event = InnerEvent::Get(f, taskName); in TestTaskInfo1() local 45 auto getName = event->GetTaskName(); in TestTaskInfo1() 48 (event->GetTaskCallback())(); in TestTaskInfo1() 49 // drop event, execute destructor function in TestTaskInfo1() 58 auto event = InnerEvent::Get(f, taskName); in TestTaskInfo2() local 59 auto getName = event->GetTaskName(); in TestTaskInfo2() 62 (event->GetTaskCallback())(); in TestTaskInfo2() 63 // drop event, execute destructor function in TestTaskInfo2() 72 auto event = InnerEvent::Get(f, taskName); in TestTaskInfo3() local 73 auto getName = event->GetTaskName(); in TestTaskInfo3() [all …]
|
| /base/notification/common_event_service/ |
| D | README_zh.md | 5 OpenHarmony通过CES(Common Event Service,公共事件服务)为应用程序提供订阅、发布、退订公共事件的能力。 63 #### CommonEvent.publish(event: string, callback: AsyncCallback<void>) 73 | event | 只读 | string | 是 | 表示要发布的公共事件的名称 | 92 #### CommonEvent.publish(event: string, options: CommonEventPublishData, callback: AsyncCallback<vo… 102 | event | 只读 | string | 是 | 表示要发布的公共事件的名称 | 197 events: ["event"] 240 events: ["event"] 267 | event | 只读 | string | 是 | 表示当前接收的公共事件名称 | 286 events: ["event"] 312 events: ["event"] [all …]
|
| /base/hiviewdfx/hiview/test/plugins/examples/event_processor_example4/ |
| D | event_processor_example4.cpp | 18 #include "event.h" 39 bool EventProcessorExample4::CanProcessEvent(std::shared_ptr<Event> event) in CanProcessEvent() argument 41 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent() 42 event->eventId_ == EventSourceExample::PIPELINE_EVENT_ID_BBB) { in CanProcessEvent() 46 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent() 47 event->eventName_ == "testbb") { in CanProcessEvent() 54 bool EventProcessorExample4::OnEvent(std::shared_ptr<Event>& event) in OnEvent() argument 57 … printf("EventProcessorExample4 OnEvent 0 tid:%d sender:%s.\n", gettid(), event->sender_.c_str()); in OnEvent() 58 if (event->eventId_ == EventSourceExample::PIPELINE_EVENT_ID_BBB) { in OnEvent() 59 printf("EventProcessorExample4 process bbb event.\n"); in OnEvent() [all …]
|
| /base/telephony/core_service/services/sim/include/ |
| D | sim_file.h | 35 void ProcessEvent(const AppExecFwk::InnerEvent::Pointer &event); 37 bool ProcessIccReady(const AppExecFwk::InnerEvent::Pointer &event); 52 bool ProcessIccLocked(const AppExecFwk::InnerEvent::Pointer &event); 70 using FileProcessFunc = bool (SimFile::*)(const AppExecFwk::InnerEvent::Pointer &event); 73 void ObtainSpnPhase(bool start, const AppExecFwk::InnerEvent::Pointer &event); 80 void ProcessSpnGeneral(const AppExecFwk::InnerEvent::Pointer &event); 81 void ProcessSpnCphs(const AppExecFwk::InnerEvent::Pointer &event); 82 void ProcessSpnShortCphs(const AppExecFwk::InnerEvent::Pointer &event); 83 bool ProcessGetAdDone(const AppExecFwk::InnerEvent::Pointer &event); 84 bool ProcessVoiceMailCphs(const AppExecFwk::InnerEvent::Pointer &event); [all …]
|
| /base/security/device_security_level/services/dslm/ |
| D | dslm_hievent.c | 44 SecurityInfoSyncEvent event; in ReportHiEventInfoSync() local 45 (void)memset_s(&event, sizeof(SecurityInfoSyncEvent), 0, sizeof(SecurityInfoSyncEvent)); in ReportHiEventInfoSync() 48 event.costTime = (int32_t)(info->lastResponseTime - info->lastRequestTime); in ReportHiEventInfoSync() 51 event.retCode = (int32_t)info->result; in ReportHiEventInfoSync() 52 event.secLevel = (int32_t)info->credInfo.credLevel; in ReportHiEventInfoSync() 53 event.localVersion = GetCurrentVersion(); in ReportHiEventInfoSync() 54 event.targetVersion = info->version; in ReportHiEventInfoSync() 55 …if (memcpy_s(event.targetModel, MODEL_MAX_LEN, info->credInfo.model, CRED_INFO_MODEL_LEN) != EOK) { in ReportHiEventInfoSync() 56 (void)memset_s(event.targetModel, MODEL_MAX_LEN, 0, MODEL_MAX_LEN); in ReportHiEventInfoSync() 59 event.credType = info->credInfo.credType; in ReportHiEventInfoSync() [all …]
|
| /base/hiviewdfx/hiview/test/plugins/examples/event_processor_example1/ |
| D | event_processor_example1.cpp | 37 bool EventProcessorExample1::CanProcessEvent(std::shared_ptr<Event> event) in CanProcessEvent() argument 40 if (event == nullptr) { in CanProcessEvent() 44 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent() 45 event->eventId_ == EventSourceExample::PIPELINE_EVENT_ID_AAA) { in CanProcessEvent() 49 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent() 50 event->eventName_ == "testbb") { in CanProcessEvent() 54 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent() 55 event->eventName_ == "testcc") { in CanProcessEvent() 63 bool EventProcessorExample1::OnEvent(std::shared_ptr<Event>& event) in OnEvent() argument 67 … GetHiviewContext()->SetHiviewProperty("EPE1_OnEvent", "received : " + event->eventName_, true); in OnEvent() [all …]
|
| /base/notification/eventhandler/frameworks/eventhandler/src/ |
| D | event_handler.cpp | 54 bool EventHandler::SendEvent(InnerEvent::Pointer &event, int64_t delayTime, Priority priority) in SendEvent() argument 56 if (!event) { in SendEvent() 57 HILOGE("SendEvent: Could not send an invalid event"); in SendEvent() 62 HILOGE("SendEvent: MUST Set event runner before sending events"); in SendEvent() 67 event->SetSendTime(now); in SendEvent() 70 event->SetHandleTime(now + std::chrono::milliseconds(delayTime)); in SendEvent() 72 event->SetHandleTime(now); in SendEvent() 75 event->SetOwner(shared_from_this()); in SendEvent() 76 // get traceId from event, if HiTraceChain::begin has been called, would get a valid trace id. in SendEvent() 77 auto traceId = event->GetOrCreateTraceId(); in SendEvent() [all …]
|
| /base/account/os_account/services/accountmgr/src/ |
| D | account_state_machine.cpp | 32 // normal event, transform to login state in OnInitialize() 34 // normal event, keep in unbound state in OnInitialize() 36 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 38 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 40 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 42 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 44 // unexpected event, re-initial state machine, check the state from account server in OnInitialize() 46 // unexpected event, keep in unbound state in OnInitialize() 48 // unexpected event, keep in unbound state in OnInitialize() 53 // expected event, keep in login state in OnInitialize() [all …]
|
| /base/hiviewdfx/hiview/base/test/unittest/common/ |
| D | pipeline_test.cpp | 74 * @tc.steps: step2. create pipeline event in DoTest() 77 auto event = std::make_shared<PipelineEvent>(name, producer.get()); in DoTest() local 78 event->messageType_ = Event::MessageType::FAULT_EVENT; in DoTest() 79 event->eventId_ = EventSourceExample::PIPELINE_EVENT_ID_AAA; in DoTest() 81 event->SetValue("Finish", "EventProcessorExample2"); in DoTest() 85 * @tc.steps: step3. process pipeline event in DoTest() 87 if (pipeline->CanProcessEvent(event)) { in DoTest() 88 pipeline->ProcessEvent(event); in DoTest() 95 * @tc.steps: step4. check whether event has been processed in DoTest() 97 ASSERT_EQ(event->GetValue("EventProcessorExample1"), "Done"); in DoTest() [all …]
|
| /base/telephony/cellular_call/services/manager/src/ |
| D | cellular_call_handler.cpp | 128 void CellularCallHandler::ProcessEvent(const AppExecFwk::InnerEvent::Pointer &event) in ProcessEvent() argument 130 if (event == nullptr) { in ProcessEvent() 131 TELEPHONY_LOGE("CellularCallHandler::ProcessEvent, event is nullptr"); in ProcessEvent() 135 uint32_t eventId = event->GetInnerEventId(); in ProcessEvent() 138 auto itFunc = requestFuncMap_.find(event->GetInnerEventId()); in ProcessEvent() 142 return (this->*requestFunc)(event); in ProcessEvent() 162 void CellularCallHandler::GetCsCallData(const AppExecFwk::InnerEvent::Pointer &event) in GetCsCallData() argument 164 if (event == nullptr) { in GetCsCallData() 165 TELEPHONY_LOGE("GetCsCallData return, event is nullptr"); in GetCsCallData() 168 TELEPHONY_LOGI("GetCsCallData event id: %{public}d", event->GetInnerEventId()); in GetCsCallData() [all …]
|
| /base/hiviewdfx/hiview/base/event_report/ |
| D | hiview_event_report.cpp | 33 auto event = factory->Create(); in ReportPluginLoad() local 34 event->Update(PluginEventSpace::KEY_OF_PLUGIN_NAME, name); in ReportPluginLoad() 35 event->Update(PluginEventSpace::KEY_OF_RESULT, result); in ReportPluginLoad() 36 event->Report(); in ReportPluginLoad() 37 HiLog::Info(LABEL, "report plugin load event=%{public}s", event->ToJsonString().c_str()); in ReportPluginLoad() 43 auto event = factory->Create(); in ReportPluginUnload() local 44 event->Update(PluginEventSpace::KEY_OF_PLUGIN_NAME, name); in ReportPluginUnload() 45 event->Update(PluginEventSpace::KEY_OF_RESULT, result); in ReportPluginUnload() 46 event->Report(); in ReportPluginUnload() 47 HiLog::Info(LABEL, "report plugin unload event=%{public}s", event->ToJsonString().c_str()); in ReportPluginUnload() [all …]
|
| /base/hiviewdfx/hiview/plugins/freeze_detector/test/resource/base/ |
| D | freeze_rules.xml | 18 <event window="0" domain="KERNEL_VENDOR" stringid="LONG_PRESS"> <!-- LONG_PRESS --> 20 </event> 21 <event window="-120" domain="KERNEL_VENDOR" stringid="HUNGTASK"> <!-- HUNGTASK --> 23 </event> 28 <event window="0" domain="KERNEL_VENDOR" stringid="SCREEN_ON"> <!-- SCREEN_ON --> 30 </event> 35 <event window="0" domain="KERNEL_VENDOR" stringid="SCREEN_OFF"> <!-- SCREEN_OFF --> 37 </event> 44 <event window="0" domain="ACE" stringid="UI_BLOCK_6S"> <!-- UI_BLOCK_6S --> 46 </event> [all …]
|
| /base/hiviewdfx/hiview/plugins/eventlogger/config/ |
| D | event_logger_config | 2 event id="" name="UI_BLOCK_6S" action="s,cmd:c,cmd:m" interval="10" 3 event id="" name="UI_BLOCK_3S" action="s,pb:0" interval="10" 4 event id="" name="THREAD_BLOCK_6S" action="s,cmd:c,cmd:m" interval="10" 5 event id="" name="THREAD_BLOCK_3S" action="s,pb:0" interval="10" 6 event id="" name="LIFECYCLE_TIMEOUT" action="s,pb:0,cmd:c,cmd:m" interval="10" 7 event id="" name="APP_LIFECYCLE_TIMEOUT" action="s,pb:0,cmd:c,cmd:m" interval="10" 8 event id="" name="APPLICATION_BLOCK_INPUT" action="s,pb:0,cmd:c,cmd:m" interval="10" 9 event id="" name="SCREEN_ON_TIMEOUT" action="cmd:p" interval="10" 10 event id="" name="NO_FOCUS_WINDOW" action="cmd:w,cmd:a" interval="10" 11 event id="" name="SERVICE_BLOCK" action="s,pb:0,cmd:c,cmd:m" interval="0" [all …]
|