/base/security/asset/services/os_dependency/src/ |
H A D | system_ability_wrapper.cpp | 66 OHOS::sptr<OHOS::ISystemAbilityManager> samgrProxy = in GetSystemAbility() local 68 while (samgrProxy == nullptr && retryCount > 0) { in GetSystemAbility() 70 samgrProxy = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetSystemAbility() 73 return samgrProxy; in GetSystemAbility() 81 OHOS::sptr<OHOS::ISystemAbilityManager> samgrProxy = GetSystemAbility(); in SubscribeSystemAbility() local 82 if (samgrProxy == nullptr) { in SubscribeSystemAbility() 93 int32_t ret = samgrProxy->SubscribeSystemAbility(OHOS::COMMON_EVENT_SERVICE_ID, abilityHandler); in SubscribeSystemAbility() 103 OHOS::sptr<OHOS::ISystemAbilityManager> samgrProxy = GetSystemAbility(); in UnSubscribeSystemAbility() local 104 if (samgrProxy == nullptr || abilityHandler == nullptr) { in UnSubscribeSystemAbility() 108 if (samgrProxy in UnSubscribeSystemAbility() [all...] |
/base/notification/common_event_service/frameworks/core/src/ |
H A D | common_event_death_recipient.cpp | 31 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in ~CommonEventDeathRecipient() local 32 if (samgrProxy == nullptr) { in ~CommonEventDeathRecipient() 37 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in ~CommonEventDeathRecipient() 51 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SubscribeSAManager() local 52 if (samgrProxy == nullptr) { in SubscribeSAManager() 63 int32_t ret = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, listener); in SubscribeSAManager()
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_death_recipient.cpp | 31 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SubscribeSAManager() local 33 if (samgrProxy == nullptr || statusChangeListener_ == nullptr) { in SubscribeSAManager() 38 int32_t ret = samgrProxy->SubscribeSystemAbility(ADVANCED_NOTIFICATION_SERVICE_ABILITY_ID, statusChangeListener_); in SubscribeSAManager()
|
/base/location/services/location_locator/locator/source/ |
H A D | locator_msdp_monitor_manager.cpp | 41 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in Init() local 42 if (samgrProxy == nullptr) { in Init() 43 LBSLOGE(LOCATOR, "%{public}s samgrProxy is nullptr!", __func__); in Init() 51 result = samgrProxy->SubscribeSystemAbility(static_cast<int32_t>(MSDP_MOTION_SERVICE_ID), in Init()
|
H A D | locator_background_proxy.cpp | 119 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SubscribeSaStatusChangeListerner() local 121 if (samgrProxy == nullptr || statusChangeListener_ == nullptr) { in SubscribeSaStatusChangeListerner() 123 "SubscribeSaStatusChangeListerner samgrProxy or statusChangeListener_ is nullptr"); in SubscribeSaStatusChangeListerner() 126 int32_t ret = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in SubscribeSaStatusChangeListerner()
|
/base/telephony/core_service/services/network_search/src/ |
H A D | device_state_observer.cpp | 59 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in StartEventSubscriber() local 61 if (samgrProxy == nullptr || statusChangeListener_ == nullptr) { in StartEventSubscriber() 62 TELEPHONY_LOGE("StartEventSubscriber samgrProxy or statusChangeListener_ is nullptr"); in StartEventSubscriber() 65 int32_t commonEventResult = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in StartEventSubscriber() 66 int32_t powerManagerResult = samgrProxy->SubscribeSystemAbility(POWER_MANAGER_SERVICE_ID, statusChangeListener_); in StartEventSubscriber() 68 samgrProxy->SubscribeSystemAbility(POWER_MANAGER_BATT_SERVICE_ID, statusChangeListener_); in StartEventSubscriber() 70 samgrProxy->SubscribeSystemAbility(COMM_NET_TETHERING_MANAGER_SYS_ABILITY_ID, statusChangeListener_); in StartEventSubscriber()
|
/base/telephony/cellular_data/services/src/ |
H A D | cellular_data_controller.cpp | 40 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in ~CellularDataController() local 41 if (samgrProxy != nullptr) { in ~CellularDataController() 42 samgrProxy->UnSubscribeSystemAbility(COMM_NET_CONN_MANAGER_SYS_ABILITY_ID, systemAbilityListener_); in ~CellularDataController() 43 samgrProxy->UnSubscribeSystemAbility(COMM_NET_POLICY_MANAGER_SYS_ABILITY_ID, systemAbilityListener_); in ~CellularDataController() 44 samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, systemAbilityListener_); in ~CellularDataController() 45 samgrProxy->UnSubscribeSystemAbility(DISTRIBUTED_KV_DATA_SERVICE_ABILITY_ID, systemAbilityListener_); in ~CellularDataController() 68 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in Init() local 69 if (samgrProxy == nullptr) { in Init() 70 TELEPHONY_LOGE("samgrProxy is nullptr"); in Init() 78 samgrProxy in Init() [all...] |
/base/telephony/core_service/services/sim/src/ |
H A D | sim_state_tracker.cpp | 42 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in ~SimStateTracker() local 43 if (samgrProxy != nullptr) { in ~SimStateTracker() 44 samgrProxy->UnSubscribeSystemAbility(OHOS::SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN, statusChangeListener_); in ~SimStateTracker() 45 samgrProxy->UnSubscribeSystemAbility(OHOS::COMMON_EVENT_SERVICE_ID, statusChangeListener_); in ~SimStateTracker()
|
H A D | multi_sim_monitor.cpp | 283 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in UnSubscribeListeners() local 284 if (samgrProxy != nullptr) { in UnSubscribeListeners() 285 samgrProxy->UnSubscribeSystemAbility(OHOS::COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnSubscribeListeners() 294 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitListener() local 296 if (samgrProxy == nullptr || statusChangeListener_ == nullptr) { in InitListener() 297 TELEPHONY_LOGE("samgrProxy or statusChangeListener_ is nullptr"); in InitListener() 300 auto ret = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in InitListener()
|
H A D | stk_controller.cpp | 84 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in UnSubscribeListeners() local 85 if (samgrProxy != nullptr) { in UnSubscribeListeners() 86 samgrProxy->UnSubscribeSystemAbility(OHOS::COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnSubscribeListeners() 95 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitListener() local 97 if (samgrProxy == nullptr || statusChangeListener_ == nullptr) { in InitListener() 98 TELEPHONY_LOGE("samgrProxy or statusChangeListener_ is nullptr"); in InitListener() 101 auto ret = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in InitListener()
|
/base/telephony/sms_mms/services/sms/ |
H A D | sms_state_observer.cpp | 44 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager();
in StartEventSubscriber() local 45 if (samgrProxy == nullptr) {
in StartEventSubscriber() 46 TELEPHONY_LOGE("StartEventSubscriber samgrProxy is nullptr");
in StartEventSubscriber() 54 int32_t ret = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, smsStatusListener_);
in StartEventSubscriber()
|
/base/telephony/call_manager/services/telephony_interaction/src/ |
H A D | voip_call_connection.cpp | 71 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in UnInit() local 72 if (samgrProxy != nullptr) { in UnInit() 73 samgrProxy->UnSubscribeSystemAbility(systemAbilityId_, statusChangeListener_); in UnInit()
|
H A D | cellular_call_connection.cpp | 78 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in UnInit() local 79 if (samgrProxy != nullptr) { in UnInit() 80 samgrProxy->UnSubscribeSystemAbility(TELEPHONY_CELLULAR_CALL_SYS_ABILITY_ID, statusChangeListener_); in UnInit()
|
/base/security/device_security_level/services/sa/standard/ |
H A D | dslm_ipc_process.cpp | 124 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in TimerProcessUnloadSystemAbility() local 125 if (samgrProxy == nullptr) { in TimerProcessUnloadSystemAbility() 130 int32_t ret = samgrProxy->UnloadSystemAbility(DEVICE_SECURITY_LEVEL_MANAGER_SA_ID); in TimerProcessUnloadSystemAbility()
|
/base/telephony/call_manager/services/bluetooth/src/ |
H A D | bluetooth_connection.cpp | 35 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in ~BluetoothConnection() local 36 if (samgrProxy != nullptr) { in ~BluetoothConnection() 37 samgrProxy->UnSubscribeSystemAbility(BLUETOOTH_HOST_SYS_ABILITY_ID, statusChangeListener_); in ~BluetoothConnection()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | reminder_event_manager.cpp | 111 sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SubscribeSystemAbility() local 112 if (samgrProxy == nullptr) { in SubscribeSystemAbility() 113 ANSR_LOGD("samgrProxy is null"); in SubscribeSystemAbility() 116 int32_t ret = samgrProxy->SubscribeSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, statusChangeListener); in SubscribeSystemAbility() 120 ret = samgrProxy->SubscribeSystemAbility(APP_MGR_SERVICE_ID, appMgrStatusChangeListener); in SubscribeSystemAbility() 124 ret = samgrProxy->SubscribeSystemAbility(ABILITY_MGR_SERVICE_ID, abilityMgrStatusListener); in SubscribeSystemAbility()
|
/base/account/os_account/frameworks/ohosaccount/native/src/ |
H A D | ohos_account_kits_impl.cpp | 351 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager();
in SubscribeSystemAbility() local 352 if (samgrProxy == NULL) {
in SubscribeSystemAbility() 353 ACCOUNT_LOGE("samgrProxy is NULL");
in SubscribeSystemAbility() 356 int32_t ret = samgrProxy->SubscribeSystemAbility(SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN, statusChangeListener);
in SubscribeSystemAbility()
|
/base/web/webview/sa/src/ |
H A D | app_fwk_update_service.cpp | 303 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in PostDelayUnloadTask() 304 if (samgrProxy == nullptr) { in PostDelayUnloadTask() 305 WVLOG_I("Get samgrProxy failed."); in PostDelayUnloadTask() 308 int32_t ret = samgrProxy->UnloadSystemAbility(SUBSYS_WEBVIEW_SYS_UPDATE_SERVICE_ID); in PostDelayUnloadTask()
|
/base/telephony/call_manager/services/call/src/ |
H A D | call_control_manager.cpp | 68 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in ~CallControlManager() local 69 if (samgrProxy != nullptr) { in ~CallControlManager() 70 samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in ~CallControlManager() 71 samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, pageStateChangeListener_); in ~CallControlManager() 72 samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, satcommEventListener_); in ~CallControlManager() 73 samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, superPrivacyEventListener_); in ~CallControlManager() 1538 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in BroadcastSubscriber() local 1539 if (samgrProxy == nullptr) { in BroadcastSubscriber() 1540 TELEPHONY_LOGE("samgrProxy is nullptr"); in BroadcastSubscriber() 1565 int32_t ret = samgrProxy in BroadcastSubscriber() [all...] |
/base/location/services/location_gnss/gnss/source/ |
H A D | agnss_ni_manager.cpp | 67 sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SubscribeSaStatusChangeListerner() local 68 if (samgrProxy == nullptr) { in SubscribeSaStatusChangeListerner() 69 LBSLOGE(GNSS, "failed to get samgrProxy"); in SubscribeSaStatusChangeListerner() 77 int32_t ret = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in SubscribeSaStatusChangeListerner()
|
/base/hiviewdfx/hidumper/services/native/src/ |
H A D | dump_manager_service.cpp | 468 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in DelayUnloadTask() 469 if (samgrProxy == nullptr) { in DelayUnloadTask() 473 int32_t ret = samgrProxy->UnloadSystemAbility(DFX_SYS_HIDUMPER_ABILITY_ID); in DelayUnloadTask()
|
/base/accesscontrol/sandbox_manager/services/sandbox_manager/main/cpp/src/service/ |
H A D | sandbox_manager_service.cpp | 374 auto samgrProxy = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in DelayUnloadService() 375 if (samgrProxy == nullptr) { in DelayUnloadService() 379 int32_t ret = samgrProxy->UnloadSystemAbility(SA_ID_SANDBOX_MANAGER_SERVICE); in DelayUnloadService()
|
/base/telephony/call_manager/services/call/call_state_observer/src/ |
H A D | call_records_manager.cpp | 42 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in ~CallRecordsManager() local 43 if (samgrProxy != nullptr) { in ~CallRecordsManager() 44 samgrProxy->UnSubscribeSystemAbility(OHOS::SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN, statusChangeListener_); in ~CallRecordsManager()
|
/base/telephony/cellular_call/services/manager/src/ |
H A D | cellular_call_service.cpp | 61 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in Init() local 63 if (samgrProxy == nullptr || callManagerListener_ == nullptr) { in Init() 64 TELEPHONY_LOGE("samgrProxy or callManagerListener_ is nullptr"); in Init() 66 int32_t ret = samgrProxy->SubscribeSystemAbility(TELEPHONY_CALL_MANAGER_SYS_ABILITY_ID, callManagerListener_); in Init() 143 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in CreateHandler() local 145 if (samgrProxy == nullptr || statusChangeListener_ == nullptr) { in CreateHandler() 146 TELEPHONY_LOGE("samgrProxy or statusChangeListener_ is nullptr"); in CreateHandler() 149 samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in CreateHandler() 152 samgrProxy->SubscribeSystemAbility(TELEPHONY_SATELLITE_SYS_ABILITY_ID, statusChangeListener_); in CreateHandler()
|
/base/usb/usb_manager/services/native/src/ |
H A D | usb_service.cpp | 208 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in OnStart() local 210 if (samgrProxy == nullptr || status == nullptr) { in OnStart() 211 USB_HILOGE(MODULE_USB_SERVICE, "samgrProxy or SystemAbilityStatusChangeListener is nullptr"); in OnStart() 214 int32_t ret = samgrProxy->SubscribeSystemAbility(USB_SYSTEM_ABILITY_ID, status); in OnStart() 2022 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in UnLoadSelf() 2023 if (samgrProxy == nullptr) { in UnLoadSelf() 2028 auto ret = samgrProxy->UnloadSystemAbility(USB_SYSTEM_ABILITY_ID); in UnLoadSelf() 2067 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in OnRemoteDied() local 2068 if (samgrProxy == nullptr) { in OnRemoteDied() 2073 auto ret = samgrProxy in OnRemoteDied() [all...] |