Home
last modified time | relevance | path

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

12

/ohos5.0/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
H A Dcommon_event_services_system_test.cpp198 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
199 EXPECT_EQ(CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true);
215 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
232 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
249 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
266 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
284 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
302 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
2512 subscriberPtrs.push_back(subscriberPtr);
2537 subscriberPtrs.push_back(subscriberPtr);
[all …]
/ohos5.0/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
H A DactsCESManagertest.cpp153 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
183 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
213 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
243 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
1929 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
1971 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
2012 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
2055 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
2100 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
2145 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
[all …]
/ohos5.0/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
H A Dcommon_event_services_module_test.cpp123 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
143 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
163 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
221 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
242 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
263 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
285 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
306 auto subscriberPtr = std::make_shared<CommonEventServicesModuleTest>(subscribeInfo); variable
499 EXPECT_TRUE(CommonEventManager::SubscribeCommonEvent(subscriberPtr));
525 if (CommonEventManager::SubscribeCommonEvent(subscriberPtr)) {
[all …]
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/wlan/
H A Dlnn_wifiservice_monitor.cpp162 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeAPConnStateEvent()
174 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeWifiConnStateEvent()
186 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeWifiPowerStateEvent()
199 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeWifiSemiStateEvent()
263 OHOS::EventFwk::SubscribeEvent *subscriberPtr = new OHOS::EventFwk::SubscribeEvent(); in LnnSubscribeWifiService() local
264 if (subscriberPtr == nullptr) { in LnnSubscribeWifiService()
268 if (subscriberPtr->SubscribeWifiConnStateEvent() == SOFTBUS_OK && in LnnSubscribeWifiService()
269 subscriberPtr->SubscribeWifiPowerStateEvent() == SOFTBUS_OK && in LnnSubscribeWifiService()
270 subscriberPtr->SubscribeAPConnStateEvent() == SOFTBUS_OK && in LnnSubscribeWifiService()
271 subscriberPtr->SubscribeWifiSemiStateEvent() == SOFTBUS_OK) { in LnnSubscribeWifiService()
[all …]
/ohos5.0/base/notification/common_event_service/test/benchmarktest/common_event_service_test/
H A 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 …]
/ohos5.0/base/powermgr/battery_manager/test/systemtest/src/
H A Dbattery_event_system_test.cpp267 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
272 return subscriberPtr; in RegisterEvent()
283 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
288 return subscriberPtr; in RegisterEvent()
304 return subscriberPtr; in RegisterEvent()
320 return subscriberPtr; in RegisterEvent()
336 return subscriberPtr; in RegisterEvent()
352 return subscriberPtr; in RegisterEvent()
368 return subscriberPtr; in RegisterEvent()
384 return subscriberPtr; in RegisterEvent()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_inner_account_mgr_cov.cpp219 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable
221 ASSERT_NE(subscriberPtr, nullptr);
227 subscriberPtr->localId_ = osAccountInfo.GetLocalId();
235 ASSERT_EQ(subscriberPtr->GetStatus(), true);
236 subscriberPtr->ResetStatus();
239 ASSERT_EQ(subscriberPtr->GetStatus(), false);
240 subscriberPtr->ResetStatus();
244 ASSERT_EQ(subscriberPtr->GetStatus(), true);
245 subscriberPtr->ResetStatus();
248 ASSERT_EQ(subscriberPtr->GetStatus(), false);
[all …]
/ohos5.0/base/powermgr/power_manager/test/systemtest/src/
H A Dpower_mgr_shutdown_fast_test.cpp88 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);
135 auto subscriberPtr = eventPtr->OnRegisterEvent(CommonEventSupport::COMMON_EVENT_SHUTDOWN); variable
138 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
H A Dpower_mgr_powersavemode_test.cpp384 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);
H A Dpower_level_event_system_test_off.cpp83 auto subscriberPtr = std::make_shared<CommonEventScreenOffTest>(subscribeInfo); in RegisterEvent() local
85 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
90 return subscriberPtr; in RegisterEvent()
H A Dpower_level_event_system_test_on.cpp84 auto subscriberPtr = std::make_shared<CommonEventScreenOnTest>(subscribeInfo); in RegisterEvent() local
86 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
91 return subscriberPtr; in RegisterEvent()
/ohos5.0/base/powermgr/thermal_manager/test/systemtest/src/
H A Dthermal_level_event_system_test.cpp252 auto subscriberPtr = std::make_shared<CommonEventThermalLevel1Test>(subscribeInfo); in RegisterEvent() local
254 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
260 return subscriberPtr; in RegisterEvent()
273 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
279 return subscriberPtr; in RegisterEvent()
292 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
298 return subscriberPtr; in RegisterEvent()
311 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
317 return subscriberPtr; in RegisterEvent()
330 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/ohos_account/
H A Dohos_account_manager_test.cpp217 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable
219 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr);
233 std::unique_lock<std::mutex> lock(subscriberPtr->mutex);
234 subscriberPtr->cv.wait_for(
240 EXPECT_EQ(EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriberPtr), true);
259 std::shared_ptr<AccountCommonEventSubscriber> subscriberPtr = variable
261 ASSERT_NE(subscriberPtr, nullptr);
262 bool result = EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr);
275 std::unique_lock<std::mutex> lock(subscriberPtr->mutex);
276 subscriberPtr->cv.wait_for(
[all …]
/ohos5.0/base/notification/common_event_service/test/benchmarktest/common_event_publish_test/
H A 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()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/broadcaster/src/
H A Dbroadcast_sender_impl.cpp56 auto subscriberPtr = std::make_shared<CommonEventSubscriberListener>(subscribeInfo); in SendEvent() local
57 if (CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SendEvent()
60 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr); in SendEvent()
/ohos5.0/base/powermgr/power_manager/test/unittest/src/
H A Dces_system_test.cpp75 auto subscriberPtr = std::make_shared<CommonEventServiCesSystemTest>(subscribeInfo); variable
76 result = CommonEventManager::SubscribeCommonEvent(subscriberPtr);
84 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
H A Dpower_coordination_lock_test.cpp149 auto subscriberPtr = std::make_shared<PowerStateCommonEventSubscriber>(subscribeInfo); in RegisterEvent() local
151 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
161 return subscriberPtr; in RegisterEvent()
/ohos5.0/foundation/communication/dsoftbus/adapter/common/bus_center/common_event/
H A Dlnn_common_event_monitor.cpp134 OHOS::EventFwk::SubscribeEvent *subscriberPtr = new OHOS::EventFwk::SubscribeEvent(); in LnnSubscribeCommonEvent() local
135 if (subscriberPtr == nullptr) { in LnnSubscribeCommonEvent()
139 if (subscriberPtr->SubscribeCommonEvent() == SOFTBUS_OK) { in LnnSubscribeCommonEvent()
153 delete subscriberPtr; in LnnSubscribeCommonEvent()
/ohos5.0/base/notification/common_event_service/test/systemtest/common/ces/ces_check_service/
H A Dces_check_service.cpp118 auto subscriberPtr = std::make_shared<CommonEventServicesSystemTest>(subscribeInfo); variable
120 EXPECT_EQ(CommonEventManager::SubscribeCommonEvent(subscriberPtr), true);
140 CommonEventManager::UnSubscribeCommonEvent(subscriberPtr);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_event_handler_test/
H A Dbms_event_handler_unlocked_test.cpp75 auto subscriberPtr = std::make_shared<UserUnlockedEventSubscriber>(subscribeInfo); in CreateBundleDataDir() local
86 auto subscriberPtr = std::make_shared<UserUnlockedEventSubscriber>(subscribeInfo); in OnReceiveEvent() local
87 subscriberPtr->OnReceiveEvent(data); in OnReceiveEvent()
/ohos5.0/base/notification/common_event_service/interfaces/kits/ndk/src/
H A Doh_commonevent_wrapper.cpp105 auto subscriberPtr = reinterpret_cast<std::shared_ptr<SubscriberObserver>*>(subscriber); in DestroySubscriber() local
106 delete subscriberPtr; in DestroySubscriber()
107 subscriberPtr = nullptr; in DestroySubscriber()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_register.cpp59 auto subscriberPtr = std::make_shared<BundleResourceEventSubscriber>(subscribeInfo); in RegisterCommonEventSubscriber() local
60 if (!EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in RegisterCommonEventSubscriber()
/ohos5.0/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_level_event_test.cpp143 auto subscriberPtr = std::make_shared<CommonEventThermalLevelTest>(subscribeInfo); in RegisterEvent() local
145 succeed = CommonEventManager::SubscribeCommonEvent(subscriberPtr); in RegisterEvent()
151 return subscriberPtr; in RegisterEvent()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/sandbox_app/
H A Dbundle_sandbox_exception_handler.cpp156 …auto subscriberPtr = std::make_shared<BundleMgrCommonEventSubscriber>(subscribeInfo, sandboxDirs_); in ListeningUserUnlocked() local
157 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in ListeningUserUnlocked()
/ohos5.0/base/telephony/call_manager/services/call/src/
H A Dcall_control_manager.cpp1441 …ystemAbilityListener::SystemAbilityListener(std::shared_ptr<CallBroadcastSubscriber> subscriberPtr) in SystemAbilityListener() argument
1442 : subscriberPtr_(subscriberPtr) in SystemAbilityListener()
1490 …std::shared_ptr<CallBroadcastSubscriber> subscriberPtr = std::make_shared<CallBroadcastSubscriber>… in BroadcastSubscriber() local
1491 if (subscriberPtr == nullptr) { in BroadcastSubscriber()
1539 statusChangeListener_ = new (std::nothrow) SystemAbilityListener(subscriberPtr); in BroadcastSubscriber()

12