/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/account/os_account/services/accountmgr/test/unittest/os_account/ |
D | os_account_inner_account_mgr_cov.cpp | 210 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable 212 ASSERT_NE(subscriberPtr, nullptr); 213 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); 218 subscriberPtr->localId_ = osAccountInfo.GetLocalId(); 224 ASSERT_EQ(subscriberPtr->GetStatus(), true); 225 subscriberPtr->ResetStatus(); 228 ASSERT_EQ(subscriberPtr->GetStatus(), false); 231 result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 248 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable 250 ASSERT_NE(subscriberPtr, nullptr); [all …]
|
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/ |
D | common_event_services_module_test.cpp | 122 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 123 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 142 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 143 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 162 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 163 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 220 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 221 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); 241 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable 242 sptr<CommonEventListener> commonEventListener = new CommonEventListener(subscriberPtr); [all …]
|
/base/powermgr/power_manager/test/systemtest/src/ |
D | power_mgr_shutdown_fast_test.cpp | 88 auto subscriberPtr = std::make_shared<CommonEventServiceSystemTest>(subscribeInfo); in OnRegisterEvent() local 89 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in OnRegisterEvent() 91 return subscriberPtr; in OnRegisterEvent() 111 auto subscriberPtr = eventPtr->OnRegisterEvent(CommonEventSupport::COMMON_EVENT_SCREEN_OFF); variable 119 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 134 auto subscriberPtr = eventPtr->OnRegisterEvent(CommonEventSupport::COMMON_EVENT_SHUTDOWN); variable 137 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
|
D | power_level_event_system_test_off.cpp | 83 auto subscriberPtr = std::make_shared<CommonEventScreenOffTest>(subscribeInfo); in RegisterEvent() local 85 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 90 return subscriberPtr; in RegisterEvent()
|
D | power_level_event_system_test_on.cpp | 84 auto subscriberPtr = std::make_shared<CommonEventScreenOnTest>(subscribeInfo); in RegisterEvent() local 86 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 91 return subscriberPtr; in RegisterEvent()
|
D | power_mgr_powersavemode_test.cpp | 384 auto subscriberPtr = std::make_shared<CommonEventSaveModeTest>(subscribeInfo); in RegisterEvent() local 386 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 391 return subscriberPtr; in RegisterEvent() 409 auto subscriberPtr = std::make_shared<CommonEventServiCesSystemTest>(subscribeInfo); variable 410 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); 415 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); 434 auto subscriberPtr = std::make_shared<CommonEventServiCesSystemTest>(subscribeInfo); variable 435 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr); 440 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
|
/base/powermgr/battery_manager/test/systemtest/src/ |
D | battery_event_system_test.cpp | 265 auto subscriberPtr = std::make_shared<CommonEventBatteryChangedTest>(subscribeInfo); in RegisterEvent() local 267 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 272 return subscriberPtr; in RegisterEvent() 281 auto subscriberPtr = std::make_shared<CommonEventBatteryLowTest>(subscribeInfo); in RegisterEvent() local 283 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 288 return subscriberPtr; in RegisterEvent() 297 auto subscriberPtr = std::make_shared<CommonEventBatteryOkayTest>(subscribeInfo); in RegisterEvent() local 299 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 304 return subscriberPtr; in RegisterEvent() 313 auto subscriberPtr = std::make_shared<CommonEventBatteryChargingTest>(subscribeInfo); in RegisterEvent() local [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/thermal_manager/test/systemtest/src/ |
D | thermal_level_event_system_test.cpp | 195 auto subscriberPtr = std::make_shared<CommonEventThermalLevel1Test>(subscribeInfo); in RegisterEvent() local 197 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 203 return subscriberPtr; in RegisterEvent() 214 auto subscriberPtr = std::make_shared<CommonEventThermalLevel2Test>(subscribeInfo); in RegisterEvent() local 216 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 222 return subscriberPtr; in RegisterEvent() 233 auto subscriberPtr = std::make_shared<CommonEventThermalLevel3Test>(subscribeInfo); in RegisterEvent() local 235 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 241 return subscriberPtr; in RegisterEvent() 252 auto subscriberPtr = std::make_shared<CommonEventThermalIdleTrueTest>(subscribeInfo); in RegisterEvent() local [all …]
|
/base/powermgr/power_manager/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/account/os_account/services/accountmgr/test/unittest/ohos_account/ |
D | ohos_account_manager_test.cpp | 221 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable 223 ASSERT_NE(subscriberPtr, nullptr); 224 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); 234 EXPECT_EQ(subscriberPtr->GetStatusLoginFirst(), true); 239 EXPECT_EQ(subscriberPtr->GetStatusLoginSecond(), true); 263 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable 265 ASSERT_NE(subscriberPtr, nullptr); 266 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); 276 EXPECT_EQ(subscriberPtr->GetLoginCommonEvent(), true); 282 EXPECT_EQ(subscriberPtr->GetLogoutCommonEvent(), true); [all …]
|
/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/time/time_service/services/time/src/ |
D | time_tick_notify.cpp | 57 …std::shared_ptr<PowerSubscriber> subscriberPtr = std::make_shared<PowerSubscriber>(subscriberInfo); in Init() local 58 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in Init()
|
D | ntp_update_time.cpp | 150 … std::shared_ptr<NITZSubscriber> subscriberPtr = std::make_shared<NITZSubscriber>(subscriberInfo); in SubscriberNITZTimeChangeCommonEvent() local 151 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in SubscriberNITZTimeChangeCommonEvent()
|
/base/powermgr/thermal_manager/test/unittest/src/ |
D | thermal_level_event_test.cpp | 98 auto subscriberPtr = std::make_shared<CommonEventThermalLevelTest>(subscribeInfo); in RegisterEvent() local 100 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent() 106 return subscriberPtr; in RegisterEvent()
|
/base/telephony/call_manager/services/call/src/ |
D | call_control_manager.cpp | 1110 …ystemAbilityListener::SystemAbilityListener(std::shared_ptr<CallBroadcastSubscriber> subscriberPtr) in SystemAbilityListener() argument 1111 : subscriberPtr_(subscriberPtr) in SystemAbilityListener() 1153 …std::shared_ptr<CallBroadcastSubscriber> subscriberPtr = std::make_shared<CallBroadcastSubscriber>… in BroadcastSubscriber() local 1154 if (subscriberPtr == nullptr) { in BroadcastSubscriber() 1165 statusChangeListener_ = new (std::nothrow) SystemAbilityListener(subscriberPtr); in BroadcastSubscriber()
|
/base/telephony/call_manager/services/call/include/ |
D | call_control_manager.h | 126 explicit SystemAbilityListener(std::shared_ptr<CallBroadcastSubscriber> subscriberPtr);
|
/base/hiviewdfx/hidumper/services/native/src/ |
D | dump_manager_cpu_service.cpp | 227 std::shared_ptr<EventFwk::CommonEventSubscriber> subscriberPtr = in SubscribeCommonEvent() local 229 result = OHOS::EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); in SubscribeCommonEvent()
|
/base/telephony/call_manager/frameworks/native/src/ |
D | call_manager_proxy.cpp | 75 std::shared_ptr<CallManagerProxySubcribed> subscriberPtr = in Init() local 78 if (subscriberPtr == nullptr) { in Init() 83 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); in Init()
|
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/ |
D | zero_branch_test.cpp | 1827 std::shared_ptr<CallBroadcastSubscriber> subscriberPtr = nullptr; variable 1828 CallControlManager::SystemAbilityListener listen(subscriberPtr); 1838 subscriberPtr = std::make_shared<CallBroadcastSubscriber>(subscriberInfo);
|