Home
last modified time | relevance | path

Searched refs:subscriberPtr (Results 1 – 16 of 16) sorted by relevance

/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp191 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/
DactsCESManagertest.cpp144 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/
Dcommon_event_manager_service_test.cpp74 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/
Dcommon_event_services_module_test.cpp118 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/
Dos_account_inner_account_mgr_cov.cpp292 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/
Dcommon_event_publish_test.cpp70 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/
Dces_system_test.cpp75 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/
Dces_check_service.cpp118 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/
Dohos_account_manager_test.cpp205 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/
Dpower_mgr_powersavemode_test.cpp374 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/
Dtime_tick_notify.cpp51 …std::shared_ptr<PowerSubscriber> subscriberPtr = std::make_shared<PowerSubscriber>(subscriberInfo); in Init() local
52 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in Init()
Dntp_update_time.cpp133 … 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/
Dthermal_level_event_test.cpp78 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/
Dcall_control_manager.cpp981 …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/
Dcall_control_manager.h116 explicit SystemAbilityListener(std::shared_ptr<CallBroadcastSubscriber> subscriberPtr);
/base/telephony/call_manager/frameworks/native/src/
Dcall_manager_proxy.cpp74 std::shared_ptr<CallManagerProxySubcribed> subscriberPtr = in Init() local
77 if (subscriberPtr == nullptr) { in Init()
82 bool subscribeResult = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); in Init()