Home
last modified time | relevance | path

Searched refs:samgr (Results 1 - 23 of 23) sorted by relevance

/test/testfwk/arkxtest/testserver/test/unittest/
H A Dtest_server_client_test.cpp39 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 Dstart_test_server.cpp89 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 Dsamgr_maintenance.c23 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 Ddriver_extension_manager_client_test.cpp90 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 Ddriver_pkg_manager_test.cpp61 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 Dpkg_db_helper_test.cpp116 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 Dtest_server_client.cpp100 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 Ddevattest_client.cpp77 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 Dtest_server_service.cpp168 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 Dtest.cpp360 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 Dtaskpool_notask_func_test.c202 LITE_TEST_SUIT(distributedschedule, samgr, TaskPoolNoTaskFuncTestSuite);
H A Diunknown_func_test.c123 LITE_TEST_SUIT(test, samgr, IUnknownTestSuite);
H A Dservice_func_test.c118 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 Dfeature_func_test.c131 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 Ddefaultfeatureapi_func_test.c70 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 Dcommon_func_test.c47 LITE_TEST_SUIT(test, samgr, CommonTestSuite);
H A Dsendsharerequest_func_test.c356 LITE_TEST_SUIT(test, samgr, SendSharedRequestTestSuite);
H A Dsendresponse_func_test.c334 LITE_TEST_SUIT(test, samgr, SendResponseTestSuite);
H A Dfeatureapi_func_test.c114 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 Dtaskpool_singletask_func_test.c322 LITE_TEST_SUIT(distributedschedule, samgr, SingleTaskFuncTestSuite);
H A Dsendrequest_func_test.c392 LITE_TEST_SUIT(test, samgr, SendRequestTestSuite);
/test/testfwk/arkxtest/uitest/server/
H A Dsystem_ui_controller.cpp927 LOG_E("Get samgr failed"); in GetHidumperInfo()
/test/xts/acts/communication/dsoftbus/rpc/entry/src/ohosTest/js/test/
H A DRpcClientJsunit.test.js14627 let samgr = rpc.IPCSkeleton.getContextObject();
14628 expect(samgr != null).assertTrue();

Completed in 35 milliseconds