/ohos5.0/foundation/ability/ability_runtime/test/unittest/sys_mgr_client_test/ |
H A D | sys_mgr_client_test.cpp | 61 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 D | ability_permission_test.cpp | 52 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 D | ability_context_test.cpp | 72 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 D | os_account_adapter.cpp | 114 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 D | battery_client_death_recipient_test.cpp | 68 …sptr<ISystemAbilityManager> sysMgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityMan… variable 69 if (sysMgr == nullptr) { 73 wptr<IRemoteObject> remoteObj = sysMgr->CheckSystemAbility(POWER_MANAGER_BATT_SERVICE_ID);
|
H A D | battery_client_test.cpp | 707 …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 D | child_main_thread_test.cpp | 47 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 D | battery_srv_client.cpp | 41 …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 D | child_process_manager_test.cpp | 52 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 D | ability_caller_fw_module_test.cpp | 57 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 D | battery_notify.cpp | 162 …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 D | local_call_record_ut_test.cpp | 50 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 D | local_call_container_ut_test.cpp | 43 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 D | ability_context_impl_test.cpp | 110 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 D | ability_test.cpp | 69 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 D | ability_context_test.cpp | 56 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 D | ipc_adapt.cpp | 1339 …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 D | main_thread_test.cpp | 74 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()
|