Home
last modified time | relevance | path

Searched refs:sysMgr (Results 1 - 15 of 15) sorted by relevance

/foundation/ability/ability_runtime/test/unittest/sys_mgr_client_test/
H A Dsys_mgr_client_test.cpp61 auto sysMgr = DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); in HWTEST_F() local
62 EXPECT_NE(sysMgr, nullptr); in HWTEST_F()
64 EXPECT_EQ(sysMgr->abilityManager_, nullptr); in HWTEST_F()
66 auto ret = sysMgr->GetSystemAbility(ABILITY_MGR_SERVICE_ID); in HWTEST_F()
79 auto sysMgr = DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); in HWTEST_F() local
80 EXPECT_NE(sysMgr, nullptr); in HWTEST_F()
82 sysMgr->abilityManager_ = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST_F()
83 EXPECT_NE(sysMgr->abilityManager_, nullptr); in HWTEST_F()
85 auto ret = sysMgr->GetSystemAbility(ABILITY_MGR_SERVICE_ID); in HWTEST_F()
98 auto sysMgr in HWTEST_F() local
115 auto sysMgr = DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); HWTEST_F() local
[all...]
/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()
/foundation/ability/ability_runtime/test/unittest/appkit/child_main_thread_first_test/
H A Dchild_main_thread_first_test.cpp70 auto sysMgr = DelayedSingleton<SysMrgClient>::GetInstance(); in TearDown() local
71 if (sysMgr == nullptr) { in TearDown()
76 sysMgr->RegisterSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, bundleMgrService); in TearDown()
77 sysMgr->RegisterSystemAbility(APP_MGR_SERVICE_ID, mockAppMgrService); in TearDown()
/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()
/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()
/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()
/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 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()
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()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dchild_main_thread.cpp86 auto sysMgr = DelayedSingleton<SysMrgClient>::GetInstance(); in GetChildProcessInfo() local
87 if (sysMgr == nullptr) { in GetChildProcessInfo()
92 auto object = sysMgr->GetSystemAbility(APP_MGR_SERVICE_ID); in GetChildProcessInfo()
/foundation/ability/ability_runtime/test/unittest/appkit/main_fourth_test/
H A Dmain_fourth_test.cpp75 auto sysMgr = DelayedSingleton<SysMrgClient>::GetInstance(); in SetUpTestCase() local
76 if (sysMgr == nullptr) { in SetUpTestCase()
81 sysMgr->RegisterSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID, bundleObject); in SetUpTestCase()
/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()
493 auto sysMgr = OHOS::DelayedSingleton<AppExecFwk::SysMrgClient>::GetInstance(); in SetUp() local
494 EXPECT_TRUE(sysMgr != nullptr); in SetUp()
495 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()
/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()

Completed in 17 milliseconds