Home
last modified time | relevance | path

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

12

/base/notification/ces_standard/frameworks/core/src/
Dcommon_event_listener.cpp30 void CommonEventListener::NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, … in NotifyEvent() argument
41 std::bind(&CommonEventListener::OnReceiveEvent, this, commonEventData, ordered, sticky); in NotifyEvent()
93 const CommonEventData &commonEventData, const bool &ordered, const bool &sticky) in OnReceiveEvent() argument
95 EVENT_LOGI("enter %{public}s", commonEventData.GetWant().GetAction().c_str()); in OnReceiveEvent()
99 int code = commonEventData.GetCode(); in OnReceiveEvent()
100 std::string data = commonEventData.GetData(); in OnReceiveEvent()
115 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/ces_standard/services/ces/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.cpp116 eventRecord.commonEventData->GetWant().GetAction().c_str(), in NotifyFreezeEvents()
119 …commonEventListenerProxy->NotifyEvent(*(eventRecord.commonEventData), false, eventRecord.publishIn… in NotifyFreezeEvents()
145 eventRecord->commonEventData->GetWant().GetAction().c_str(), eventRecord->receivers.size()); in NotifyUnorderedEvent()
164 *(eventRecord->commonEventData), false, eventRecord->publishInfo->IsSticky()); in NotifyUnorderedEvent()
328 record.want = eventRecordPtr->commonEventData->GetWant(); in EnqueueHistoryEventRecord()
329 record.code = eventRecordPtr->commonEventData->GetCode(); in EnqueueHistoryEventRecord()
330 record.data = eventRecordPtr->commonEventData->GetData(); in EnqueueHistoryEventRecord()
427 eventRecordPtr->commonEventData->GetWant().GetAction().c_str()); in NotifyOrderedEvent()
428 …receiver->NotifyEvent(*(eventRecordPtr->commonEventData), true, eventRecordPtr->publishInfo->IsSti… in NotifyOrderedEvent()
478 receiver->NotifyEvent(*(sp->commonEventData), true, sp->publishInfo->IsSticky()); in ProcessNextOrderedEvent()
[all …]
Dinner_common_event_manager.cpp83 eventRecord.commonEventData = std::make_shared<CommonEventData>(data); in PublishCommonEvent()
109 eventRecord.commonEventData->GetWant().GetAction(), mappedSupport)) { in PublishCommonEvent()
110 Want want = eventRecord.commonEventData->GetWant(); in PublishCommonEvent()
113 mappedEventRecord.commonEventData->SetWant(want); in PublishCommonEvent()
236 int code = sp->commonEventData->GetCode(); in UnsubscribeCommonEvent()
237 std::string data = sp->commonEventData->GetData(); in UnsubscribeCommonEvent()
391 commonEventRecord->commonEventData->GetWant().GetAction().c_str()); in PublishStickyEvent()
/base/notification/ces_standard/frameworks/native/src/
Dcommon_event_data.cpp136 CommonEventData *commonEventData = new CommonEventData(); in Unmarshalling() local
138 if (commonEventData && !commonEventData->ReadFromParcel(parcel)) { in Unmarshalling()
139 delete commonEventData; in Unmarshalling()
140 commonEventData = nullptr; in Unmarshalling()
143 return commonEventData; in Unmarshalling()
Dcommon_event_manager.cpp88 …ommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &commonEventData) in GetStickyCommonEvent() argument
90 … return DelayedSingleton<CommonEvent>::GetInstance()->GetStickyCommonEvent(event, commonEventData); in GetStickyCommonEvent()
/base/notification/ces_standard/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp662 CommonEventData commonEventData(wantTest);
672 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
701 CommonEventData commonEventData(wantTest);
711 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
739 CommonEventData commonEventData(wantTest);
749 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
779 CommonEventData commonEventData(wantTest);
789 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
816 CommonEventData commonEventData(wantTest);
829 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData, publishInfo), true);
[all …]
/base/notification/ces_standard/services/test/unittest/
Dcommon_event_publish_ordered_event_unit_test.cpp329 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(eventRef); variable
334 commonEventRecord.commonEventData = commonEventData;
379 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
384 commonEventRecord.commonEventData = commonEventData;
436 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
441 eventRecord->commonEventData = commonEventData;
485 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
490 eventRecord->commonEventData = commonEventData;
509 std::shared_ptr<CommonEventData> commonEventData = std::make_shared<CommonEventData>(); variable
514 eventRecord->commonEventData = commonEventData;
[all …]
Dcommon_event_sticky_test.cpp347 recordPtr->commonEventData = std::make_shared<CommonEventData>(data);
363 auto action = records.front()->commonEventData->GetWant().GetAction();
394 eventRecord.commonEventData = dataPtr;
405 auto action = recordPtr->commonEventData->GetWant().GetAction();
429 recordPtr->commonEventData = std::make_shared<CommonEventData>(data);
431 EXPECT_EQ(recordPtr->commonEventData->GetData(), "");
456 eventRecord.commonEventData = newDataPtr;
467 auto action = recordPtr->commonEventData->GetWant().GetAction();
471 auto updatedData = recordPtr->commonEventData->GetData();
/base/notification/ces_standard/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/ces_standard/services/ces/include/
Dcommon_event_record.h26 std::shared_ptr<CommonEventData> commonEventData; member
39 : commonEventData(nullptr), in CommonEventRecord()
Dordered_event_record.h64 commonEventData = commonEventRecord.commonEventData; in FillCommonEventRecord()
/base/notification/ces_standard/services/test/moduletest/common_event_services_module_test/
Dcommon_event_services_module_test.cpp476 CommonEventData commonEventData(testWant);
485 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER);
509 CommonEventData commonEventData(testWant);
518 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER);
624 CommonEventData commonEventData(testWant);
632 result = CommonEventManager::PublishCommonEvent(commonEventData, publishInfo);
671 CommonEventData commonEventData(testWant);
679 commonEventData, publishInfo, commonEventListener, UNDEFINED_USER);
718 CommonEventData commonEventData(testWant);
727 (CommonEventManager::PublishCommonEvent(commonEventData, publishInfo))) {
[all …]
/base/accessibility/services/aams/test/mock/
Dcommon_event_data_mock.cpp78 CommonEventData *commonEventData = new CommonEventData(); in Unmarshalling() local
80 return commonEventData; in Unmarshalling()
Dcommon_event_manager_mock.cpp63 …ommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &commonEventData) in GetStickyCommonEvent() argument
/base/accessibility/services/test/mock/
Dcommon_event_data_mock.cpp78 CommonEventData *commonEventData = new CommonEventData(); in Unmarshalling() local
80 return commonEventData; in Unmarshalling()
Dcommon_event_manager_mock.cpp63 …ommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &commonEventData) in GetStickyCommonEvent() argument
/base/notification/ces_standard/tools/cem/src/
Dcommon_event_command.cpp289 CommonEventData commonEventData; in RunAsPublishCommand() local
290 commonEventData.SetWant(want); in RunAsPublishCommand()
293 commonEventData.SetCode(code); in RunAsPublishCommand()
296 commonEventData.SetData(data); in RunAsPublishCommand()
306 commonEventData, publishInfo, subscriber, userId); in RunAsPublishCommand()
/base/notification/ces_standard/frameworks/core/include/
Dievent_receive.h36 …virtual void NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, const bool &…
Devent_receive_proxy.h29 …virtual void NotifyEvent(const CommonEventData &commonEventData, const bool &ordered, const bool &…
Dcommon_event_listener.h45 …void OnReceiveEvent(const CommonEventData &commonEventData, const bool &ordered, const bool &stick…
/base/notification/ces_standard/test/systemtest/common/ces/ces_check_service/
Dces_check_service.cpp116 CommonEventData commonEventData(wantTest);
122 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
/base/notification/ans_standard/frameworks/ans/test/moduletest/mock/
Dmock_common_event_manager.cpp56 …ommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &commonEventData) in GetStickyCommonEvent() argument
/base/notification/ces_standard/tools/test/systemtest/cem/
Dcommon_event_command_publish_system_test.cpp94 void OnReceiveEvent(const CommonEventData &commonEventData) in OnReceiveEvent() argument
101 int code = commonEventData.GetCode(); in OnReceiveEvent()
104 std::string data = commonEventData.GetData(); in OnReceiveEvent()

12