Home
last modified time | relevance | path

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

12

/base/notification/common_event_service/test/fuzztest/commoneventmanagerservice_fuzzer/
Dcommoneventmanagerservice_fuzzer.cpp36 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
37 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
38 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
39 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
40 commonEventData.GetWant(); in DoSomethingInterestingWithMyAPI()
41 commonEventData.GetCode(); in DoSomethingInterestingWithMyAPI()
42 commonEventData.GetData(); in DoSomethingInterestingWithMyAPI()
44 commonEventData.Marshalling(p); in DoSomethingInterestingWithMyAPI()
45 commonEventData.Unmarshalling(p); in DoSomethingInterestingWithMyAPI()
51 …commonEventManagerService.PublishCommonEvent(commonEventData, commonEventPublishInfo, commonEventL… in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/common_event_service/test/fuzztest/commoneventstub_fuzzer/
Dcommoneventstub_fuzzer.cpp37 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
39 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
40 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
41 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
42 commonEventData.GetWant(); in DoSomethingInterestingWithMyAPI()
43 commonEventData.GetCode(); in DoSomethingInterestingWithMyAPI()
44 commonEventData.GetData(); in DoSomethingInterestingWithMyAPI()
46 commonEventData.Marshalling(p); in DoSomethingInterestingWithMyAPI()
47 commonEventData.Unmarshalling(p); in DoSomethingInterestingWithMyAPI()
54 …commonEventStub.PublishCommonEvent(commonEventData, commonEventPublishInfo, commonEventListener, c… in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/
Dpublishcommonevent_fuzzer.cpp29 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
30 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
32 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
34 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
44 EventFwk::CommonEventManager::PublishCommonEvent(commonEventData, commonEventPublishInfo); in DoSomethingInterestingWithMyAPI()
48 commonEventData, commonEventPublishInfo, subscriber); in DoSomethingInterestingWithMyAPI()
52 commonEventData, commonEventPublishInfo, subscriber, uid, code); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/
Dpublishcommoneventasuser_fuzzer.cpp30 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
31 commonEventData.SetWant(want); in DoSomethingInterestingWithMyAPI()
33 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
35 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
47 EventFwk::CommonEventManager::PublishCommonEventAsUser(commonEventData, userId); in DoSomethingInterestingWithMyAPI()
51 commonEventData, commonEventPublishInfo, subscriber, userId); in DoSomethingInterestingWithMyAPI()
55 commonEventData, commonEventPublishInfo, subscriber, uid, code, userId); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/
Dcommon_event_control_manager_branch_test.cpp91 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
92 eventRecord.commonEventData = commonEventData; in HWTEST_F()
113 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
114 eventRecord.commonEventData = commonEventData; in HWTEST_F()
135 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
136 eventRecord.commonEventData = commonEventData; in HWTEST_F()
159 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
160 eventRecord.commonEventData = commonEventData; in HWTEST_F()
184 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
185 eventRecord.commonEventData = commonEventData; in HWTEST_F()
[all …]
/base/notification/common_event_service/frameworks/native/src/
Dcommon_event_data.cpp128 CommonEventData *commonEventData = new (std::nothrow) CommonEventData(); in Unmarshalling() local
130 if (commonEventData == nullptr) { in Unmarshalling()
135 if (!commonEventData->ReadFromParcel(parcel)) { in Unmarshalling()
137 delete commonEventData; in Unmarshalling()
138 commonEventData = nullptr; in Unmarshalling()
141 return commonEventData; in Unmarshalling()
/base/notification/common_event_service/frameworks/core/src/
Dcommon_event_listener.cpp33 void CommonEventListener::NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, … in NotifyEvent() argument
45 std::function<void()> onReceiveEventFunc = [wp, commonEventData, ordered, sticky] () { in NotifyEvent()
51 sThis->OnReceiveEvent(commonEventData, ordered, sticky); in NotifyEvent()
118 const CommonEventData &commonEventData, const bool &ordered, const bool &sticky) in OnReceiveEvent() argument
121 EVENT_LOGD("enter %{public}s", commonEventData.GetWant().GetAction().c_str()); in OnReceiveEvent()
125 int32_t code = commonEventData.GetCode(); in OnReceiveEvent()
126 std::string data = commonEventData.GetData(); in OnReceiveEvent()
141 commonEventSubscriber_->OnReceiveEvent(commonEventData); in OnReceiveEvent()
Devent_receive_proxy.cpp31 void EventReceiveProxy::NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, co… in NotifyEvent() argument
50 if (!data.WriteParcelable(&commonEventData)) { in NotifyEvent()
/base/notification/common_event_service/services/test/unittest/
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()
228 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
229 eventRecord.commonEventData = commonEventData; in HWTEST_F()
250 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
251 eventRecord.commonEventData = commonEventData; in HWTEST_F()
333 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
334 record->commonEventData = commonEventData; in HWTEST_F()
355 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local
356 record->commonEventData = commonEventData; in HWTEST_F()
[all …]
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;
351 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
356 eventRecord->commonEventData = commonEventData;
[all …]
Dcommon_event_publish_ordered_event_unit_test.cpp228 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(eventRef); variable
233 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;
[all …]
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);
/base/notification/common_event_service/services/src/
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()
154 …std::string flags = "\t\tFlags: " + std::to_string(record->commonEventData->GetWant().GetFlags()) … 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()
159 …std::string deviced = "\t\tDevicedID: " + record->commonEventData->GetWant().GetElement().GetDevic… in DumpState()
[all …]
Dcommon_event_control_manager.cpp149 if (eventRecord.commonEventData == nullptr) { in NotifyFreezeEvents()
155 eventRecord.commonEventData->GetWant().GetAction().c_str(), in NotifyFreezeEvents()
159 commonEventListenerProxy->NotifyEvent(*(eventRecord.commonEventData), in NotifyFreezeEvents()
162 eventRecord.commonEventData->GetWant().GetAction()); in NotifyFreezeEvents()
190 eventRecord->commonEventData->GetWant().GetAction().c_str(), eventRecord->receivers.size()); in NotifyUnorderedEvent()
213 *(eventRecord->commonEventData), false, eventRecord->publishInfo->IsSticky()); in NotifyUnorderedEvent()
216 eventRecord->commonEventData->GetWant().GetAction()); in NotifyUnorderedEvent()
387 record.want = eventRecordPtr->commonEventData->GetWant(); in EnqueueHistoryEventRecord()
388 record.code = eventRecordPtr->commonEventData->GetCode(); in EnqueueHistoryEventRecord()
389 record.data = eventRecordPtr->commonEventData->GetData(); in EnqueueHistoryEventRecord()
[all …]
/base/notification/common_event_service/test/fuzztest/commoneventsubscriber_fuzzer/
Dcommoneventsubscriber_fuzzer.cpp48 EventFwk::CommonEventData commonEventData(want); in DoSomethingInterestingWithMyAPI() local
49 commonEventData.SetCode(code); in DoSomethingInterestingWithMyAPI()
50 commonEventData.SetData(stringData); in DoSomethingInterestingWithMyAPI()
82 commonEvent.PublishCommonEvent(commonEventData, commonEventPublishInfo, subscriber); in DoSomethingInterestingWithMyAPI()
84 commonEvent.PublishCommonEvent(commonEventData, commonEventPublishInfo, subscriber, code, code); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/frameworks/extension/src/
Dstatic_subscriber_stub_impl.cpp26 std::shared_ptr<CommonEventData> commonEventData(data); in OnReceiveEvent() local
28 extension->OnReceiveEvent(commonEventData); in OnReceiveEvent()
Djs_static_subscriber_extension.cpp202 …NativeObject* commonEventData = AbilityRuntime::ConvertNativeValueTo<NativeObject>(jCommonEventDat… in OnReceiveEvent() local
204 commonEventData->SetProperty("event", in OnReceiveEvent()
206 commonEventData->SetProperty("bundleName", in OnReceiveEvent()
208 commonEventData->SetProperty("code", nativeEngine.CreateNumber(data->GetCode())); in OnReceiveEvent()
209 commonEventData->SetProperty("data", in OnReceiveEvent()
214 commonEventData->SetProperty("parameters", nativeParams); in OnReceiveEvent()
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp684 CommonEventData commonEventData(wantTest);
722 CommonEventData commonEventData(wantTest);
732 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
760 CommonEventData commonEventData(wantTest);
770 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
800 CommonEventData commonEventData(wantTest);
810 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
837 CommonEventData commonEventData(wantTest);
850 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData, publishInfo), true);
878 CommonEventData commonEventData(wantTest);
[all …]
/base/notification/common_event_service/test/fuzztest/getstickycommonevent_fuzzer/
Dgetstickycommonevent_fuzzer.cpp24 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
26 return EventFwk::CommonEventManager::GetStickyCommonEvent(event, commonEventData); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/services/include/
Dcommon_event_record.h39 std::shared_ptr<CommonEventData> commonEventData; member
47 : commonEventData(nullptr), in CommonEventRecord()
Dordered_event_record.h64 commonEventData = commonEventRecord.commonEventData; in FillCommonEventRecord()
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
DactsCESManagertest.cpp1018 CommonEventData commonEventData(wantTest);
1022 if (!CommonEventManager::PublishCommonEvent(commonEventData)) {
1056 CommonEventData commonEventData(wantTest);
1060 if (!CommonEventManager::PublishCommonEvent(commonEventData)) {
1093 CommonEventData commonEventData(wantTest);
1097 if (!CommonEventManager::PublishCommonEvent(commonEventData)) {
1132 CommonEventData commonEventData(wantTest);
1136 if (!CommonEventManager::PublishCommonEvent(commonEventData)) {
1169 CommonEventData commonEventData(wantTest);
1175 if (!CommonEventManager::PublishCommonEvent(commonEventData, publishInfo)) {
[all …]
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
Dcommon_event_services_module_test.cpp442 CommonEventData commonEventData(testWant);
450 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK);
471 CommonEventData commonEventData(testWant);
479 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK);
578 CommonEventData commonEventData(testWant);
587 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK);
623 CommonEventData commonEventData(testWant);
630 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK);
667 CommonEventData commonEventData(testWant);
678 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER))) {
[all …]
/base/notification/common_event_service/tools/cem/src/
Dcommon_event_command.cpp90 CommonEventData commonEventData; in RunAsPublishCommand() local
91 commonEventData.SetWant(want); in RunAsPublishCommand()
92 commonEventData.SetCode(cmdInfo.code); in RunAsPublishCommand()
93 commonEventData.SetData(cmdInfo.data); in RunAsPublishCommand()
98 …int32_t publishResult = commonEventPtr_->PublishCommonEventAsUser(commonEventData, publishInfo, nu… in RunAsPublishCommand()
/base/notification/common_event_service/test/fuzztest/eventreceiveproxy_fuzzer/
Deventreceiveproxy_fuzzer.cpp30 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local
34 result->NotifyEvent(commonEventData, enabled, enabled); in DoSomethingInterestingWithMyAPI()

12