Home
last modified time | relevance | path

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

1234567

/base/startup/init/device_info/
Ddevice_info_load.cpp27 void DeviceInfoLoad::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, in OnLoadSystemAbilitySuccess() argument
30 DINFO_CHECK(systemAbilityId == SYSPARAM_DEVICE_SERVICE_ID, return, in OnLoadSystemAbilitySuccess()
31 "start systemabilityId is not deviceinfo! %d", systemAbilityId); in OnLoadSystemAbilitySuccess()
34 DINFO_LOGI("OnLoadSystemAbilitySuccess start systemAbilityId: %d success!", systemAbilityId); in OnLoadSystemAbilitySuccess()
38 void DeviceInfoLoad::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
40 DINFO_CHECK(systemAbilityId == SYSPARAM_DEVICE_SERVICE_ID, return, in OnLoadSystemAbilityFail()
41 "start systemabilityId is not deviceinfo! %d", systemAbilityId); in OnLoadSystemAbilityFail()
43 DINFO_LOGI("OnLoadSystemAbilityFail systemAbilityId: %d failed.", systemAbilityId); in OnLoadSystemAbilityFail()
/base/location/test/mock/include/
Dmock_if_system_ability_manager.h29 MOCK_METHOD(sptr<IRemoteObject>, GetSystemAbility, (int32_t systemAbilityId));
30 MOCK_METHOD(sptr<IRemoteObject>, CheckSystemAbility, (int32_t systemAbilityId));
31 MOCK_METHOD(int32_t, RemoveSystemAbility, (int32_t systemAbilityId));
32 MOCK_METHOD(int32_t, SubscribeSystemAbility, (int32_t systemAbilityId,
34 MOCK_METHOD(int32_t, UnSubscribeSystemAbility, (int32_t systemAbilityId,
36 …MOCK_METHOD(sptr<IRemoteObject>, GetSystemAbility, (int32_t systemAbilityId, const std::string& de…
37 …MOCK_METHOD(sptr<IRemoteObject>, CheckSystemAbility, (int32_t systemAbilityId, const std::string& …
38 MOCK_METHOD(int32_t, AddOnDemandSystemAbilityInfo, (int32_t systemAbilityId,
41 MOCK_METHOD(sptr<IRemoteObject>, CheckSystemAbility, (int32_t systemAbilityId, bool& isExist));
42 …MOCK_METHOD(int32_t, AddSystemAbility, (int32_t systemAbilityId, const sptr<IRemoteObject>& abilit…
[all …]
/base/location/frameworks/location_common/common/source/
Dlocation_sa_load_manager.cpp35 LocationErrCode LocationSaLoadManager::LoadLocationSa(int32_t systemAbilityId) in LoadLocationSa() argument
37 …GI(LOCATOR, "%{public}s enter, systemAbilityId = [%{public}d] loading", __func__, systemAbilityId); in LoadLocationSa()
47 int32_t ret = samgr->LoadSystemAbility(systemAbilityId, locationSaLoadCallback); in LoadLocationSa()
50 __func__, systemAbilityId, ret); in LoadLocationSa()
53 return WaitLoadStateChange(systemAbilityId); in LoadLocationSa()
62 LocationErrCode LocationSaLoadManager::WaitLoadStateChange(int32_t systemAbilityId) in WaitLoadStateChange() argument
69 LBSLOGE(LOCATOR_STANDARD, "locator sa [%{public}d] start time out.", systemAbilityId); in WaitLoadStateChange()
75 LocationErrCode LocationSaLoadManager::UnloadLocationSa(int32_t systemAbilityId) in UnloadLocationSa() argument
77 …(LOCATOR, "%{public}s enter, systemAbilityId = [%{public}d] unloading", __func__, systemAbilityId); in UnloadLocationSa()
84 int32_t ret = samgr->UnloadSystemAbility(systemAbilityId); in UnloadLocationSa()
[all …]
/base/customization/enterprise_device_management/test/unittest/mock/src/
Dedm_sys_manager_mock.cpp25 sptr<IRemoteObject> EdmSysManager::GetRemoteObjectOfSystemAbility(int32_t systemAbilityId) in GetRemoteObjectOfSystemAbility() argument
29 (remoteServiceMap_[systemAbilityId] == nullptr); in GetRemoteObjectOfSystemAbility()
30 if (remoteServiceMap_[systemAbilityId] == nullptr) { in GetRemoteObjectOfSystemAbility()
37 auto object = sysAbilityMgr->GetSystemAbility(systemAbilityId); in GetRemoteObjectOfSystemAbility()
42 remoteServiceMap_[systemAbilityId] = object; in GetRemoteObjectOfSystemAbility()
44 return remoteServiceMap_[systemAbilityId]; in GetRemoteObjectOfSystemAbility()
47 void EdmSysManager::RegisterSystemAbilityOfRemoteObject(int32_t systemAbilityId, sptr<IRemoteObject… in RegisterSystemAbilityOfRemoteObject() argument
50 remoteServiceMap_[systemAbilityId] = object; in RegisterSystemAbilityOfRemoteObject()
53 void EdmSysManager::UnregisterSystemAbilityOfRemoteObject(int32_t systemAbilityId) in UnregisterSystemAbilityOfRemoteObject() argument
56 remoteServiceMap_.erase(systemAbilityId); in UnregisterSystemAbilityOfRemoteObject()
/base/security/access_token/services/test/mock/aafwk/
Dmock_service_registry.cpp62 sptr<IRemoteObject> SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId) in GetSystemAbility() argument
65 GTEST_LOG_(INFO) << "GetSystemAbility(" << systemAbilityId << "): return nullptr"; in GetSystemAbility()
69 switch (systemAbilityId) { in GetSystemAbility()
72 … GTEST_LOG_(INFO) << "GetSystemAbility(" << systemAbilityId << "): return MockAppMgrService"; in GetSystemAbility()
78 GTEST_LOG_(INFO) << "This service is not dummy!!!!" << systemAbilityId; in GetSystemAbility()
84 sptr<IRemoteObject> SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId, in GetSystemAbility() argument
87 return GetSystemAbility(systemAbilityId); in GetSystemAbility()
95 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId) in CheckSystemAbility() argument
100 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, const st… in CheckSystemAbility() argument
105 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, bool& is… in CheckSystemAbility() argument
[all …]
/base/account/os_account/services/accountmgr/test/mock/src/
Dmock_service_registry.cpp35 sptr<IRemoteObject> SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId) in GetSystemAbility() argument
37 GTEST_LOG_(INFO) << "GetSystemAbility(" << systemAbilityId << "): return nullptr"; in GetSystemAbility()
41 sptr<IRemoteObject> SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId, in GetSystemAbility() argument
44 return GetSystemAbility(systemAbilityId); in GetSystemAbility()
52 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId) in CheckSystemAbility() argument
57 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, const st… in CheckSystemAbility() argument
62 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, bool& is… in CheckSystemAbility() argument
67 int32_t SystemAbilityManagerProxy::AddOnDemandSystemAbilityInfo(int32_t systemAbilityId, in AddOnDemandSystemAbilityInfo() argument
78 int32_t SystemAbilityManagerProxy::RemoveSystemAbility(int32_t systemAbilityId) in RemoveSystemAbility() argument
90 int32_t SystemAbilityManagerProxy::SubscribeSystemAbility(int32_t systemAbilityId, in SubscribeSystemAbility() argument
[all …]
/base/location/test/mock/src/
Dmock_service_registry.cpp38 sptr<IRemoteObject> SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId) in GetSystemAbility() argument
44 sptr<IRemoteObject> SystemAbilityManagerProxy::GetSystemAbility(int32_t systemAbilityId, in GetSystemAbility() argument
48 return GetSystemAbility(systemAbilityId); in GetSystemAbility()
57 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId) in CheckSystemAbility() argument
60 return GetSystemAbility(systemAbilityId); in CheckSystemAbility()
63 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, const st… in CheckSystemAbility() argument
66 return GetSystemAbility(systemAbilityId); in CheckSystemAbility()
69 sptr<IRemoteObject> SystemAbilityManagerProxy::CheckSystemAbility(int32_t systemAbilityId, bool& is… in CheckSystemAbility() argument
72 return GetSystemAbility(systemAbilityId); in CheckSystemAbility()
75 int32_t SystemAbilityManagerProxy::AddOnDemandSystemAbilityInfo(int32_t systemAbilityId, in AddOnDemandSystemAbilityInfo() argument
[all …]
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/
Dsys_installer_load_callback.cpp25 void SysInstallerLoadCallback::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, in OnLoadSystemAbilitySuccess() argument
28 …LOG(INFO) << "OnLoadSystemAbilitySuccess systemAbilityId: " << systemAbilityId << " IRmoteObject r… in OnLoadSystemAbilitySuccess()
30 if (systemAbilityId != SYS_INSTALLER_DISTRIBUTED_SERVICE_ID) { in OnLoadSystemAbilitySuccess()
41 void SysInstallerLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
43 LOG(INFO) << "OnLoadSystemAbilityFail systemAbilityId:" << systemAbilityId; in OnLoadSystemAbilityFail()
44 if (systemAbilityId != SYS_INSTALLER_DISTRIBUTED_SERVICE_ID) { in OnLoadSystemAbilityFail()
/base/security/security_component_manager/interfaces/inner_api/security_component/src/
Dsec_comp_load_callback.cpp30 int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() argument
32 if (systemAbilityId != SA_ID_SECURITY_COMPONENT_SERVICE) { in OnLoadSystemAbilitySuccess()
43 SC_LOG_INFO(LABEL, "Start systemAbilityId: %{public}d success!", systemAbilityId); in OnLoadSystemAbilitySuccess()
48 void SecCompLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
50 if (systemAbilityId != SA_ID_SECURITY_COMPONENT_SERVICE) { in OnLoadSystemAbilityFail()
55 SC_LOG_ERROR(LABEL, "Start systemAbilityId: %{public}d failed.", systemAbilityId); in OnLoadSystemAbilityFail()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/src/
Ddlp_permission_load_callback.cpp30 int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() argument
32 if (systemAbilityId != SA_ID_DLP_PERMISSION_SERVICE) { in OnLoadSystemAbilitySuccess()
43 DLP_LOG_INFO(LABEL, "Start systemAbilityId: %{public}d success!", systemAbilityId); in OnLoadSystemAbilitySuccess()
48 void DlpPermissionLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
50 if (systemAbilityId != SA_ID_DLP_PERMISSION_SERVICE) { in OnLoadSystemAbilityFail()
55 DLP_LOG_ERROR(LABEL, "Start systemAbilityId: %{public}d failed.", systemAbilityId); in OnLoadSystemAbilityFail()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dadvanced_notification_service_ability_test.cpp42 int32_t systemAbilityId = 1; variable
44 AdvancedNotificationServiceAbility(systemAbilityId, runOnCreate);
55 int32_t systemAbilityId = 1; variable
57 AdvancedNotificationServiceAbility test(systemAbilityId, runOnCreate);
69 int32_t systemAbilityId = 1; variable
71 AdvancedNotificationServiceAbility test(systemAbilityId, runOnCreate);
/base/security/code_signature/interfaces/innerkits/local_code_sign/src/
Dlocal_code_sign_load_callback.cpp31 int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject) in OnLoadSystemAbilitySuccess() argument
34 systemAbilityId, (remoteObject != nullptr) ? "true" : "false"); in OnLoadSystemAbilitySuccess()
35 if (systemAbilityId != LOCAL_CODE_SIGN_SA_ID) { in OnLoadSystemAbilitySuccess()
46 void LocalCodeSignLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
48 … LOG_ERROR(LABEL, "load local code sign SA failed, systemAbilityId: %{public}d", systemAbilityId); in OnLoadSystemAbilityFail()
/base/customization/enterprise_device_management/interfaces/inner_api/common/src/
Dedm_load_callback.cpp23 int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject) in OnLoadSystemAbilitySuccess() argument
25 EDMLOGI("EdmLoadManager Load SA success, systemAbilityId = [%{public}d]", systemAbilityId); in OnLoadSystemAbilitySuccess()
29 void EdmLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
31 EDMLOGI("EdmLoadManager Load SA failed, systemAbilityId = [%{public}d]", systemAbilityId); in OnLoadSystemAbilityFail()
/base/location/interfaces/inner_api/include/
Dlocation_sa_load_manager.h29 …void OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) …
30 void OnLoadSystemAbilityFail(int32_t systemAbilityId) override;
37 LocationErrCode LoadLocationSa(int32_t systemAbilityId);
38 LocationErrCode UnloadLocationSa(int32_t systemAbilityId);
43 LocationErrCode WaitLoadStateChange(int32_t systemAbilityId);
/base/print/print_fwk/frameworks/innerkitsimpl/src/
Dprint_sync_load_callback.cpp25 void PrintSyncLoadCallback::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteO… in OnLoadSystemAbilitySuccess() argument
27 if (systemAbilityId != PRINT_SERVICE_ID) { in OnLoadSystemAbilitySuccess()
34 void PrintSyncLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
36 if (systemAbilityId != PRINT_SERVICE_ID) { in OnLoadSystemAbilityFail()
/base/request/request/frameworks/native/src/
Drequest_sync_load_callback.cpp25 void RequestSyncLoadCallback::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, in OnLoadSystemAbilitySuccess() argument
28 if (systemAbilityId != DOWNLOAD_SERVICE_ID) { in OnLoadSystemAbilitySuccess()
35 void RequestSyncLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
37 if (systemAbilityId != DOWNLOAD_SERVICE_ID) { in OnLoadSystemAbilityFail()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_on_demand_load.cpp27 void OnDemandLoadCallback::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteOb… in OnLoadSystemAbilitySuccess() argument
30 …dSystemAbilitySuccess systemAbilityId:%{public}d IRemoteObject result:%{public}s", systemAbilityId, in OnLoadSystemAbilitySuccess()
35 void OnDemandLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
37 …HILOGD(MODULE_CLIENT, "debug|OnLoadSystemAbilityFail systemAbilityId:%{public}d", systemAbilityId); in OnLoadSystemAbilityFail()
/base/update/sys_installer/services/module_update/service/src/
Dsys_event_service_listener.cpp26 void SysEventServiceListener::OnAddSystemAbility(int32_t systemAbilityId, const std::string &device… in OnAddSystemAbility() argument
28 if (systemAbilityId == DFX_SYS_EVENT_SERVICE_ABILITY_ID) { in OnAddSystemAbility()
34 void SysEventServiceListener::OnRemoveSystemAbility(int32_t systemAbilityId, const std::string &dev… in OnRemoveSystemAbility() argument
36 if (systemAbilityId == DFX_SYS_EVENT_SERVICE_ABILITY_ID) { in OnRemoveSystemAbility()
/base/startup/init/test/exec_test/
Dsa_service_ondemand_test.cpp29 …void OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) …
30 void OnLoadSystemAbilityFail(int32_t systemAbilityId) override;
33 void OnDemandLoadCallback::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, in OnLoadSystemAbilitySuccess() argument
36 …cout << "OnLoadSystemAbilitySuccess systemAbilityId:" << systemAbilityId << " IRemoteObject result… in OnLoadSystemAbilitySuccess()
40 void OnDemandLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) in OnLoadSystemAbilityFail() argument
42 cout << "OnLoadSystemAbilityFail systemAbilityId:" << systemAbilityId << endl; in OnLoadSystemAbilityFail()
/base/notification/common_event_service/services/test/unittest/common_event_manager_service_ability_test/
Dcommon_event_manager_service_ability_test.cpp61 int32_t systemAbilityId = 1; in HWTEST_F() local
64 std::make_shared<CommonEventManagerServiceAbility>(systemAbilityId, runOnCreate); in HWTEST_F()
79 int32_t systemAbilityId = 1; in HWTEST_F() local
82 std::make_shared<CommonEventManagerServiceAbility>(systemAbilityId, runOnCreate); in HWTEST_F()
98 int32_t systemAbilityId = 1; in HWTEST_F() local
101 std::make_shared<CommonEventManagerServiceAbility>(systemAbilityId, runOnCreate); in HWTEST_F()
/base/useriam/user_auth_framework/frameworks/native/executors/src/listener/
Dauth_executor_mgr_status_listener.cpp38 void AuthExecutorMgrStatusListener::OnAddSystemAbility(int32_t systemAbilityId, const std::string &… in OnAddSystemAbility() argument
40 if (systemAbilityId != SUBSYS_USERIAM_SYS_ABILITY_AUTHEXECUTORMGR) { in OnAddSystemAbility()
47 void AuthExecutorMgrStatusListener::OnRemoveSystemAbility(int32_t systemAbilityId, const std::strin… in OnRemoveSystemAbility() argument
49 if (systemAbilityId != SUBSYS_USERIAM_SYS_ABILITY_AUTHEXECUTORMGR) { in OnRemoveSystemAbility()
Ddriver_manager_status_listener.cpp36 void DriverManagerStatusListener::OnAddSystemAbility(int32_t systemAbilityId, const std::string &de… in OnAddSystemAbility() argument
38 if (systemAbilityId != DEVICE_SERVICE_MANAGER_SA_ID) { in OnAddSystemAbility()
46 void DriverManagerStatusListener::OnRemoveSystemAbility(int32_t systemAbilityId, const std::string … in OnRemoveSystemAbility() argument
48 if (systemAbilityId != DEVICE_SERVICE_MANAGER_SA_ID) { in OnRemoveSystemAbility()
/base/telephony/core_service/services/ims_service_interaction/src/
Dims_core_service_client.cpp192 void ImsCoreServiceClient::SystemAbilityListener::OnAddSystemAbility(int32_t systemAbilityId, in OnAddSystemAbility() argument
195 TELEPHONY_LOGI("SA:%{public}d is added!", systemAbilityId); in OnAddSystemAbility()
196 if (!CheckInputSysAbilityId(systemAbilityId)) { in OnAddSystemAbility()
197 TELEPHONY_LOGE("add SA:%{public}d is invalid!", systemAbilityId); in OnAddSystemAbility()
203 TELEPHONY_LOGI("SA:%{public}d already connected!", systemAbilityId); in OnAddSystemAbility()
210 TELEPHONY_LOGE("SA:%{public}d reconnect service failed!", systemAbilityId); in OnAddSystemAbility()
213 TELEPHONY_LOGI("SA:%{public}d reconnect service successfully!", systemAbilityId); in OnAddSystemAbility()
216 void ImsCoreServiceClient::SystemAbilityListener::OnRemoveSystemAbility(int32_t systemAbilityId, in OnRemoveSystemAbility() argument
219 TELEPHONY_LOGI("SA:%{public}d is removed!", systemAbilityId); in OnRemoveSystemAbility()
/base/customization/enterprise_device_management/test/unittest/mock/include/
Dedm_sys_manager_mock.h27 static sptr<IRemoteObject> GetRemoteObjectOfSystemAbility(int32_t systemAbilityId);
28 void RegisterSystemAbilityOfRemoteObject(int32_t systemAbilityId, sptr<IRemoteObject> object);
29 void UnregisterSystemAbilityOfRemoteObject(int32_t systemAbilityId);
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_sync_load_callback_test.cpp53 int32_t systemAbilityId = 0; variable
55 printSyncLoadCallback.OnLoadSystemAbilitySuccess(systemAbilityId, remoteObject);
56 printSyncLoadCallback.OnLoadSystemAbilityFail(systemAbilityId);

1234567