/test/testfwk/arkxtest/testserver/test/unittest/ |
H A D | test_server_client_test.cpp | 39 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST() local 42 EXPECT_NE(samgr->CheckSystemAbility(SYSTEM_ABILITY_ID), nullptr); in HWTEST() 43 samgr->UnloadSystemAbility(SYSTEM_ABILITY_ID); in HWTEST() 47 void load_test_server_test(sptr<ISystemAbilityManager> samgr) in load_test_server_test() argument 52 EXPECT_NE(samgr->CheckSystemAbility(SYSTEM_ABILITY_ID), nullptr); in load_test_server_test() 57 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWMTEST() local 58 EXPECT_EQ(samgr->CheckSystemAbility(SYSTEM_ABILITY_ID), nullptr); in HWMTEST() 59 load_test_server_test(samgr); in HWMTEST() 60 EXPECT_NE(samgr->CheckSystemAbility(SYSTEM_ABILITY_ID), nullptr); in HWMTEST() 61 samgr in HWMTEST() [all...] |
H A D | start_test_server.cpp | 89 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadTestServer() local 90 if (samgr == nullptr) { in LoadTestServer() 93 auto object = samgr->CheckSystemAbility(systemAbilityId); in LoadTestServer() 99 int32_t ret = samgr->LoadSystemAbility(systemAbilityId, testServerLoadCallback); in LoadTestServer()
|
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/utils/ |
H A D | samgr_maintenance.c | 23 SamgrLiteImpl *samgr = GET_OBJECT(SAMGR_GetInstance(), SamgrLiteImpl, vtbl);
in SAMGR_PrintServices() local 24 int16 num = VECTOR_Num(&samgr->services);
in SAMGR_PrintServices() 30 MUTEX_Lock(samgr->mutex);
in SAMGR_PrintServices() 31 int16 size = VECTOR_Size(&(samgr->services));
in SAMGR_PrintServices() 34 ServiceImpl *impl = VECTOR_At(&(samgr->services), i);
in SAMGR_PrintServices() 39 MUTEX_Unlock(samgr->mutex);
in SAMGR_PrintServices() 60 MUTEX_Lock(samgr->mutex);
in SAMGR_PrintServices() 62 MUTEX_Unlock(samgr->mutex);
in SAMGR_PrintServices()
|
/test/xts/hats/hdf/external_device_manager/driver_extension_manager_client_test/ |
H A D | driver_extension_manager_client_test.cpp | 90 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager();
in SetUpTestCase() local 91 if (samgr == nullptr) {
in SetUpTestCase() 92 EDM_LOGE(EDM_MODULE_TEST, "%{public}s get samgr failed", __func__);
in SetUpTestCase() 97 auto saObj = samgr->CheckSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID);
in SetUpTestCase() 105 int32_t ret = samgr->LoadSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID, loadCallback_);
in SetUpTestCase() 119 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager();
in TearDownTestCase() local 120 if (samgr == nullptr) {
in TearDownTestCase() 121 EDM_LOGE(EDM_MODULE_TEST, "%{public}s get samgr failed", __func__);
in TearDownTestCase() 125 int32_t ret = samgr->UnloadSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID);
in TearDownTestCase() 205 sptr<ISystemAbilityManager> samgr in HWTEST_F() local [all...] |
/test/xts/hats/hdf/external_device_manager/drivers_pkg_manager_test/ |
H A D | driver_pkg_manager_test.cpp | 61 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SetUpTestCase() local 62 if (samgr == nullptr) { in SetUpTestCase() 63 EDM_LOGE(EDM_MODULE_TEST, "%{public}s get samgr failed", __func__); in SetUpTestCase() 67 auto saObj = samgr->CheckSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID); in SetUpTestCase() 76 int32_t ret = samgr->LoadSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID, loadCallback_); in SetUpTestCase() 94 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in TearDownTestCase() local 95 if (samgr == nullptr) { in TearDownTestCase() 96 EDM_LOGE(EDM_MODULE_TEST, "%{public}s get samgr failed", __func__); in TearDownTestCase() 100 int32_t ret = samgr->UnloadSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID); in TearDownTestCase()
|
H A D | pkg_db_helper_test.cpp | 116 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadSaService() local 117 if (samgr == nullptr) { in LoadSaService() 118 EDM_LOGE(EDM_MODULE_TEST, "%{public}s get samgr failed", __func__); in LoadSaService() 122 auto saObj = samgr->CheckSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID); in LoadSaService() 131 ret = samgr->LoadSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID, loadCallback_); in LoadSaService() 154 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in UnLoadSaService() local 155 if (samgr == nullptr) { in UnLoadSaService() 156 EDM_LOGE(EDM_MODULE_TEST, "%{public}s get samgr failed", __func__); in UnLoadSaService() 160 int32_t ret = samgr->UnloadSystemAbility(HDF_EXTERNAL_DEVICE_MANAGER_SA_ID); in UnLoadSaService()
|
/test/testfwk/arkxtest/testserver/src/client/ |
H A D | test_server_client.cpp | 100 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadTestServer() local 101 if (samgr == nullptr) { in LoadTestServer() 105 auto object = samgr->CheckSystemAbility(systemAbilityId); in LoadTestServer() 112 int32_t ret = samgr->LoadSystemAbility(systemAbilityId, testServerLoadCallback); in LoadTestServer()
|
/test/xts/device_attest/interfaces/innerkits/native_cpp/src/ |
H A D | devattest_client.cpp | 77 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in LoadDevAttestProfile() local 78 if (samgr == nullptr) { in LoadDevAttestProfile() 82 int32_t ret = samgr->LoadSystemAbility(DevAttestInterface::SA_ID_DEVICE_ATTEST_SERVICE, loadCallback); in LoadDevAttestProfile()
|
/test/testfwk/arkxtest/testserver/src/service/ |
H A D | test_server_service.cpp | 168 sptr<ISystemAbilityManager> samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in RemoveTestServer() local 169 if (samgr == nullptr) { in RemoveTestServer() 173 auto res = samgr->UnloadSystemAbility(TEST_SERVER_SA_ID); in RemoveTestServer()
|
/test/xts/dcts/distributedhardware/distributedscreentest/ |
H A D | test.cpp | 360 auto samgr = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in SaTest() local 361 if (samgr == nullptr) { in SaTest() 365 auto object = samgr->CheckSystemAbility(4807); in SaTest()
|
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/ |
H A D | taskpool_notask_func_test.c | 202 LITE_TEST_SUIT(distributedschedule, samgr, TaskPoolNoTaskFuncTestSuite);
|
H A D | iunknown_func_test.c | 123 LITE_TEST_SUIT(test, samgr, IUnknownTestSuite);
|
H A D | service_func_test.c | 118 LITE_TEST_SUIT(test, samgr, ServiceTestSuite);
157 * @tc.name : Service which already exist in samgr failed to register
178 // when unregist service samgr will return the target service
198 * @tc.name : Service which does not exist in samgr failed to unregister
248 // RegisterService and unregister service over and over again, if there is memory leak samgr will crash
|
H A D | feature_func_test.c | 131 LITE_TEST_SUIT(test, samgr, FeatureTestSuite);
197 * @tc.name : Feature failed to register if the same feature name already exist in samgr
329 // RegisterService and unregister feature over and over again, if there is memory leak samgr will crash
|
H A D | defaultfeatureapi_func_test.c | 70 LITE_TEST_SUIT(test, samgr, DefaultFeatureApiTestSuite);
259 // RegisterService and unregister default api over and over again, if there is memory leak samgr will crash
|
H A D | common_func_test.c | 47 LITE_TEST_SUIT(test, samgr, CommonTestSuite);
|
H A D | sendsharerequest_func_test.c | 356 LITE_TEST_SUIT(test, samgr, SendSharedRequestTestSuite);
|
H A D | sendresponse_func_test.c | 334 LITE_TEST_SUIT(test, samgr, SendResponseTestSuite);
|
H A D | featureapi_func_test.c | 114 LITE_TEST_SUIT(test, samgr, FeatureApiTestSuite);
494 // RegisterService and unregister feature api over and over again, if there is memory leak samgr will crash
|
H A D | taskpool_singletask_func_test.c | 322 LITE_TEST_SUIT(distributedschedule, samgr, SingleTaskFuncTestSuite);
|
H A D | sendrequest_func_test.c | 392 LITE_TEST_SUIT(test, samgr, SendRequestTestSuite);
|
/test/testfwk/arkxtest/uitest/server/ |
H A D | system_ui_controller.cpp | 927 LOG_E("Get samgr failed"); in GetHidumperInfo()
|
/test/xts/acts/communication/dsoftbus/rpc/entry/src/ohosTest/js/test/ |
H A D | RpcClientJsunit.test.js | 14627 let samgr = rpc.IPCSkeleton.getContextObject();
14628 expect(samgr != null).assertTrue();
|