Home
last modified time | relevance | path

Searched refs:commonEventData (Results 1 – 25 of 76) sorted by relevance

1234

/ohos5.0/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/
H A Dcommon_event_control_manager_branch_test.cpp103 eventRecord.commonEventData = commonEventData; in HWTEST_F()
129 eventRecord.commonEventData = commonEventData; in HWTEST_F()
309 rec->commonEventData = commonEventData; in HWTEST_F()
333 rec->commonEventData = commonEventData; in HWTEST_F()
358 rec->commonEventData = commonEventData; in HWTEST_F()
383 rec->commonEventData = commonEventData; in HWTEST_F()
406 rec->commonEventData = commonEventData; in HWTEST_F()
429 rec->commonEventData = commonEventData; in HWTEST_F()
454 rec->commonEventData = commonEventData; in HWTEST_F()
479 rec->commonEventData = commonEventData; in HWTEST_F()
[all …]
/ohos5.0/base/notification/common_event_service/test/fuzztest/commoneventstub_fuzzer/
H A Dcommoneventstub_fuzzer.cpp36 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
38 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
39 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
40 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
41 commonEventData.GetWant(); in DoSomethingInterestingWithMyAPI()
42 commonEventData.GetCode(); in DoSomethingInterestingWithMyAPI()
43 commonEventData.GetData(); in DoSomethingInterestingWithMyAPI()
45 commonEventData.Marshalling(p); in DoSomethingInterestingWithMyAPI()
46 commonEventData.Unmarshalling(p); in DoSomethingInterestingWithMyAPI()
53 …commonEventStub.PublishCommonEvent(commonEventData, commonEventPublishInfo, commonEventListener, c… in DoSomethingInterestingWithMyAPI()
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/test/fuzztest/resschedcommonevent_fuzzer/
H A Dresschedcommonevent_fuzzer.cpp154 commonEventData.SetWant(want); in ResSchedCommonEventSwitchFuzzTest()
159 commonEventData.SetWant(eventWant); in ResSchedCommonEventSwitchFuzzTest()
192 commonEventData.SetWant(want); in ResSchedCommonReceiveEventFuzzTest()
193 commonEventData.SetData(eventData); in ResSchedCommonReceiveEventFuzzTest()
194 commonEventData.SetCode(code); in ResSchedCommonReceiveEventFuzzTest()
229 commonEventData.SetWant(want); in ResSchedPkgCommonEventFuzzTest()
230 commonEventData.SetData(eventData); in ResSchedPkgCommonEventFuzzTest()
231 commonEventData.SetCode(code); in ResSchedPkgCommonEventFuzzTest()
263 commonEventData.SetWant(want); in ResSchedPkgOtherCommonEventFuzzTest()
264 commonEventData.SetData(eventData); in ResSchedPkgOtherCommonEventFuzzTest()
[all …]
/ohos5.0/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/
H A Dpublishcommoneventasuser_fuzzer.cpp32 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
33 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
35 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
37 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
49 EventFwk::CommonEventManager::PublishCommonEventAsUser(commonEventData, userId); in DoSomethingInterestingWithMyAPI()
53 commonEventData, commonEventPublishInfo, subscriber, userId); in DoSomethingInterestingWithMyAPI()
55 commonEventData, commonEventPublishInfo, userId); in DoSomethingInterestingWithMyAPI()
57 commonEventData, commonEventPublishInfo, subscriber, userId); in DoSomethingInterestingWithMyAPI()
61 commonEventData, commonEventPublishInfo, subscriber, uid, code, userId); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/
H A Dpublishcommonevent_fuzzer.cpp34 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
35 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
37 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
39 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
49 EventFwk::CommonEventManager::PublishCommonEvent(commonEventData, commonEventPublishInfo); in DoSomethingInterestingWithMyAPI()
50 EventFwk::CommonEventManager::NewPublishCommonEvent(commonEventData, commonEventPublishInfo); in DoSomethingInterestingWithMyAPI()
53 …EventFwk::CommonEventManager::PublishCommonEvent(commonEventData, commonEventPublishInfo, subscrib… in DoSomethingInterestingWithMyAPI()
57 commonEventData, commonEventPublishInfo, subscriber, uid, code); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/common_event_service/services/test/unittest/
H A Dcommon_event_control_manager_test.cpp207 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
208 eventRecord.commonEventData = commonEventData; in HWTEST_F()
229 eventRecord.commonEventData = commonEventData; in HWTEST_F()
253 commonEventData->SetWant(want); in HWTEST_F()
254 eventRecord.commonEventData = commonEventData; in HWTEST_F()
337 record->commonEventData = commonEventData; in HWTEST_F()
359 record->commonEventData = commonEventData; in HWTEST_F()
382 record->commonEventData = commonEventData; in HWTEST_F()
465 record->commonEventData = commonEventData; in HWTEST_F()
487 record->commonEventData = commonEventData; in HWTEST_F()
[all …]
H A Dcommon_event_freeze_unit_test.cpp174 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
179 commonEventRecord.commonEventData = commonEventData;
224 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
229 commonEventRecord.commonEventData = commonEventData;
265 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
270 eventRecord->commonEventData = commonEventData;
308 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
313 eventRecord->commonEventData = commonEventData;
356 eventRecord->commonEventData = commonEventData;
399 eventRecord->commonEventData = commonEventData;
[all …]
H A Dcommon_event_publish_ordered_event_unit_test.cpp233 commonEventRecord.commonEventData = commonEventData;
278 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
283 commonEventRecord.commonEventData = commonEventData;
335 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
340 eventRecord->commonEventData = commonEventData;
384 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
389 eventRecord->commonEventData = commonEventData;
408 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
413 eventRecord->commonEventData = commonEventData;
480 eventRecord->commonEventData = commonEventData;
[all …]
H A Dcommon_event_sticky_test.cpp352 recordPtr->commonEventData = std::make_shared<CommonEventData>(data);
368 auto action = records.front()->commonEventData->GetWant().GetAction();
399 eventRecord.commonEventData = dataPtr;
410 auto action = recordPtr->commonEventData->GetWant().GetAction();
434 recordPtr->commonEventData = std::make_shared<CommonEventData>(data);
436 EXPECT_EQ(recordPtr->commonEventData->GetData(), "");
461 eventRecord.commonEventData = newDataPtr;
472 auto action = recordPtr->commonEventData->GetWant().GetAction();
476 auto updatedData = recordPtr->commonEventData->GetData();
550 recordPtr->commonEventData = std::make_shared<CommonEventData>(data);
/ohos5.0/base/notification/common_event_service/test/fuzztest/commoneventmanagerservice_fuzzer/
H A Dcommoneventmanagerservice_fuzzer.cpp41 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
42 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
43 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
44 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
47 commonEventData.Marshalling(p); in DoSomethingInterestingWithMyAPI()
48 commonEventData.Unmarshalling(p); in DoSomethingInterestingWithMyAPI()
54 service->PublishCommonEvent(commonEventData, commonEventPublishInfo, commonEventListener, code); in DoSomethingInterestingWithMyAPI()
56 commonEventData, commonEventPublishInfo, commonEventListener, code, code, code); in DoSomethingInterestingWithMyAPI()
63 service->GetStickyCommonEvent(stringData, commonEventData); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/common_event_service/services/src/
H A Dcommon_event_sticky_manager.cpp67 std::string event = commonEventRecordPtr->commonEventData->GetWant().GetAction(); in UpdateStickyEvent()
137 std::string action = "\t\tAction: " + record->commonEventData->GetWant().GetAction() + "\n"; in DumpState()
141 for (auto entitiesVec : record->commonEventData->GetWant().GetEntities()) { in DumpState()
152 std::string scheme = "\t\tScheme: " + record->commonEventData->GetWant().GetScheme() + "\n"; in DumpState()
153 std::string uri = "\t\tUri: " + record->commonEventData->GetWant().GetUriString() + "\n"; in DumpState()
155 std::string type = "\t\tType: " + record->commonEventData->GetWant().GetType() + "\n"; in DumpState()
156 … std::string bundle = "\t\tBundleName: " + record->commonEventData->GetWant().GetBundle() + "\n"; in DumpState()
158 … "\t\tAbilityName: " + record->commonEventData->GetWant().GetElement().GetAbilityName() + "\n"; in DumpState()
162 std::string code = "\tCode: " + std::to_string(record->commonEventData->GetCode()) + "\n"; in DumpState()
163 std::string data = "\tData: " + record->commonEventData->GetData() + "\n"; in DumpState()
[all …]
H A Dcommon_event_control_manager.cpp172 if (eventRecord.commonEventData == nullptr) { in NotifyFreezeEvents()
178 eventRecord.commonEventData->GetWant().GetAction().c_str(), in NotifyFreezeEvents()
185 eventRecord.commonEventData->GetWant().GetAction()); in NotifyFreezeEvents()
439 record.want = eventRecordPtr->commonEventData->GetWant(); in EnqueueHistoryEventRecord()
440 record.code = eventRecordPtr->commonEventData->GetCode(); in EnqueueHistoryEventRecord()
441 record.data = eventRecordPtr->commonEventData->GetData(); in EnqueueHistoryEventRecord()
708 sp->commonEventData->GetWant().GetAction().c_str()); in CurrentOrderedEventTimeout()
715 int32_t code = sp->commonEventData->GetCode(); in CurrentOrderedEventTimeout()
716 const std::string &strRef = sp->commonEventData->GetData(); in CurrentOrderedEventTimeout()
740 recordPtr->commonEventData->SetCode(code); in FinishReceiver()
[all …]
/ohos5.0/base/notification/common_event_service/frameworks/core/src/
H A Dcommon_event_listener.cpp35 void CommonEventListener::NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, … in NotifyEvent() argument
47 std::function<void()> onReceiveEventFunc = [wp, commonEventData, ordered, sticky] () { in NotifyEvent()
53 sThis->OnReceiveEvent(commonEventData, ordered, sticky); in NotifyEvent()
57 … handler_->PostTask(onReceiveEventFunc, "CommonEvent" + commonEventData.GetWant().GetAction()); in NotifyEvent()
129 const CommonEventData &commonEventData, const bool &ordered, const bool &sticky) in OnReceiveEvent() argument
132 EVENT_LOGD("enter %{public}s", commonEventData.GetWant().GetAction().c_str()); in OnReceiveEvent()
134 int32_t code = commonEventData.GetCode(); in OnReceiveEvent()
135 std::string data = commonEventData.GetData(); in OnReceiveEvent()
150 commonEventSubscriber_->OnReceiveEvent(commonEventData); in OnReceiveEvent()
/ohos5.0/base/notification/common_event_service/test/fuzztest/commonevent_fuzzer/
H A Dcommonevent_fuzzer.cpp48 EventFwk::CommonEventData commonEventData(want); in DoSomethingInterestingWithMyAPI() local
49 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
50 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
81 commonEvent.PublishCommonEvent(commonEventData, commonEventPublishInfo, subscriber); in DoSomethingInterestingWithMyAPI()
83 commonEvent.PublishCommonEvent(commonEventData, commonEventPublishInfo, subscriber, code, code); in DoSomethingInterestingWithMyAPI()
84 commonEvent.PublishCommonEventAsUser(commonEventData, commonEventPublishInfo, nullptr, code); in DoSomethingInterestingWithMyAPI()
85 …commonEvent.PublishCommonEventAsUser(commonEventData, commonEventPublishInfo, nullptr, code, code,… in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/common_event_service/frameworks/native/src/
H A Dcommon_event_data.cpp129 CommonEventData *commonEventData = new (std::nothrow) CommonEventData(); in Unmarshalling() local
131 if (commonEventData == nullptr) { in Unmarshalling()
136 if (!commonEventData->ReadFromParcel(parcel)) { in Unmarshalling()
138 delete commonEventData; in Unmarshalling()
139 commonEventData = nullptr; in Unmarshalling()
142 return commonEventData; in Unmarshalling()
/ohos5.0/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
H A Dcommon_event_services_system_test.cpp689 CommonEventData commonEventData(wantTest);
727 CommonEventData commonEventData(wantTest);
765 CommonEventData commonEventData(wantTest);
805 CommonEventData commonEventData(wantTest);
842 CommonEventData commonEventData(wantTest);
883 CommonEventData commonEventData(wantTest);
912 CommonEventData commonEventData(wantTest);
951 CommonEventData commonEventData(wantTest);
978 CommonEventData commonEventData(wantTest);
1990 commonEventData.SetCode(g_CODE_COMPARE1);
[all …]
/ohos5.0/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
H A DactsCESManagertest.cpp1907 CommonEventData commonEventData(wantTest);
1948 CommonEventData commonEventData(wantTest);
1988 CommonEventData commonEventData(wantTest);
2030 CommonEventData commonEventData(wantTest);
2075 CommonEventData commonEventData(wantTest);
2120 CommonEventData commonEventData(wantTest);
2297 CommonEventData commonEventData(wantTest);
2345 CommonEventData commonEventData(wantTest);
2393 CommonEventData commonEventData(wantTest);
2482 commonEventData.SetCode(1);
[all …]
/ohos5.0/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
H A Dcommon_event_services_module_test.cpp443 CommonEventData commonEventData(testWant);
472 CommonEventData commonEventData(testWant);
579 CommonEventData commonEventData(testWant);
624 CommonEventData commonEventData(testWant);
668 CommonEventData commonEventData(testWant);
718 CommonEventData commonEventData(testWant);
767 CommonEventData commonEventData(testWant);
837 CommonEventData commonEventData(testWant);
887 CommonEventData commonEventData(testWant);
938 CommonEventData commonEventData(testWant);
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/publish/
H A Dscb_dump_subscriber.cpp49 EventFwk::CommonEventData commonEventData; in Publish() local
50 commonEventData.SetWant(want); in Publish()
51 commonEventData.SetCode(0); in Publish()
52 commonEventData.SetData(cmd); in Publish()
59 …bool ret = EventFwk::CommonEventManager::PublishCommonEvent(commonEventData, publishInfo, nullptr); in Publish()
/ohos5.0/base/notification/common_event_service/frameworks/extension/src/
H A Djs_static_subscriber_extension.cpp228 napi_value commonEventData = nullptr; in OnReceiveEvent() local
229 napi_create_object(env, &commonEventData); in OnReceiveEvent()
234 napi_set_named_property(env, commonEventData, "event", wantAction); in OnReceiveEvent()
237 napi_set_named_property(env, commonEventData, "bundleName", wantBundle); in OnReceiveEvent()
240 napi_set_named_property(env, commonEventData, "code", dataCode); in OnReceiveEvent()
243 napi_set_named_property(env, commonEventData, "data", dataNapi); in OnReceiveEvent()
246 napi_set_named_property(env, commonEventData, "parameters", napiParams); in OnReceiveEvent()
248 napi_value argv[] = {commonEventData}; in OnReceiveEvent()
H A Dstatic_subscriber_stub_impl.cpp26 std::shared_ptr<CommonEventData> commonEventData(data); in OnReceiveEvent() local
28 extension->OnReceiveEvent(commonEventData); in OnReceiveEvent()
/ohos5.0/base/notification/common_event_service/tools/cem/src/
H A Dcommon_event_command.cpp78 CommonEventData commonEventData; in RunAsPublishCommand() local
79 commonEventData.SetWant(want); in RunAsPublishCommand()
80 commonEventData.SetCode(cmdInfo.code); in RunAsPublishCommand()
81 commonEventData.SetData(cmdInfo.data); in RunAsPublishCommand()
87 commonEventData, publishInfo, nullptr, cmdInfo.userId); in RunAsPublishCommand()
/ohos5.0/base/inputmethod/imf/services/dialog/entry/src/main/ets/ServiceExtAbility/
H A DServiceExtAbility.ts66 …commonEvent.subscribe(subcriber, (error: BusinessError, commonEventData: commonEvent.CommonEventDa…
71 console.log(TAG + 'commonEvent:' + JSON.stringify(commonEventData?.event));
72 … if (commonEventData?.event === PACKAGE_ADDED || commonEventData?.event === PACKAGE_REMOVED) {
/ohos5.0/foundation/resourceschedule/device_standby/services/notification/src/
H A Dstandby_state_subscriber.cpp126 EventFwk::CommonEventData commonEventData; in NotifyIdleModeByCommonEvent() local
127 commonEventData.SetWant(want); in NotifyIdleModeByCommonEvent()
128 if (!EventFwk::CommonEventManager::PublishCommonEvent(commonEventData)) { in NotifyIdleModeByCommonEvent()
191 EventFwk::CommonEventData commonEventData; in NotifyAllowChangedByCommonEvent() local
192 commonEventData.SetWant(want); in NotifyAllowChangedByCommonEvent()
193 if (!EventFwk::CommonEventManager::PublishCommonEvent(commonEventData)) { in NotifyAllowChangedByCommonEvent()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/test/moduletest/
H A Ddistributeddata_account_event_test.cpp85 CommonEventData commonEventData(want); in HarmonyAccountLogin() local
97 CommonEventData commonEventData(want); in HarmonyAccountLogout() local
109 CommonEventData commonEventData(want); in HarmonyAccountDelete() local

1234