/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/ |
D | common_event_services_system_test.cpp | 191 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable 193 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); 194 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true); 208 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable 210 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); 211 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true); 225 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable 227 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); 228 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true); 242 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable [all …]
|
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/ |
D | actsCESManagertest.cpp | 144 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable 145 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { 153 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 174 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable 175 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { 183 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 204 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable 205 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { 213 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 234 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable [all …]
|
/base/notification/common_event_service/test/benchmarktest/common_event_service_test/ |
D | common_event_manager_service_test.cpp | 74 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F() local 75 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() 98 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F() local 99 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() 122 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F() local 123 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() 146 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F() local 147 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() 177 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F() local 178 OHOS::sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); in BENCHMARK_F() [all …]
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/ |
D | common_event_services_module_test.cpp | 118 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 119 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 138 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 139 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 158 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 159 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 216 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 217 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 237 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 238 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
D | os_account_inner_account_mgr_cov.cpp | 292 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable 294 ASSERT_NE(subscriberPtr, nullptr); 295 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); 305 ASSERT_EQ(subscriberPtr->GetStatus(), true); 306 subscriberPtr->ResetStatus(); 309 ASSERT_EQ(subscriberPtr->GetStatus(), false); 312 result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 331 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable 333 ASSERT_NE(subscriberPtr, nullptr); 334 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); [all …]
|
/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/ |
D | common_event_publish_test.cpp | 70 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F() local 72 CommonEventManager::SubscribeCommonEvent(subscriberPtr); in BENCHMARK_F() 89 auto subscriberPtr = std::make_shared<CommonEventSubscriberBenchmark>(subscribeInfo); in BENCHMARK_F() local 92 if (OHOS::EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in BENCHMARK_F() 93 OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in BENCHMARK_F()
|
/base/powermgr/power_manager/services/native/test/unittest/src/ |
D | ces_system_test.cpp | 75 auto subscriberPtr = std::make_shared<CommonEventServiCesSystemTest>(subscribeInfo); variable 76 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); 84 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
|
/base/notification/common_event_service/test/systemtest/common/ces/ces_check_service/ |
D | ces_check_service.cpp | 118 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable 120 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true); 140 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
|
/base/account/os_account/services/accountmgr/test/unittest/account_mgr_service_test/ |
D | ohos_account_manager_test.cpp | 205 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable 207 ASSERT_NE(subscriberPtr, nullptr); 208 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); 219 ASSERT_EQ(subscriberPtr->GetStatusLoginFirst(), true); 223 ASSERT_EQ(subscriberPtr->GetStatusLoginSecond(), true);
|
/base/powermgr/power_manager/test/systemtest/src/ |
D | power_mgr_powersavemode_test.cpp | 374 auto subscriberPtr = std::make_shared<CommonEventServiCesSystemTest>(subscribeInfo); variable 375 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); 380 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 399 auto subscriberPtr = std::make_shared<CommonEventServiCesSystemTest>(subscribeInfo); variable 400 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); 405 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
|
/base/time/time_service/services/time/src/ |
D | time_tick_notify.cpp | 51 …std::shared_ptr<PowerSubscriber> subscriberPtr = std::make_shared<PowerSubscriber>(subscriberInfo); in Init() local 52 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in Init()
|
D | ntp_update_time.cpp | 133 … std::shared_ptr<NITZSubscriber> subscriberPtr = std::make_shared<NITZSubscriber>(subscriberInfo); in SubscriberNITZTimeChangeCommonEvent() local 134 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in SubscriberNITZTimeChangeCommonEvent()
|
/base/powermgr/thermal_manager/services/native/test/unittest/src/ |
D | thermal_level_event_test.cpp | 78 auto subscriberPtr = std::make_shared<CommonEventThermalLevelTest>(subscribeInfo); in RegisterEvent() local 80 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 86 return subscriberPtr; in RegisterEvent()
|
/base/telephony/call_manager/services/call/src/ |
D | call_control_manager.cpp | 981 …ystemAbilityListener::SystemAbilityListener(std::shared_ptr<CallBroadcastSubscriber> subscriberPtr) in SystemAbilityListener() argument 982 : subscriberPtr_(subscriberPtr) in SystemAbilityListener() 1023 …std::shared_ptr<CallBroadcastSubscriber> subscriberPtr = std::make_shared<CallBroadcastSubscriber>… in BroadcastSubscriber() local 1024 if (subscriberPtr == nullptr) { in BroadcastSubscriber() 1035 statusChangeListener_ = new (std::nothrow) SystemAbilityListener(subscriberPtr); in BroadcastSubscriber()
|
/base/telephony/call_manager/services/call/include/ |
D | call_control_manager.h | 116 explicit SystemAbilityListener(std::shared_ptr<CallBroadcastSubscriber> subscriberPtr);
|
/base/telephony/call_manager/frameworks/native/src/ |
D | call_manager_proxy.cpp | 74 std::shared_ptr<CallManagerProxySubcribed> subscriberPtr = in Init() local 77 if (subscriberPtr == nullptr) { in Init() 82 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); in Init()
|