Home
last modified time | relevance | path

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

/foundation/systemabilitymgr/safwk/services/safwk/src/
Dsystem_ability.cpp85 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in Publish() local
86 if (samgrProxy == nullptr) { in Publish()
93 int32_t result = samgrProxy->AddSystemAbility(saId_, publishObj_, saExtra); in Publish()
109 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in CancelIdle() local
110 if (samgrProxy == nullptr) { in CancelIdle()
114 int32_t result = samgrProxy->CancelUnloadSystemAbility(saId_); in CancelIdle()
122 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in StopAbility() local
123 if (samgrProxy == nullptr) { in StopAbility()
128 int32_t ret = samgrProxy->RemoveSystemAbility(systemAbilityId); in StopAbility()
137 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in GetOnDemandReasonExtraData() local
[all …]
Dlocal_ability_manager.cpp157 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in CheckSystemAbilityManagerReady() local
158 while (samgrProxy == nullptr) { in CheckSystemAbilityManagerReady()
162 samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in CheckSystemAbilityManagerReady()
278 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in AddSystemAbilityListener() local
279 if (samgrProxy == nullptr) { in AddSystemAbilityListener()
297 sptr<IRemoteObject> object = samgrProxy->CheckSystemAbility(systemAbilityId); in AddSystemAbilityListener()
306 … int32_t ret = samgrProxy->SubscribeSystemAbility(systemAbilityId, GetSystemAbilityStatusChange()); in AddSystemAbilityListener()
344 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in RemoveSystemAbilityListener() local
345 if (samgrProxy == nullptr) { in RemoveSystemAbilityListener()
349 …int32_t ret = samgrProxy->UnSubscribeSystemAbility(systemAbilityId, GetSystemAbilityStatusChange()… in RemoveSystemAbilityListener()
[all …]
/foundation/distributedhardware/device_manager/services/implementation/src/dependency/commonevent/
Ddm_common_event_manager.cpp58 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SubscribeServiceEvent() local
59 if (samgrProxy == nullptr) { in SubscribeServiceEvent()
70 … int32_t ret = samgrProxy->SubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in SubscribeServiceEvent()
100 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in UnsubscribeServiceEvent() local
101 if (samgrProxy == nullptr) { in UnsubscribeServiceEvent()
105 …int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMMON_EVENT_SERVICE_ID, statusChangeListener_); in UnsubscribeServiceEvent()
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/
Dwifi_c_event.cpp261 auto samgrProxy = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in RegisterWifiEvents() local
262 if (samgrProxy == nullptr) { in RegisterWifiEvents()
271 … ret = samgrProxy->SubscribeSystemAbility((int32_t)WIFI_DEVICE_ABILITY_ID, mSaStatusListener); in RegisterWifiEvents()
272 samgrProxy->SubscribeSystemAbility((int32_t)WIFI_SCAN_ABILITY_ID, mSaStatusListener); in RegisterWifiEvents()
273 samgrProxy->SubscribeSystemAbility((int32_t)WIFI_HOTSPOT_ABILITY_ID, mSaStatusListener); in RegisterWifiEvents()
274 samgrProxy->SubscribeSystemAbility((int32_t)WIFI_P2P_ABILITY_ID, mSaStatusListener); in RegisterWifiEvents()
342 auto samgrProxy = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in Init() local
343 if (samgrProxy == nullptr) { in Init()
352 … ret = samgrProxy->SubscribeSystemAbility((int32_t)WIFI_DEVICE_ABILITY_ID, mSaStatusListener); in Init()
353 samgrProxy->SubscribeSystemAbility((int32_t)WIFI_SCAN_ABILITY_ID, mSaStatusListener); in Init()
[all …]
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/
Ddistributed_sched_util.cpp101 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in GetBundleManager() local
102 if (samgrProxy == nullptr) { in GetBundleManager()
105 sptr<IRemoteObject> bmsProxy = samgrProxy->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleManager()
165 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadDistributedSchedService() local
166 if (samgrProxy == nullptr) { in LoadDistributedSchedService()
170 int32_t ret = samgrProxy->LoadSystemAbility(DISTRIBUTED_SCHED_SA_ID, loadCallback); in LoadDistributedSchedService()
/foundation/ability/form_fwk/services/src/
Dform_distributed_client.cpp39 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetDmsServiceProxy() local
40 if (samgrProxy == nullptr) { in GetDmsServiceProxy()
44 dmsProxy_ = samgrProxy->GetSystemAbility(DISTRIBUTED_SCHED_SA_ID); in GetDmsServiceProxy()
/foundation/communication/wifi/wifi/frameworks/js/napi/inc/
Dwifi_napi_event.h122 auto samgrProxy = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in EventRegister() local
123 if (samgrProxy == nullptr) { in EventRegister()
132 … ret = samgrProxy->SubscribeSystemAbility((int32_t)WIFI_DEVICE_ABILITY_ID, mSaStatusListener); in EventRegister()
133 samgrProxy->SubscribeSystemAbility((int32_t)WIFI_SCAN_ABILITY_ID, mSaStatusListener); in EventRegister()
134 samgrProxy->SubscribeSystemAbility((int32_t)WIFI_HOTSPOT_ABILITY_ID, mSaStatusListener); in EventRegister()
135 samgrProxy->SubscribeSystemAbility((int32_t)WIFI_P2P_ABILITY_ID, mSaStatusListener); in EventRegister()
/foundation/bundlemanager/bundle_framework/interfaces/kits/native/bundle/src/
Dbundle_mgr_proxy_native.cpp33 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetBmsProxy() local
34 if (samgrProxy == nullptr) { in GetBmsProxy()
38 return samgrProxy->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBmsProxy()
/foundation/ability/dmsfwk/services/dtbabilitymgr/src/
Ddistributed_ability_manager_client.cpp34 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetContinuationMgrService() local
35 if (samgrProxy == nullptr) { in GetContinuationMgrService()
39 sptr<IRemoteObject> remoteObj = samgrProxy->GetSystemAbility(CONTINUATION_MANAGER_SA_ID); in GetContinuationMgrService()
Ddistributed_ability_manager_service.cpp377 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in QueryExtensionAbilityInfo() local
378 if (samgrProxy == nullptr) { in QueryExtensionAbilityInfo()
382 sptr<IRemoteObject> bmsProxy = samgrProxy->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in QueryExtensionAbilityInfo()
/foundation/communication/wifi/wifi/frameworks/native/src/
Dwifi_sa_event.cpp67 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in Init() local
68 int32_t ret = samgrProxy->SubscribeSystemAbility(systemAbilityId, this); in Init()
/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core/src/
Ddistributed_device_profile_client.cpp65 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadDeviceProfileService() local
66 if (samgrProxy == nullptr) { in LoadDeviceProfileService()
71 int32_t ret = samgrProxy->LoadSystemAbility(DISTRIBUTED_DEVICE_PROFILE_SA_ID, loadCallback); in LoadDeviceProfileService()
275 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetDeviceProfileService() local
276 if (samgrProxy == nullptr) { in GetDeviceProfileService()
280 auto object = samgrProxy->CheckSystemAbility(DISTRIBUTED_DEVICE_PROFILE_SA_ID); in GetDeviceProfileService()
/foundation/window/window_manager/window_scene/session_manager/src/
Ddistributed_client.cpp32 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetDmsProxy() local
33 if (samgrProxy == nullptr) { in GetDmsProxy()
37 return samgrProxy->CheckSystemAbility(DISTRIBUTED_SCHED_SA_ID); in GetDmsProxy()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/bundle/
Dbundle_manager_internal.cpp288 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in GetBundleManager() local
289 if (samgrProxy == nullptr) { in GetBundleManager()
292 sptr<IRemoteObject> bmsProxy = samgrProxy->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleManager()
302 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in GetDistributedBundleManager() local
303 if (samgrProxy == nullptr) { in GetDistributedBundleManager()
307 …sptr<IRemoteObject> dbmsProxy = samgrProxy->GetSystemAbility(DISTRIBUTED_BUNDLE_MGR_SERVICE_SYS_AB… in GetDistributedBundleManager()
/foundation/resourceschedule/memmgr/interface/innerkits/src/
Dmem_mgr_client.cpp218 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetMemMgrService() local
219 if (samgrProxy == nullptr) { in GetMemMgrService()
223 auto object = samgrProxy->GetSystemAbility(MEMORY_MANAGER_SA_ID); in GetMemMgrService()
/foundation/deviceprofile/device_info_manager/services/core/src/
Ddistributed_device_profile_service.cpp176 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in DelayUnloadTask() local
177 if (samgrProxy == nullptr) { in DelayUnloadTask()
181 int32_t ret = samgrProxy->UnloadSystemAbility(DISTRIBUTED_DEVICE_PROFILE_SA_ID); in DelayUnloadTask()
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/
Dsystem_ability_mgr_proxy_test.cpp889 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… variable
891 int32_t result = samgrProxy->CancelUnloadSystemAbility(said);
903 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… variable
907 int32_t result = samgrProxy->GetOnDemandPolicy(systemAbilityId, type, abilityOnDemandEvents);
919 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… variable
923 int32_t result = samgrProxy->UpdateOnDemandPolicy(systemAbilityId, type, abilityOnDemandEvents);
935 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… variable
938 int32_t ret = samgrProxy->GetOnDemandReasonExtraData(EXTRA_DATA_ID, extraDataParcel);
950 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… variable
951 int32_t ret = samgrProxy->SubscribeSystemProcess(nullptr);
/foundation/communication/bluetooth/frameworks/inner/src/
Dbluetooth_load_system_ability.cpp57 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in SubScribeBluetoothSystemAbility() local
58 if (samgrProxy == nullptr) { in SubScribeBluetoothSystemAbility()
62 int32_t ret = samgrProxy->SubscribeSystemAbility(BLUETOOTH_HOST_SYS_ABILITY_ID, this); in SubScribeBluetoothSystemAbility()
Dbluetooth_host.cpp367 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitBluetoothHostProxy() local
368 if (samgrProxy == nullptr) { in InitBluetoothHostProxy()
372 auto object = samgrProxy->CheckSystemAbility(BLUETOOTH_HOST_SYS_ABILITY_ID); in InitBluetoothHostProxy()
427 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadBluetoothHostService() local
428 if (samgrProxy == nullptr) { in LoadBluetoothHostService()
432 auto object = samgrProxy->CheckSystemAbility(BLUETOOTH_HOST_SYS_ABILITY_ID); in LoadBluetoothHostService()
447 int32_t ret = samgrProxy->LoadSystemAbility(BLUETOOTH_HOST_SYS_ABILITY_ID, loadCallback); in LoadBluetoothHostService()
547 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in Init() local
548 if (samgrProxy == nullptr) { in Init()
552 auto object = samgrProxy->CheckSystemAbility(BLUETOOTH_HOST_SYS_ABILITY_ID); in Init()
/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/
Dpasteboard_client.cpp303 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in ConnectService() local
304 if (samgrProxy == nullptr) { in ConnectService()
309 sptr<IRemoteObject> remoteObject = samgrProxy->CheckSystemAbility(PASTEBOARD_SERVICE_ID); in ConnectService()
325 int32_t ret = samgrProxy->LoadSystemAbility(PASTEBOARD_SERVICE_ID, loadCallback); in ConnectService()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/mission/
Ddistributed_data_storage.cpp87 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in WaitKvDataService() local
88 if (samgrProxy == nullptr) { in WaitKvDataService()
94 auto kvDataSvr = samgrProxy->CheckSystemAbility(DISTRIBUTED_KV_DATA_SERVICE_ABILITY_ID); in WaitKvDataService()
/foundation/deviceprofile/device_info_manager/services/core/src/dbstorage/
Ddevice_profile_storage_manager.cpp105 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in WaitKvDataService() local
106 if (samgrProxy == nullptr) { in WaitKvDataService()
112 auto kvDataSvr = samgrProxy->CheckSystemAbility(DISTRIBUTED_KV_DATA_SERVICE_ABILITY_ID); in WaitKvDataService()
/foundation/ability/ability_runtime/frameworks/native/ability/native/distributed_ability_runtime/
Ddistributed_client.cpp32 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetDmsProxy() local
33 if (samgrProxy == nullptr) { in GetDmsProxy()
37 return samgrProxy->CheckSystemAbility(DISTRIBUTED_SCHED_SA_ID); in GetDmsProxy()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
Dhfp_ag_system_interface.cpp49 …sptr<ISystemAbilityManager> samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilit… in Start() local
50 if (samgrProxy == nullptr) { in Start()
55 …int32_t ret = samgrProxy->SubscribeSystemAbility(TELEPHONY_CALL_MANAGER_SYS_ABILITY_ID, statusChan… in Start()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/
Dsta_state_machine.cpp112 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in ~StaStateMachine() local
113 if (samgrProxy != NULL && statusChangeListener_ != NULL) { in ~StaStateMachine()
114 int32_t ret = samgrProxy->UnSubscribeSystemAbility(COMM_NET_CONN_MANAGER_SYS_ABILITY_ID, in ~StaStateMachine()
2416 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SubscribeSystemAbilityChanged() local
2418 if (samgrProxy == nullptr || statusChangeListener_ == nullptr) { in SubscribeSystemAbilityChanged()
2422 …int32_t ret = samgrProxy->SubscribeSystemAbility(COMM_NET_CONN_MANAGER_SYS_ABILITY_ID, statusChang… in SubscribeSystemAbilityChanged()