/base/notification/common_event_service/frameworks/native/src/ |
H A D | common_event_manager.cpp | 25 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data) in PublishCommonEvent() 31 bool CommonEventManager::PublishCommonEventAsUser(const CommonEventData &data, const int32_t &userId) in PublishCommonEventAsUser() 37 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo) 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 CommonEventPublishInfo &publishInfo, in PublishCommonEvent() 66 bool CommonEventManager::PublishCommonEventAsUser(const CommonEventData &data, in PublishCommonEventAsUser() 73 int32_t CommonEventManager::NewPublishCommonEventAsUser(const CommonEventData &data, in NewPublishCommonEventAsUser() 81 bool CommonEventManager [all...] |
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
H A D | common_event_services_system_test.cpp | 198 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 199 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 215 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 216 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 232 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 233 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 249 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 250 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 266 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); in HWTEST_F() 267 EXPECT_EQ(CommonEventManager in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
H A D | mock_common_event_manager.cpp | 25 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data) in PublishCommonEvent() 33 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo) in PublishCommonEvent() 38 bool CommonEventManager::PublishCommonEvent(const CommonEventData &data, const CommonEventPublishInfo &publishInfo, in PublishCommonEvent() 44 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber) in SubscribeCommonEvent() 50 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber) in UnSubscribeCommonEvent() 56 bool CommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &commonEventData) in GetStickyCommonEvent()
|
/base/location/test/location_locator/mock/src/ |
H A D | mock_common_event_manager.cpp | 20 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 CommonEventPublishInfo &publishInfo, in PublishCommonEvent() 43 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber) in SubscribeCommonEvent() 48 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber) in UnSubscribeCommonEvent() 53 bool CommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &data) in GetStickyCommonEvent()
|
/base/location/test/location_manager/mock/src/ |
H A D | mock_common_event_manager.cpp | 20 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 CommonEventPublishInfo &publishInfo, in PublishCommonEvent() 43 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber) in SubscribeCommonEvent() 48 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscriber) in UnSubscribeCommonEvent() 53 bool CommonEventManager::GetStickyCommonEvent(const std::string &event, CommonEventData &data) in GetStickyCommonEvent()
|
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/ |
H A D | actsCESManagertest.cpp | 145 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in HWTEST_F() 153 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in HWTEST_F() 175 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in HWTEST_F() 183 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in HWTEST_F() 205 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in HWTEST_F() 213 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in HWTEST_F() 235 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in HWTEST_F() 243 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in HWTEST_F() 265 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in HWTEST_F() 273 CommonEventManager in HWTEST_F() [all...] |
/base/notification/common_event_service/test/systemtest/common/acts/actsCESDataTest/ |
H A D | actsCESDataTest.cpp | 739 bool subscribeFirstResult = CommonEventManager::SubscribeCommonEvent(subscriberFirstTest); in HWTEST_F() 750 bool subscribeResultSecond = CommonEventManager::SubscribeCommonEvent(subscriberSecondTest); in HWTEST_F() 761 bool subscribeResultThird = CommonEventManager::SubscribeCommonEvent(subscriberThirdTest); in HWTEST_F() 781 bool publishResult = CommonEventManager::PublishCommonEvent(data, publishInfo, subscriberPublishTest); in HWTEST_F() 805 bool subscribeFirstResult = CommonEventManager::SubscribeCommonEvent(subscriberFirstTest); in HWTEST_F() 816 bool subscribeResultSecond = CommonEventManager::SubscribeCommonEvent(subscriberSecondTest); in HWTEST_F() 827 bool subscribeResultThird = CommonEventManager::SubscribeCommonEvent(subscriberThirdTest); in HWTEST_F() 847 bool publishResult = CommonEventManager::PublishCommonEvent(data, publishInfo, subscriberPublishTest); in HWTEST_F() 872 bool subscribeFirstResult = CommonEventManager::SubscribeCommonEvent(subscriberFirstTest); in HWTEST_F() 884 bool subscribeResultSecond = CommonEventManager in HWTEST_F() [all...] |
/base/notification/common_event_service/interfaces/kits/cj/src/ |
H A D | common_event_manager_impl.cpp | 25 namespace OHOS::CommonEventManager { namespace in OHOS 34 return OHOS::EventFwk::CommonEventManager::PublishCommonEventAsUser(data, userId) ? NO_ERROR : ERR_CES_FAILED; in PublishEvent() 59 return OHOS::EventFwk::CommonEventManager::NewPublishCommonEventAsUser(data, publishInfo, userId); in PublishEventWithData() 64 return OHOS::EventFwk::CommonEventManager::SetStaticSubscriberState(enable); in SetStaticSubscriberState() 69 return OHOS::EventFwk::CommonEventManager::RemoveStickyCommonEvent(std::string(event)); in RemoveStickyCommonEvent() 88 auto errorCode = OHOS::EventFwk::CommonEventManager::NewSubscribeCommonEvent(subscriber); in Subscribe() 97 auto errorCode = OHOS::EventFwk::CommonEventManager::NewUnSubscribeCommonEvent(subscriber); in Unsubscribe()
|
H A D | common_event.h | 21 namespace OHOS::CommonEventManager { namespace in OHOS 35 void SetPublishResult(OHOS::CommonEventManager::SubscriberImpl *subImpl);
|
H A D | common_event.cpp | 23 using CommonEventManagerImpl = OHOS::CommonEventManager::CommonEventManagerImpl; 25 namespace OHOS::CommonEventManager { namespace in OHOS 30 void SetPublishResult(OHOS::CommonEventManager::SubscriberImpl *subImpl) in SetPublishResult() 88 std::shared_ptr<OHOS::CommonEventManager::SubscriberImpl> newSubscriber = subscriberImpl.first; in GetManagerId() 91 OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(newSubscriber); in GetManagerId()
|
/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/ |
H A D | publishcommoneventasuser_fuzzer.cpp | 49 EventFwk::CommonEventManager::PublishCommonEventAsUser(commonEventData, userId); in DoSomethingInterestingWithMyAPI() 52 EventFwk::CommonEventManager::PublishCommonEventAsUser( in DoSomethingInterestingWithMyAPI() 54 EventFwk::CommonEventManager::NewPublishCommonEventAsUser( in DoSomethingInterestingWithMyAPI() 56 EventFwk::CommonEventManager::NewPublishCommonEventAsUser( in DoSomethingInterestingWithMyAPI() 60 EventFwk::CommonEventManager::PublishCommonEventAsUser( in DoSomethingInterestingWithMyAPI()
|
/base/usb/usb_manager/test/native/service_unittest/src/ |
H A D | usb_event_test.cpp | 81 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 87 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 106 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 112 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 131 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 137 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 185 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 191 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 221 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 226 CommonEventManager in HWTEST_F() [all...] |
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/ |
H A D | publishcommonevent_fuzzer.cpp | 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() 56 EventFwk::CommonEventManager::PublishCommonEvent( in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/ |
H A D | common_event_publish_test.cpp | 72 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/msdp/device_status/intention/adapters/common_event_adapter/src/ |
H A D | common_event_adapter.cpp | 28 if (!EventFwk::CommonEventManager::SubscribeCommonEvent(observer)) { in AddObserver() 38 if (!EventFwk::CommonEventManager::UnSubscribeCommonEvent(observer)) { in RemoveObserver()
|
/base/notification/common_event_service/frameworks/native/test/unittest/ |
H A D | common_event_subscribe_test.cpp | 62 CommonEventManager commonEventManager; 159 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 177 bool publishResult = CommonEventManager::PublishCommonEvent(data); in HWTEST_F() 221 bool subscribeResulta = CommonEventManager::SubscribeCommonEvent(subscribera); in HWTEST_F() 225 bool subscribeResultb = CommonEventManager::SubscribeCommonEvent(subscriberb); in HWTEST_F() 242 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(nullptr); in HWTEST_F() 262 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 283 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 285 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 465 CommonEventManager commonEventManage in HWTEST_F() [all...] |
/base/account/os_account/services/accountmgr/src/ |
H A D | account_event_subscribe.cpp | 57 EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in ~AccountEventSubscriber() 62 return EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in CreateEventSubscribe() 67 return EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in DestroyEventSubscribe()
|
/base/powermgr/battery_manager/test/systemtest/src/ |
H A D | battery_event_system_test.cpp | 268 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 284 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 300 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 316 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 332 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 348 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 364 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 380 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 396 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 437 CommonEventManager in HWTEST_F() [all...] |
/base/notification/common_event_service/tools/test/systemtest/cem/ |
H A D | common_event_command_dump_system_test.cpp | 111 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 120 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 156 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 165 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr); in HWTEST_F()
|
H A D | common_event_command_publish_system_test.cpp | 164 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 193 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 224 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 253 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 284 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 313 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 344 CommonEventManager::SubscribeCommonEvent(subscriberTestPtr); in HWTEST_F() 373 CommonEventManager::UnSubscribeCommonEvent(subscriberTestPtr); in HWTEST_F()
|
/base/powermgr/power_manager/test/systemtest/src/ |
H A D | ces_system_test.cpp | 76 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in HWTEST_F() 84 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in HWTEST_F()
|
/base/powermgr/thermal_manager/test/systemtest/src/ |
H A D | thermal_level_event_system_test.cpp | 106 bool isSuccess = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishChangedEvent() 112 bool isSuccessInner = CommonEventManager::PublishCommonEvent(data, publishInfo); in PublishChangedEvent() 254 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 273 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 292 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 311 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 330 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 389 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 409 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 429 CommonEventManager in HWTEST_F() [all...] |
/base/usb/usb_manager/test/native/mock/src/ |
H A D | usb_event_mock_test.cpp | 119 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 128 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 147 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 156 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 175 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 184 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 232 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 240 CommonEventManager::UnSubscribeCommonEvent(subscriber); in HWTEST_F() 266 CommonEventManager::SubscribeCommonEvent(subscriber); in HWTEST_F() 275 CommonEventManager in HWTEST_F() [all...] |
/base/hiviewdfx/hiview/core/param_update/src/ |
H A D | param_event_manager.cpp | 56 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in SubscriberEvent() 67 bool subscribeResult = EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in UnSubscriberEvent()
|
/base/hiviewdfx/hiview/plugins/unified_collector/power/ |
H A D | power_status_manager.cpp | 45 if (!CommonEventManager::SubscribeCommonEvent(powerStateSubscriber_)) { in PowerStatusManager() 53 CommonEventManager::UnSubscribeCommonEvent(powerStateSubscriber_); in ~PowerStatusManager()
|