Home
last modified time | relevance | path

Searched refs:CommonEventManager (Results 1 – 25 of 117) sorted by relevance

12345

/base/notification/common_event_service/frameworks/native/src/
Dcommon_event_manager.cpp25 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data) in PublishCommonEvent()
31 bool CommonEventManager::PublishCommonEventAsUser(const CommonEventData &data, const int32_t &userI… in PublishCommonEventAsUser()
37 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishIn… in PublishCommonEvent()
42 int32_t CommonEventManager::NewPublishCommonEvent(const CommonEventData &data, in NewPublishCommonEvent()
48 bool CommonEventManager::PublishCommonEventAsUser(const CommonEventData &data, in PublishCommonEventAsUser()
54 int32_t CommonEventManager::NewPublishCommonEventAsUser(const CommonEventData &data, in NewPublishCommonEventAsUser()
60 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishIn… in PublishCommonEvent()
66 bool CommonEventManager::PublishCommonEventAsUser(const CommonEventData &data, in PublishCommonEventAsUser()
73 int32_t CommonEventManager::NewPublishCommonEventAsUser(const CommonEventData &data, in NewPublishCommonEventAsUser()
81 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishIn… in PublishCommonEvent()
[all …]
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp193 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
194 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true);
210 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
211 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true);
227 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
228 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true);
244 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
245 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true);
261 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
262 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true);
[all …]
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_common_event_manager.cpp25 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data) in PublishCommonEvent()
33 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishIn… in PublishCommonEvent()
38 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishIn… in PublishCommonEvent()
44 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
50 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
56 bool CommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &commonEven… in GetStickyCommonEvent()
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
DactsCESManagertest.cpp145 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) {
153 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
175 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) {
183 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
205 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) {
213 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
235 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) {
243 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
265 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) {
273 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
[all …]
/base/location/test/location_locator/mock/src/
Dmock_common_event_manager.cpp20 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data) in PublishCommonEvent()
25 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, in PublishCommonEvent()
31 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, in PublishCommonEvent()
37 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishIn… in PublishCommonEvent()
43 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
48 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
53 bool CommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &data) in GetStickyCommonEvent()
/base/notification/common_event_service/test/systemtest/common/acts/actsCESDataTest/
DactsCESDataTest.cpp739 bool subscribeFirstResult = CommonEventManager::SubscribeCommonEvent(subscriberFirstTest);
750 bool subscribeResultSecond = CommonEventManager::SubscribeCommonEvent(subscriberSecondTest);
761 bool subscribeResultThird = CommonEventManager::SubscribeCommonEvent(subscriberThirdTest);
781 …bool publishResult = CommonEventManager::PublishCommonEvent(data, publishInfo, subscriberPublishTe…
805 bool subscribeFirstResult = CommonEventManager::SubscribeCommonEvent(subscriberFirstTest);
816 bool subscribeResultSecond = CommonEventManager::SubscribeCommonEvent(subscriberSecondTest);
827 bool subscribeResultThird = CommonEventManager::SubscribeCommonEvent(subscriberThirdTest);
847 …bool publishResult = CommonEventManager::PublishCommonEvent(data, publishInfo, subscriberPublishTe…
872 bool subscribeFirstResult = CommonEventManager::SubscribeCommonEvent(subscriberFirstTest);
884 bool subscribeResultSecond = CommonEventManager::SubscribeCommonEvent(subscriberSecondTest);
[all …]
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_event_test.cpp81 CommonEventManager::SubscribeCommonEvent(subscriber);
87 CommonEventManager::UnSubscribeCommonEvent(subscriber);
106 CommonEventManager::SubscribeCommonEvent(subscriber);
112 CommonEventManager::UnSubscribeCommonEvent(subscriber);
131 CommonEventManager::SubscribeCommonEvent(subscriber);
137 CommonEventManager::UnSubscribeCommonEvent(subscriber);
186 CommonEventManager::SubscribeCommonEvent(subscriber);
192 CommonEventManager::UnSubscribeCommonEvent(subscriber);
223 CommonEventManager::SubscribeCommonEvent(subscriber);
228 CommonEventManager::UnSubscribeCommonEvent(subscriber);
[all …]
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_level_event_test.cpp100 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
137 CommonEventManager::UnSubscribeCommonEvent(subscriber);
158 CommonEventManager::UnSubscribeCommonEvent(subscriber);
179 CommonEventManager::UnSubscribeCommonEvent(subscriber);
202 CommonEventManager::UnSubscribeCommonEvent(subscriber);
225 CommonEventManager::UnSubscribeCommonEvent(subscriber);
250 CommonEventManager::UnSubscribeCommonEvent(subscriber);
276 CommonEventManager::UnSubscribeCommonEvent(subscriber);
300CommonEventManager::GetStickyCommonEvent(CommonEventSupport::COMMON_EVENT_THERMAL_LEVEL_CHANGED, s…
307 CommonEventManager::UnSubscribeCommonEvent(subscriber);
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/
Dcommon_event_publish_test.cpp72 CommonEventManager::SubscribeCommonEvent(subscriberPtr); in BENCHMARK_F()
92 if (OHOS::EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in BENCHMARK_F()
93 OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in BENCHMARK_F()
117 OHOS::EventFwk::CommonEventManager::PublishCommonEvent(commonEventData, publishInfo); in BENCHMARK_F()
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_event_system_test.cpp267 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
283 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
299 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
315 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
331 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
347 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
363 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
379 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
395 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
434 CommonEventManager::UnSubscribeCommonEvent(subscriber);
[all …]
/base/notification/common_event_service/tools/test/systemtest/cem/
Dcommon_event_command_dump_system_test.cpp111 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr);
120 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr);
156 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr);
165 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr);
Dcommon_event_command_publish_system_test.cpp164 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr);
193 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr);
224 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr);
253 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr);
284 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr);
313 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr);
344 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr);
373 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr);
/base/notification/common_event_service/frameworks/native/test/unittest/
Dcommon_event_subscribe_test.cpp62 CommonEventManager commonEventManager;
159 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriber);
177 bool publishResult = CommonEventManager::PublishCommonEvent(data);
221 bool subscribeResulta = CommonEventManager::SubscribeCommonEvent(subscribera);
225 bool subscribeResultb = CommonEventManager::SubscribeCommonEvent(subscriberb);
242 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(nullptr);
262 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriber);
283 CommonEventManager::SubscribeCommonEvent(subscriber);
285 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriber);
464 CommonEventManager commonEventManager;
[all …]
/base/usb/usb_manager/test/native/mock/src/
Dusb_event_mock_test.cpp119 CommonEventManager::SubscribeCommonEvent(subscriber);
128 CommonEventManager::UnSubscribeCommonEvent(subscriber);
147 CommonEventManager::SubscribeCommonEvent(subscriber);
156 CommonEventManager::UnSubscribeCommonEvent(subscriber);
175 CommonEventManager::SubscribeCommonEvent(subscriber);
184 CommonEventManager::UnSubscribeCommonEvent(subscriber);
233 CommonEventManager::SubscribeCommonEvent(subscriber);
241 CommonEventManager::UnSubscribeCommonEvent(subscriber);
268 CommonEventManager::SubscribeCommonEvent(subscriber);
277 CommonEventManager::UnSubscribeCommonEvent(subscriber);
[all …]
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/
Dpublishcommonevent_fuzzer.cpp44 EventFwk::CommonEventManager::PublishCommonEvent(commonEventData, commonEventPublishInfo); in DoSomethingInterestingWithMyAPI()
47 return EventFwk::CommonEventManager::PublishCommonEvent( in DoSomethingInterestingWithMyAPI()
51 return EventFwk::CommonEventManager::PublishCommonEvent( in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/
Dpublishcommoneventasuser_fuzzer.cpp47 EventFwk::CommonEventManager::PublishCommonEventAsUser(commonEventData, userId); in DoSomethingInterestingWithMyAPI()
50 return EventFwk::CommonEventManager::PublishCommonEventAsUser( in DoSomethingInterestingWithMyAPI()
54 return EventFwk::CommonEventManager::PublishCommonEventAsUser( in DoSomethingInterestingWithMyAPI()
/base/powermgr/thermal_manager/test/systemtest/src/
Dthermal_level_event_system_test.cpp197 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
216 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
235 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
254 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
273 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
309 CommonEventManager::UnSubscribeCommonEvent(subscriber);
330 CommonEventManager::UnSubscribeCommonEvent(subscriber);
351 CommonEventManager::UnSubscribeCommonEvent(subscriber);
378 CommonEventManager::UnSubscribeCommonEvent(subscriber);
406 CommonEventManager::UnSubscribeCommonEvent(subscriber);
/base/powermgr/battery_manager/services/native/src/
Dbattery_notify.cpp104 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishChargeTypeChangedEvent()
165 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishChangedEvent()
193 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishLowEvent()
222 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishOkayEvent()
253 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishPowerConnectedEvent()
285 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishPowerDisconnectedEvent()
316 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishChargingEvent()
347 isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishDischargingEvent()
/base/notification/common_event_service/test/systemtest/common/ces/ces_check_service/
Dces_check_service.cpp120 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
122 EXPECT_EQ(CommonEventManager::PublishCommonEvent(commonEventData), true);
140 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
/base/account/os_account/services/accountmgr/src/
Daccount_event_subscribe.cpp56 return EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in CreateEventSubscribe()
61 return EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in DestroyEventSubscribe()
/base/powermgr/power_manager/test/unittest/src/
Dces_system_test.cpp76 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr);
84 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
Dpower_mgr_notify_test.cpp97 const auto result = CommonEventManager::GetInstance().SubscribeCommonEvent(subscriber); in RegisterEvent()
160 auto err = CommonEventManager::GetInstance().UnsubscribeCommonEvent(subscriber);
191 auto err = CommonEventManager::GetInstance().UnsubscribeCommonEvent(subscriber);
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_shutdown_fast_test.cpp89 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in OnRegisterEvent()
119 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
137 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
/base/telephony/sms_mms/services/sms/
Dsms_state_observer.cpp64 bool unSubscribeResult = CommonEventManager::UnSubscribeCommonEvent(smsSubscriber_); in StopEventSubscriber()
133 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(sub_); in OnAddSystemAbility()
148 bool subscribeResult = CommonEventManager::UnSubscribeCommonEvent(sub_); in OnRemoveSystemAbility()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/os_dependency/sa/
Dcm_event_observer.cpp76 return OHOS::EventFwk::CommonEventManager::SubscribeCommonEvent(systemEventSubscriber_); in SubscribeSystemEvent()
85 return OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(systemEventSubscriber_); in UnSubscribeSystemEvent()

12345