/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/ |
H A D | publishcommoneventasuser_fuzzer.cpp | 32 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()
|
/base/notification/common_event_service/test/fuzztest/commoneventstub_fuzzer/ |
H A D | commoneventstub_fuzzer.cpp | 36 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, commonEventPublishInf in DoSomethingInterestingWithMyAPI() [all...] |
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/ |
H A D | publishcommonevent_fuzzer.cpp | 34 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, subscriber); in DoSomethingInterestingWithMyAPI() 57 commonEventData, commonEventPublishInfo, subscriber, uid, code); in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/ |
H A D | common_event_control_manager_branch_test.cpp | 96 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>();
in HWTEST_F() local 102 commonEventData->SetWant(want);
in HWTEST_F() 103 eventRecord.commonEventData = commonEventData;
in HWTEST_F() 128 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>();
in HWTEST_F() local 129 eventRecord.commonEventData = commonEventData;
in HWTEST_F() 154 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>();
in HWTEST_F() local 155 eventRecord.commonEventData = commonEventData;
in HWTEST_F() 184 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 211 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 232 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 257 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 284 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 308 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 332 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 357 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 382 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 405 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 428 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 453 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 478 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 503 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 597 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 619 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 649 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 674 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 699 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 724 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local [all...] |
/base/notification/common_event_service/frameworks/core/src/ |
H A D | common_event_listener.cpp | 35 void CommonEventListener::NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, const bool &sticky) 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() 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() 128 OnReceiveEvent( const CommonEventData &commonEventData, const bool &ordered, const bool &sticky) OnReceiveEvent() argument
|
H A D | event_receive_proxy.cpp | 31 void EventReceiveProxy::NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, const bool &sticky) in NotifyEvent() argument 50 if (!data.WriteParcelable(&commonEventData)) { in NotifyEvent()
|
/base/notification/common_event_service/test/fuzztest/commoneventmanagerservice_fuzzer/ |
H A D | commoneventmanagerservice_fuzzer.cpp | 41 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()
|
/base/notification/common_event_service/frameworks/native/src/ |
H A D | common_event_data.cpp | 129 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()
|
/base/notification/common_event_service/test/fuzztest/commonevent_fuzzer/ |
H A D | commonevent_fuzzer.cpp | 48 EventFwk::CommonEventData commonEventData(want);
in DoSomethingInterestingWithMyAPI() 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, code);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/services/test/unittest/ |
H A D | common_event_control_manager_test.cpp | 207 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 253 commonEventData->SetWant(want);
in HWTEST_F() 254 eventRecord.commonEventData = commonEventData;
in HWTEST_F() 336 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 358 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 381 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 464 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 486 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 509 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local [all...] |
H A D | common_event_freeze_unit_test.cpp | 173 // make commonEventData in HWTEST_F() 174 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local 179 commonEventRecord.commonEventData = commonEventData; in HWTEST_F() 223 // make commonEventData in HWTEST_F() 224 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local 229 commonEventRecord.commonEventData = commonEventData; in HWTEST_F() 264 // make commonEventData in HWTEST_F() 265 std::shared_ptr<CommonEventData> commonEventData in HWTEST_F() local 308 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 351 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 394 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 505 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local [all...] |
H A D | common_event_publish_ordered_event_unit_test.cpp | 228 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(eventRef); in HWTEST_F() local 233 commonEventRecord.commonEventData = commonEventData; in HWTEST_F() 278 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local 283 commonEventRecord.commonEventData = commonEventData; in HWTEST_F() 335 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); in HWTEST_F() local 340 eventRecord->commonEventData = commonEventData; in HWTEST_F() 384 std::shared_ptr<CommonEventData> commonEventData in HWTEST_F() local 408 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 475 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local 507 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); HWTEST_F() local [all...] |
H A D | common_event_sticky_test.cpp | 352 recordPtr->commonEventData = std::make_shared<CommonEventData>(data); in HWTEST_F() 368 auto action = records.front()->commonEventData->GetWant().GetAction(); in HWTEST_F() 399 eventRecord.commonEventData = dataPtr; in HWTEST_F() 410 auto action = recordPtr->commonEventData->GetWant().GetAction(); in HWTEST_F() 434 recordPtr->commonEventData = std::make_shared<CommonEventData>(data); in HWTEST_F() 436 EXPECT_EQ(recordPtr->commonEventData->GetData(), ""); in HWTEST_F() 461 eventRecord.commonEventData = newDataPtr; in HWTEST_F() 472 auto action = recordPtr->commonEventData->GetWant().GetAction(); in HWTEST_F() 476 auto updatedData = recordPtr->commonEventData->GetData(); in HWTEST_F() 550 recordPtr->commonEventData in HWTEST_F() [all...] |
/base/notification/common_event_service/services/src/ |
H A D | common_event_sticky_manager.cpp | 67 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()) + "\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() 159 std::string deviced = "\t\tDevicedID: " + record->commonEventData in DumpState() [all...] |
H A D | common_event_control_manager.cpp | 172 if (eventRecord.commonEventData == nullptr) { in NotifyFreezeEvents() 173 EVENT_LOGE("commonEventData == nullptr"); in NotifyFreezeEvents() 178 eventRecord.commonEventData->GetWant().GetAction().c_str(), in NotifyFreezeEvents() 182 commonEventListenerProxy->NotifyEvent(*(eventRecord.commonEventData), in NotifyFreezeEvents() 185 eventRecord.commonEventData->GetWant().GetAction()); in NotifyFreezeEvents() 221 eventRecord->commonEventData->GetWant().GetAction().c_str(), vec->eventRecordInfo.subId.c_str()); in NotifyUnorderedEventLocked() 237 *(eventRecord->commonEventData), false, eventRecord->publishInfo->IsSticky()); in NotifyUnorderedEventLocked() 241 eventRecord->commonEventData->GetWant().GetAction()); in NotifyUnorderedEventLocked() 245 eventRecord->commonEventData->GetWant().GetAction().c_str(), vec->eventRecordInfo.subId.c_str()); in NotifyUnorderedEventLocked() 250 "failCnt = %{public}d, freezeCnt = %{public}d", eventRecord->commonEventData in NotifyUnorderedEventLocked() [all...] |
/base/notification/common_event_service/frameworks/extension/src/ |
H A D | static_subscriber_stub_impl.cpp | 26 std::shared_ptr<CommonEventData> commonEventData(data); in OnReceiveEvent() 28 extension->OnReceiveEvent(commonEventData); in OnReceiveEvent()
|
H A D | js_static_subscriber_extension.cpp | 228 napi_value commonEventData = nullptr; in OnReceiveEvent() 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()
|
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
H A D | common_event_services_system_test.cpp | 689 CommonEventData commonEventData(wantTest); in HWTEST_F() 727 CommonEventData commonEventData(wantTest); in HWTEST_F() 737 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true); in HWTEST_F() 765 CommonEventData commonEventData(wantTest); in HWTEST_F() 775 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true); in HWTEST_F() 805 CommonEventData commonEventData(wantTest); in HWTEST_F() 815 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true); in HWTEST_F() 842 CommonEventData commonEventData(wantTest); in HWTEST_F() 855 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData, publishInfo), true); in HWTEST_F() 883 CommonEventData commonEventData(wantTes in HWTEST_F() [all...] |
/base/notification/common_event_service/test/fuzztest/getstickycommonevent_fuzzer/ |
H A D | getstickycommonevent_fuzzer.cpp | 24 EventFwk::CommonEventData commonEventData; in DoSomethingInterestingWithMyAPI() local 26 return EventFwk::CommonEventManager::GetStickyCommonEvent(event, commonEventData); in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/services/include/ |
H A D | common_event_record.h | 40 std::shared_ptr<CommonEventData> commonEventData; member 48 : commonEventData(nullptr), in CommonEventRecord()
|
H A D | ordered_event_record.h | 64 commonEventData = commonEventRecord.commonEventData; in FillCommonEventRecord()
|
/base/notification/common_event_service/test/fuzztest/eventreceiveproxy_fuzzer/ |
H A D | eventreceiveproxy_fuzzer.cpp | 29 EventFwk::CommonEventData commonEventData;
in DoSomethingInterestingWithMyAPI() local 33 result->NotifyEvent(commonEventData, enabled, enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/tools/cem/src/ |
H A D | common_event_command.cpp | 78 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()
|
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/ |
H A D | actsCESManagertest.cpp | 1018 CommonEventData commonEventData(wantTest); in HWTEST_F() 1022 if (!CommonEventManager::PublishCommonEvent(commonEventData)) { in HWTEST_F() 1056 CommonEventData commonEventData(wantTest); in HWTEST_F() 1060 if (!CommonEventManager::PublishCommonEvent(commonEventData)) { in HWTEST_F() 1093 CommonEventData commonEventData(wantTest); in HWTEST_F() 1097 if (!CommonEventManager::PublishCommonEvent(commonEventData)) { in HWTEST_F() 1132 CommonEventData commonEventData(wantTest); in HWTEST_F() 1136 if (!CommonEventManager::PublishCommonEvent(commonEventData)) { in HWTEST_F() 1169 CommonEventData commonEventData(wantTest); in HWTEST_F() 1175 if (!CommonEventManager::PublishCommonEvent(commonEventData, publishInf in HWTEST_F() [all...] |
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/ |
H A D | common_event_services_module_test.cpp | 443 CommonEventData commonEventData(testWant); in HWTEST_F() 451 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK); in HWTEST_F() 472 CommonEventData commonEventData(testWant); in HWTEST_F() 480 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK); in HWTEST_F() 579 CommonEventData commonEventData(testWant); in HWTEST_F() 588 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK); in HWTEST_F() 624 CommonEventData commonEventData(testWant); in HWTEST_F() 631 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER), ERR_OK); in HWTEST_F() 668 CommonEventData commonEventData(testWant); in HWTEST_F() 679 commonEventData, publishInf in HWTEST_F() [all...] |