Home
last modified time | relevance | path

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

12

/base/useriam/user_auth_framework/frameworks/native/client/src/
Dipc_client_utils.cpp29 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetRemoteObject() local
30 if (!sam) { in GetRemoteObject()
35 obj = sam->CheckSystemAbility(saId); in GetRemoteObject()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_manager_client.cpp68 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in Connect() local
69 if (sam == nullptr) { in Connect()
72 sptr<IRemoteObject> remoteObject = sam->CheckSystemAbility(DFX_SYS_HIDUMPER_ABILITY_ID); in Connect()
74 ErrCode retStart = OnDemandStart(sam, remoteObject); in Connect()
132 ErrCode DumpManagerClient::OnDemandStart(sptr<ISystemAbilityManager> sam, sptr<IRemoteObject> &remo… in OnDemandStart() argument
135 int32_t result = sam->LoadSystemAbility(DFX_SYS_HIDUMPER_ABILITY_ID, loadCallback); in OnDemandStart()
148 remoteObject = sam->CheckSystemAbility(DFX_SYS_HIDUMPER_ABILITY_ID); in OnDemandStart()
Ddump_manager_cpu_client.cpp56 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in Connect() local
57 if (sam == nullptr) { in Connect()
61 sptr<IRemoteObject> remoteObject = sam->CheckSystemAbility(DFX_SYS_HIDUMPER_CPU_ABILITY_ID); in Connect()
/base/powermgr/powermgr_lite/services/src/
Dscreen_saver_feature.c73 SamgrLite *sam = SAMGR_GetInstance(); in Init() local
74 if (sam == NULL) { in Init()
84 BOOL result = sam->RegisterFeature(POWER_MANAGE_SERVICE, (Feature *)feature); in Init()
89 …result = sam->RegisterFeatureApi(POWER_MANAGE_SERVICE, POWER_SCREEN_SAVER_FEATURE, GET_IUNKNOWN(*f… in Init()
Dpower_manage_feature.c102 SamgrLite *sam = SAMGR_GetInstance(); in Init() local
103 if (sam == NULL) { in Init()
113 BOOL result = sam->RegisterFeature(POWER_MANAGE_SERVICE, (Feature *)feature); in Init()
118 …result = sam->RegisterFeatureApi(POWER_MANAGE_SERVICE, POWER_MANAGE_FEATURE, GET_IUNKNOWN(*feature… in Init()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dsa_dumper.cpp151 DumpStatus SADumper::GetData(const std::string &name, const sptr<ISystemAbilityManager> &sam) in GetData() argument
158 sptr<IRemoteObject> sa = sam->CheckSystemAbility(id); in GetData()
182 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in Execute() local
183 if (sam == nullptr) { in Execute()
188 U16StringVector vct = sam->ListSystemAbilities(); in Execute()
192 if (GetData(names_[i], sam) != DumpStatus::DUMP_OK) { in Execute()
/base/security/access_token/interfaces/innerkits/tokensync/src/
Dtoken_sync_manager_client.cpp77 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetProxy() local
78 if (sam == nullptr) { in GetProxy()
83 auto tokensyncSa = sam->GetSystemAbility(ITokenSyncManager::SA_ID_TOKENSYNC_MANAGER_SERVICE); in GetProxy()
/base/web/webview/ohos_adapter/datashare_adapter/src/
Ddatashare_adapter_impl.cpp44 auto sam = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in OpenDataShareUriForRead() local
45 if (sam == nullptr) { in OpenDataShareUriForRead()
49 auto remoteObj = sam->GetSystemAbility(OHOS::STORAGE_MANAGER_MANAGER_ID); in OpenDataShareUriForRead()
/base/security/security_component_manager/interfaces/inner_api/security_component/src/
Dsec_comp_client.cpp122 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in StartLoadSecCompSa() local
123 if (sam == nullptr) { in StartLoadSecCompSa()
134 int32_t result = sam->LoadSystemAbility(SA_ID_SECURITY_COMPONENT_SERVICE, in StartLoadSecCompSa()
146 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in TryToGetSecCompSa() local
147 if (sam == nullptr) { in TryToGetSecCompSa()
152 auto secCompSa = sam->CheckSystemAbility(SA_ID_SECURITY_COMPONENT_SERVICE); in TryToGetSecCompSa()
/base/security/access_token/services/privacymanager/src/sensitive/window_manager/
Dwindow_manager_privacy_client.cpp66 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitProxy() local
67 if (sam == nullptr) { in InitProxy()
71 auto windowManagerSa = sam->GetSystemAbility(WINDOW_MANAGER_SERVICE_ID); in InitProxy()
/base/security/access_token/services/privacymanager/src/sensitive/ability_manager/
Dability_manager_privacy_client.cpp57 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitProxy() local
58 if (sam == nullptr) { in InitProxy()
62 auto abilityManagerSa = sam->GetSystemAbility(ABILITY_MGR_SERVICE_ID); in InitProxy()
/base/security/access_token/services/privacymanager/src/sensitive/camera_manager/
Dcamera_manager_privacy_client.cpp76 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitProxy() local
77 if (sam == nullptr) { in InitProxy()
81 auto cameraManagerSa = sam->GetSystemAbility(CAMERA_SERVICE_ID); in InitProxy()
/base/hiviewdfx/hidumper/test/unittest/common/
Dhidumper_cpu_service_test.cpp63 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
64 ASSERT_TRUE(sam != nullptr) << "HidumperCpuServiceTest001 fail to get GetSystemAbilityManager";
65 sptr<IRemoteObject> remoteObject = sam->CheckSystemAbility(DFX_SYS_HIDUMPER_CPU_ABILITY_ID);
Dhidumper_service_test.cpp51 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
52 ASSERT_TRUE(sam != nullptr) << "HidumperServiceTest001 fail to get GetSystemAbilityManager";
54 int32_t result = sam->LoadSystemAbility(DFX_SYS_HIDUMPER_ABILITY_ID, loadCallback);
/base/powermgr/power_manager/frameworks/native/
Dclient_lifecycle.cpp48 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in Connect() local
49 if (sam == nullptr) { in Connect()
53 sptr<IRemoteObject> remoteObject_ = sam->CheckSystemAbility(POWER_MANAGER_SERVICE_ID); in Connect()
/base/powermgr/thermal_manager/test/common/src/
Dmock_thermal_mgr_client.cpp45 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in Connect() local
46 if (sam == nullptr) { in Connect()
51 sptr<IRemoteObject> remoteObject_ = sam->CheckSystemAbility(POWER_MANAGER_THERMAL_SERVICE_ID); in Connect()
/base/security/access_token/services/privacymanager/src/sensitive/audio_manager/
Daudio_manager_privacy_client.cpp85 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitProxy() local
86 if (sam == nullptr) { in InitProxy()
90 auto audioManagerSa = sam->GetSystemAbility(AUDIO_POLICY_SERVICE_ID); in InitProxy()
/base/security/access_token/services/privacymanager/src/sensitive/app_manager/
Dapp_manager_privacy_client.cpp84 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in InitProxy() local
85 if (sam == nullptr) { in InitProxy()
89 auto appManagerSa = sam->GetSystemAbility(APP_MGR_SERVICE_ID); in InitProxy()
/base/useriam/pin_auth/frameworks/client/src/
Dpinauth_register_impl.cpp71 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in GetProxy() local
72 if (sam == nullptr) { in GetProxy()
76 sptr<IRemoteObject> obj = sam->CheckSystemAbility(SUBSYS_USERIAM_SYS_ABILITY_PINAUTH); in GetProxy()
/base/telephony/state_registry/frameworks/native/observer/src/
Dtelephony_observer_client.cpp37 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in GetProxy() local
38 if (sam == nullptr) { in GetProxy()
42 sptr<IRemoteObject> obj = sam->CheckSystemAbility(TELEPHONY_STATE_REGISTRY_SYS_ABILITY_ID); in GetProxy()
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_service_test.cpp74 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
75 ASSERT_TRUE(sam != nullptr) << "StatsServiceTest_001 fail to get GetSystemAbilityManager";
76 … sptr<IRemoteObject> remoteObject_ = sam->CheckSystemAbility(POWER_MANAGER_BATT_STATS_SERVICE_ID);
/base/location/services/location_locator/locator/source/
Dsubability_common.cpp116 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… in Enable() local
117 if (sam == nullptr) { in Enable()
124 if (sam->CheckSystemAbility(saId) == nullptr) { in Enable()
125sam->AddSystemAbility(saId, ability, ISystemAbilityManager::SAExtraProp(true, 1, capability_, u"")… in Enable()
129 if (sam->CheckSystemAbility(saId) != nullptr) { in Enable()
130 sam->RemoveSystemAbility(saId); in Enable()
/base/startup/init/device_info/
Ddevice_info_kits.cpp44 auto sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadDeviceInfoSa() local
45 DINFO_CHECK(sam != nullptr, return, "GetSystemAbilityManager return null"); in LoadDeviceInfoSa()
50 int32_t ret = sam->LoadSystemAbility(SYSPARAM_DEVICE_SERVICE_ID, deviceInfoLoad); in LoadDeviceInfoSa()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/test/unittest/common/
Dsys_event_service_ohos_test.cpp257 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
258 if (sam == nullptr) {
262 sptr<IRemoteObject> stub = sam->CheckSystemAbility(SYS_EVENT_SERVICE_ID);
298 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
299 if (sam == nullptr) {
303 sptr<IRemoteObject> stub = sam->CheckSystemAbility(SYS_EVENT_SERVICE_ID);
336 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
337 if (sam == nullptr) {
341 sptr<IRemoteObject> stub = sam->CheckSystemAbility(SYS_EVENT_SERVICE_ID);
374 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
[all …]
/base/powermgr/power_manager/test/unittest/src/
Dpower_mgr_client_native_test.cpp55 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… variable
56 wptr<IRemoteObject> remoteObject_ = sam->CheckSystemAbility(POWER_MANAGER_SERVICE_ID);

12