Home
last modified time | relevance | path

Searched refs:sysMgr (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/test/unittest/sys_mgr_client_test/
H A Dsys_mgr_client_test.cpp61 auto sysMgr = DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); variable
62 EXPECT_NE(sysMgr, nullptr);
64 EXPECT_EQ(sysMgr->abilityManager_, nullptr);
66 auto ret = sysMgr->GetSystemAbility(ABILITY_MGR_SERVICE_ID);
80 EXPECT_NE(sysMgr, nullptr);
83 EXPECT_NE(sysMgr->abilityManager_, nullptr);
85 auto ret = sysMgr->GetSystemAbility(ABILITY_MGR_SERVICE_ID);
99 EXPECT_NE(sysMgr, nullptr);
103 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, object);
116 EXPECT_NE(sysMgr, nullptr);
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dability_permission_test.cpp52 auto sysMgr = OHOS::DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
53 if (sysMgr == nullptr) { in SetUpTestCase()
58 sysMgr->RegisterSystemAbility(OHOS::BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, bundleObject); in SetUpTestCase()
59 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject); in SetUpTestCase()
H A Dability_context_test.cpp72 auto sysMgr = OHOS::DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
73 if (sysMgr == nullptr) { in SetUpTestCase()
78 sysMgr->RegisterSystemAbility(OHOS::BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, bundleObject); in SetUpTestCase()
79 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject); in SetUpTestCase()
/ohos5.0/base/security/device_auth/services/frameworks/src/os_account_adapter/
H A Dos_account_adapter.cpp114 OHOS::sptr<OHOS::ISystemAbilityManager> sysMgr = in UnSubscribeSystemAbility() local
116 if (sysMgr == nullptr) { in UnSubscribeSystemAbility()
120 …if (sysMgr->UnSubscribeSystemAbility(OHOS::COMMON_EVENT_SERVICE_ID, g_saSubscriber) == OHOS::ERR_O… in UnSubscribeSystemAbility()
146 OHOS::sptr<OHOS::ISystemAbilityManager> sysMgr = in SubscribeSystemAbility() local
148 if (sysMgr == nullptr) { in SubscribeSystemAbility()
156 …if (sysMgr->SubscribeSystemAbility(OHOS::COMMON_EVENT_SERVICE_ID, g_saSubscriber) == OHOS::ERR_OK)… in SubscribeSystemAbility()
/ohos5.0/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
H A Dbattery_client_death_recipient_test.cpp68 …sptr<ISystemAbilityManager> sysMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityMan… variable
69 if (sysMgr == nullptr) {
73 wptr<IRemoteObject> remoteObj = sysMgr->CheckSystemAbility(POWER_MANAGER_BATT_SERVICE_ID);
H A Dbattery_client_test.cpp707 …sptr<ISystemAbilityManager> sysMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityMan… variable
708 if (sysMgr == nullptr) {
712 wptr<IRemoteObject> remoteObj = sysMgr->CheckSystemAbility(POWER_MANAGER_SERVICE_ID);
/ohos5.0/foundation/ability/ability_runtime/test/unittest/appkit/child_main_thread_test/
H A Dchild_main_thread_test.cpp47 auto sysMgr = DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
48 if (sysMgr == nullptr) { in SetUpTestCase()
53 sysMgr->RegisterSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, bundleMgrService); in SetUpTestCase()
54 sysMgr->RegisterSystemAbility(APP_MGR_SERVICE_ID, mockAppMgrService); in SetUpTestCase()
/ohos5.0/base/powermgr/battery_manager/frameworks/native/src/
H A Dbattery_srv_client.cpp41 …sptr<ISystemAbilityManager> sysMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityMan… in Connect() local
42 if (sysMgr == nullptr) { in Connect()
46 sptr<IRemoteObject> remoteObject_ = sysMgr->CheckSystemAbility(POWER_MANAGER_BATT_SERVICE_ID); in Connect()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/child_process_manager_test/
H A Dchild_process_manager_test.cpp52 auto sysMgr = DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); in SetUpTestCase() local
53 if (sysMgr == nullptr) { in SetUpTestCase()
57 sysMgr->RegisterSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, bundleMgrService); in SetUpTestCase()
58 sysMgr->RegisterSystemAbility(APP_MGR_SERVICE_ID, mockAppMgrService); in SetUpTestCase()
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/ability_caller_fw_module_test/
H A Dability_caller_fw_module_test.cpp57 auto sysMgr = OHOS::DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
58 if (sysMgr == nullptr) { in SetUpTestCase()
63 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject); in SetUpTestCase()
/ohos5.0/base/powermgr/battery_manager/services/native/src/
H A Dbattery_notify.cpp162 …sptr<ISystemAbilityManager> sysMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityMan… in IsCommonEventServiceAbilityExist() local
163 if (!sysMgr) { in IsCommonEventServiceAbilityExist()
168 sptr<IRemoteObject> remote = sysMgr->CheckSystemAbility(COMMON_EVENT_SERVICE_ID); in IsCommonEventServiceAbilityExist()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_ability_runtime_test/
H A Dlocal_call_record_ut_test.cpp50 auto sysMgr = OHOS::DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
51 if (sysMgr == NULL) { in SetUpTestCase()
55 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject); in SetUpTestCase()
H A Dlocal_call_container_ut_test.cpp43 auto sysMgr = OHOS::DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
44 if (sysMgr == NULL) { in SetUpTestCase()
49 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject); in SetUpTestCase()
H A Dability_context_impl_test.cpp110 auto sysMgr = OHOS::DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
111 if (sysMgr == NULL) { in SetUpTestCase()
115 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, g_mockAbilityMs); in SetUpTestCase()
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/ability_test/
H A Dability_test.cpp69 auto sysMgr = OHOS::DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); in SetUp() local
70 EXPECT_TRUE(sysMgr != nullptr); in SetUp()
71 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject_); in SetUp()
72 sysMgr->RegisterSystemAbility(OHOS::BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, new BundleMgrService()); in SetUp()
505 auto sysMgr = OHOS::DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); in SetUp() local
506 EXPECT_TRUE(sysMgr != nullptr); in SetUp()
507 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject_); in SetUp()
H A Dability_context_test.cpp56 auto sysMgr = OHOS::DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
57 if (sysMgr == nullptr) { in SetUpTestCase()
62 sysMgr->RegisterSystemAbility(OHOS::ABILITY_MGR_SERVICE_ID, abilityObject); in SetUpTestCase()
/ohos5.0/base/security/device_auth/frameworks/src/standard/
H A Dipc_adapt.cpp1339 …sptr<ISystemAbilityManager> sysMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityMan… in AddDevAuthServiceToManager() local
1340 if (sysMgr == nullptr) { in AddDevAuthServiceToManager()
1345 int32_t ret = sysMgr->AddSystemAbility(DEVICE_AUTH_SERVICE_ID, servicePtr); in AddDevAuthServiceToManager()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/appkit/main_thread_test/
H A Dmain_thread_test.cpp74 auto sysMgr = DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
75 if (sysMgr == nullptr) { in SetUpTestCase()
80 sysMgr->RegisterSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, bundleObject); in SetUpTestCase()