Home
last modified time | relevance | path

Searched refs:subscriberPtr (Results 1 - 13 of 13) sorted by relevance

/foundation/communication/dsoftbus/adapter/common/bus_center/wlan/
H A Dlnn_wifiservice_monitor.cpp161 std::shared_ptr<WifiServiceMonitor> subscriberPtr = std::make_shared<WifiServiceMonitor>(subscriberInfo); in SubscribeAPConnStateEvent() local
162 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeAPConnStateEvent()
173 std::shared_ptr<WifiServiceMonitor> subscriberPtr = std::make_shared<WifiServiceMonitor>(subscriberInfo); in SubscribeWifiConnStateEvent() local
174 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeWifiConnStateEvent()
185 std::shared_ptr<WifiServiceMonitor> subscriberPtr = std::make_shared<WifiServiceMonitor>(subscriberInfo); in SubscribeWifiPowerStateEvent() local
186 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeWifiPowerStateEvent()
198 std::shared_ptr<WifiServiceMonitor> subscriberPtr = std::make_shared<WifiServiceMonitor>(subscriberInfo); in SubscribeWifiSemiStateEvent() local
199 if (!CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in SubscribeWifiSemiStateEvent()
263 OHOS::EventFwk::SubscribeEvent *subscriberPtr = new OHOS::EventFwk::SubscribeEvent(); in LnnSubscribeWifiService() local
264 if (subscriberPtr in LnnSubscribeWifiService()
[all...]
/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()
/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()
/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()
/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()
H A Dbms_event_handler_test.cpp92 auto subscriberPtr = std::make_shared<UserUnlockedEventSubscriber>(subscribeInfo); in CreateBundleDataDir() local
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresdrawable_fuzzer/
H A Dbundleresdrawable_fuzzer.cpp43 auto subscriberPtr = std::make_shared<BundleResourceEventSubscriber>(subscribeInfo); in DoSomethingInterestingWithMyAPI() local
46 subscriberPtr->OnUserIdChanged(oldUserId, newUserId); in DoSomethingInterestingWithMyAPI()
/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()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/
H A Dbundle_mgr_service_event_handler.cpp632 auto subscriberPtr = std::make_shared<UserUnlockedEventSubscriber>(subscribeInfo); in ListeningUserUnlocked() local
633 if (!EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in ListeningUserUnlocked()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_resource_test/
H A Dbms_bundle_resource_test.cpp240 auto subscriberPtr = std::make_shared<BundleResourceEventSubscriber>(subscribeInfo); in OnReceiveEvent() local
241 subscriberPtr->OnReceiveEvent(data); in OnReceiveEvent()
3865 auto subscriberPtr = std::make_shared<BundleResourceEventSubscriber>(subscribeInfo); in HWTEST_F() local
3866 ASSERT_NE(subscriberPtr, nullptr); in HWTEST_F()
3869 subscriberPtr->OnUserIdChanged(oldUserId, newUserId); in HWTEST_F()
3870 EXPECT_NE(subscriberPtr, nullptr); in HWTEST_F()
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_conn_service.cpp2539 auto subscriberPtr = std::make_shared<NetConnListener>(subscribeInfo, receiver); in SubscribeCommonEvent() local
2540 if (subscriberPtr == nullptr) { in SubscribeCommonEvent()
2541 NETMGR_LOG_E("subscriberPtr is nullptr"); in SubscribeCommonEvent()
2544 EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr); in SubscribeCommonEvent()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_mgr_service_event_handler.cpp3333 auto subscriberPtr = std::make_shared<UserUnlockedEventSubscriber>(subscribeInfo); in ListeningUserUnlocked() local
3340 subscriberPtr->OnReceiveEvent(data); in ListeningUserUnlocked()
3342 if (!EventFwk::CommonEventManager::SubscribeCommonEvent(subscriberPtr)) { in ListeningUserUnlocked()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_data_mgr_test.cpp1467 auto subscriberPtr = std::make_shared<UserUnlockedEventSubscriber>(subscribeInfo); in HWTEST_F() local
1497 auto subscriberPtr = std::make_shared<UserUnlockedEventSubscriber>(subscribeInfo); in HWTEST_F() local

Completed in 37 milliseconds