Home
last modified time | relevance | path

Searched refs:systemAbilityManager (Results 1 - 25 of 156) sorted by relevance

1234567

/foundation/ability/ability_runtime/test/mock/services_abilitymgr_test/libs/sa_mgr/src/
H A Dsa_mgr_client_mock.cpp34 OHOS::sptr<ISystemAbilityManager> systemAbilityManager = in GetSystemAbility() local
36 if (systemAbilityManager == nullptr) { in GetSystemAbility()
40 OHOS::sptr<OHOS::IRemoteObject> object = systemAbilityManager->GetSystemAbility(systemAbilityId); in GetSystemAbility()
50 OHOS::sptr<ISystemAbilityManager> systemAbilityManager = in CheckSystemAbility() local
52 if (systemAbilityManager == nullptr) { in CheckSystemAbility()
56 OHOS::sptr<OHOS::IRemoteObject> object = systemAbilityManager->CheckSystemAbility(systemAbilityId); in CheckSystemAbility()
/foundation/distributedhardware/distributed_input/interfaces/ipc/src/
H A Ddinput_sa_manager.cpp101 sptr<ISystemAbilityManager> systemAbilityManager = in Init() local
104 if (!systemAbilityManager) { in Init()
111 int32_t ret = systemAbilityManager->SubscribeSystemAbility(DISTRIBUTED_HARDWARE_INPUT_SOURCE_SA_ID, in Init()
122 int32_t ret = systemAbilityManager->SubscribeSystemAbility(DISTRIBUTED_HARDWARE_INPUT_SINK_SA_ID, in Init()
143 sptr<ISystemAbilityManager> systemAbilityManager = in GetDInputSourceProxy() local
145 if (!systemAbilityManager) { in GetDInputSourceProxy()
151 int32_t ret = systemAbilityManager->SubscribeSystemAbility(DISTRIBUTED_HARDWARE_INPUT_SOURCE_SA_ID, in GetDInputSourceProxy()
167 sptr<ISystemAbilityManager> systemAbilityManager = in GetDInputSourceProxy() local
169 if (!systemAbilityManager) { in GetDInputSourceProxy()
175 sptr<IRemoteObject> remoteObject = systemAbilityManager in GetDInputSourceProxy()
214 sptr<ISystemAbilityManager> systemAbilityManager = GetDInputSinkProxy() local
238 sptr<ISystemAbilityManager> systemAbilityManager = GetDInputSinkProxy() local
[all...]
/foundation/multimodalinput/input/service/app_state_manager/src/
H A Dapp_state_observer.cpp49 OHOS::sptr<ISystemAbilityManager> systemAbilityManager = in GetAppMgr() local
51 if (!systemAbilityManager) { in GetAppMgr()
55 OHOS::sptr<OHOS::IRemoteObject> object = systemAbilityManager->CheckSystemAbility(OHOS::APP_MGR_SERVICE_ID); in GetAppMgr()
95 OHOS::sptr<ISystemAbilityManager> systemAbilityManager = in InitAppStateObserver() local
97 if (!systemAbilityManager) { in InitAppStateObserver()
101 OHOS::sptr<OHOS::IRemoteObject> object = systemAbilityManager->CheckSystemAbility(OHOS::APP_MGR_SERVICE_ID); in InitAppStateObserver()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/
H A Dcomponent_monitor.cpp84 sptr<ISystemAbilityManager> systemAbilityManager = in AddSAMonitor() local
86 if (!systemAbilityManager) { in AddSAMonitor()
91 int32_t ret = systemAbilityManager->SubscribeSystemAbility(saId, listener); in AddSAMonitor()
111 sptr<ISystemAbilityManager> systemAbilityManager = in RemoveSAMonitor() local
113 if (!systemAbilityManager) { in RemoveSAMonitor()
118 int32_t ret = systemAbilityManager->UnSubscribeSystemAbility(saId, saListeners_[saId]); in RemoveSAMonitor()
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/src/
H A Dsys_mgr_client_mock.cpp28 OHOS::sptr<ISystemAbilityManager> systemAbilityManager = in GetSystemAbility() local
30 if (systemAbilityManager == nullptr) { in GetSystemAbility()
34 OHOS::sptr<OHOS::IRemoteObject> object = systemAbilityManager->GetSystemAbility(systemAbilityId); in GetSystemAbility()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/checkissystemappbyuid_fuzzer/
H A Dcheckissystemappbyuid_fuzzer.cpp32 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetBundleMgr() local
33 if (systemAbilityManager == nullptr) { in GetBundleMgr()
38 auto bundleMgrSa = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleMgr()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getbundleinfos_fuzzer/
H A Dgetbundleinfos_fuzzer.cpp32 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetBundleMgr() local
33 if (systemAbilityManager == nullptr) { in GetBundleMgr()
38 auto bundleMgrSa = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleMgr()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifycallingpermission_fuzzer/
H A Dverifycallingpermission_fuzzer.cpp32 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetBundleMgr() local
33 if (systemAbilityManager == nullptr) { in GetBundleMgr()
38 auto bundleMgrSa = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleMgr()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_information/getapplicationinfos_fuzzer/
H A Dgetapplicationinfos_fuzzer.cpp32 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetBundleMgr() local
33 if (systemAbilityManager == nullptr) { in GetBundleMgr()
38 auto bundleMgrSa = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleMgr()
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/proxysubscribelocalhardware_fuzzer/
H A Dsubscribelocalhardware_fuzzer.cpp38 sptr<ISystemAbilityManager> systemAbilityManager = in SubscribeLocalHardwareFuzzTest() local
40 if (systemAbilityManager == nullptr) { in SubscribeLocalHardwareFuzzTest()
44 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(DISTRIBUTED_HARDWARE_DM_SA_ID); in SubscribeLocalHardwareFuzzTest()
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_handler/handleronremotesourcesvrdied_fuzzer/
H A Donremotesourcesvrdied_fuzzer.cpp34 sptr<ISystemAbilityManager> systemAbilityManager = in OnRemoteSourceSvrDiedFuzzTest() local
36 if (systemAbilityManager == nullptr) { in OnRemoteSourceSvrDiedFuzzTest()
40 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(DISTRIBUTED_HARDWARE_DM_SA_ID); in OnRemoteSourceSvrDiedFuzzTest()
/foundation/CastEngine/castengine_wifi_display/tests/unittest/interaction/interprocess/
H A Dinterprocess_unit_test.cpp115 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST_F() local
116 EXPECT_NE(systemAbilityManager, nullptr); in HWTEST_F()
117 sptr<IRemoteObject> object = systemAbilityManager->GetSystemAbility(TEST_SERVICE_SA_ID); in HWTEST_F()
254 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST_F() local
255 EXPECT_NE(systemAbilityManager, nullptr); in HWTEST_F()
256 sptr<IRemoteObject> object = systemAbilityManager->GetSystemAbility(TEST_SERVICE_SA_ID); in HWTEST_F()
263 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST_F() local
264 EXPECT_NE(systemAbilityManager, nullptr); in HWTEST_F()
265 sptr<IRemoteObject> impl = systemAbilityManager->GetSystemAbility(TEST_SERVICE_SA_ID); in HWTEST_F()
273 auto systemAbilityManager in HWTEST_F() local
288 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
304 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
366 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
601 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/test/unittest/child_process_manager_second_test/
H A Dnative_child_ipc_process_test.cpp94 OHOS::sptr<OHOS::ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
96 OHOS::sptr<OHOS::IRemoteObject> ipcObj = systemAbilityManager->GetSystemAbility(501); in HWTEST_F()
117 OHOS::sptr<OHOS::ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
119 OHOS::sptr<OHOS::IRemoteObject> ipcObj = systemAbilityManager->GetSystemAbility(501); in HWTEST_F()
140 OHOS::sptr<OHOS::ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
142 OHOS::sptr<OHOS::IRemoteObject> ipcObjs = systemAbilityManager->GetSystemAbility(501); in HWTEST_F()
/foundation/window/window_manager/utils/src/
H A Dpermission.cpp101 sptr<ISystemAbilityManager> systemAbilityManager = in IsStartByInputMethod() local
103 if (!systemAbilityManager) { in IsStartByInputMethod()
108 = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in IsStartByInputMethod()
149 sptr<ISystemAbilityManager> systemAbilityManager = in CheckIsCallingBundleName() local
151 if (!systemAbilityManager) { in CheckIsCallingBundleName()
156 = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in CheckIsCallingBundleName()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_proxy_test/
H A Dbms_bundle_installer_proxy_test.cpp532 sptr<ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
534 ASSERT_NE(systemAbilityManager, nullptr); in HWTEST_F()
536 systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in HWTEST_F()
570 sptr<ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
572 ASSERT_NE(systemAbilityManager, nullptr); in HWTEST_F()
574 systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in HWTEST_F()
609 sptr<ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
611 ASSERT_NE(systemAbilityManager, nullptr); in HWTEST_F()
613 systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in HWTEST_F()
648 sptr<ISystemAbilityManager> systemAbilityManager in HWTEST_F() local
686 sptr<ISystemAbilityManager> systemAbilityManager = HWTEST_F() local
708 sptr<ISystemAbilityManager> systemAbilityManager = HWTEST_F() local
748 sptr<ISystemAbilityManager> systemAbilityManager = HWTEST_F() local
770 sptr<ISystemAbilityManager> systemAbilityManager = HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_check_service_test/
H A Dbms_check_service_test.cpp41 sptr<ISystemAbilityManager> systemAbilityManager = in GetBundleMgr() local
43 if (!systemAbilityManager) { in GetBundleMgr()
48 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleMgr()
/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Dboundle_mgr_wrap_to_c.cpp32 auto systemAbilityManager = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetBundleInfoFromUid() local
34 systemAbilityManager != nullptr, MediaMonitorErr::ERR_INVALID_OPERATION, "systemAbilityManager is nullptr"); in GetBundleInfoFromUid()
37 = systemAbilityManager->GetSystemAbility(OHOS::BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleInfoFromUid()
/foundation/window/window_manager/window_scene/session_manager_service/src/
H A Dsession_manager_service.cpp50 sptr<ISystemAbilityManager> systemAbilityManager = in NotifySceneBoardAvailable() local
52 if (!systemAbilityManager) { in NotifySceneBoardAvailable()
57 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(WINDOW_MANAGER_SERVICE_ID); in NotifySceneBoardAvailable()
/foundation/CastEngine/castengine_wifi_display/tests/unittest/interaction/domain/
H A Ddomain_unit_test.cpp275 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST_F() local
276 EXPECT_NE(systemAbilityManager, nullptr); in HWTEST_F()
277 sptr<IRemoteObject> object = systemAbilityManager->GetSystemAbility(TEST_SERVICE_SA_ID); in HWTEST_F()
408 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST_F() local
409 EXPECT_NE(systemAbilityManager, nullptr); in HWTEST_F()
410 sptr<IRemoteObject> impl = systemAbilityManager->GetSystemAbility(TEST_SERVICE_SA_ID); in HWTEST_F()
418 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in HWTEST_F() local
419 EXPECT_NE(systemAbilityManager, nullptr); in HWTEST_F()
420 sptr<IRemoteObject> impl = systemAbilityManager->GetSystemAbility(SHARING_SERVICE_TEMP_SA_ID); in HWTEST_F()
422 sptr<IRemoteObject> object = systemAbilityManager in HWTEST_F()
432 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
448 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
487 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
582 auto systemAbilityManager = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); HWTEST_F() local
[all...]
/foundation/systemabilitymgr/safwk/test/services/safwk/unittest/
H A Dsa_proxy_cache_test.cpp82 sptr<ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
84 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(DISTRIBUTED_SCHED_TEST_TT_ID); in HWTEST_F()
268 sptr<ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
270 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(DISTRIBUTED_SCHED_TEST_TT_ID); in HWTEST_F()
286 sptr<ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
288 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(DISTRIBUTED_SCHED_TEST_TT_ID); in HWTEST_F()
309 sptr<ISystemAbilityManager> systemAbilityManager = in HWTEST_F() local
311 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(DISTRIBUTED_SCHED_TEST_TT_ID); in HWTEST_F()
314 sptr<IRemoteObject> remoteObject1 = systemAbilityManager->GetSystemAbility(1494); in HWTEST_F()
378 sptr<ISystemAbilityManager> systemAbilityManager in HWTEST_F() local
[all...]
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/
H A Dobserver_manager.cpp132 sptr<ISystemAbilityManager> systemAbilityManager in InitSysAbilityListener() local
134 if (systemAbilityManager == nullptr) { in InitSysAbilityListener()
136 RESSCHED_LOGE("systemAbilityManager is null"); in InitSysAbilityListener()
142 AddItemToSysAbilityListener(DFX_SYS_EVENT_SERVICE_ABILITY_ID, systemAbilityManager); in InitSysAbilityListener()
143 AddItemToSysAbilityListener(TELEPHONY_STATE_REGISTRY_SYS_ABILITY_ID, systemAbilityManager); in InitSysAbilityListener()
144 AddItemToSysAbilityListener(AUDIO_POLICY_SERVICE_ID, systemAbilityManager); in InitSysAbilityListener()
145 AddItemToSysAbilityListener(MSDP_MOVEMENT_SERVICE_ID, systemAbilityManager); in InitSysAbilityListener()
146 AddItemToSysAbilityListener(MULTIMODAL_INPUT_SERVICE_ID, systemAbilityManager); in InitSysAbilityListener()
147 AddItemToSysAbilityListener(DISPLAY_MANAGER_SERVICE_ID, systemAbilityManager); in InitSysAbilityListener()
148 AddItemToSysAbilityListener(ABILITY_MGR_SERVICE_ID, systemAbilityManager); in InitSysAbilityListener()
159 AddItemToSysAbilityListener(int32_t systemAbilityId, sptr<ISystemAbilityManager>& systemAbilityManager) AddItemToSysAbilityListener() argument
[all...]
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dwork_conn_manager.cpp78 sptr<ISystemAbilityManager> systemAbilityManager = in StartWork() local
80 if (systemAbilityManager == nullptr) { in StartWork()
84 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(ABILITY_MGR_SERVICE_ID); in StartWork()
121 sptr<ISystemAbilityManager> systemAbilityManager = in DisConnect() local
123 if (systemAbilityManager == nullptr) { in DisConnect()
127 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(ABILITY_MGR_SERVICE_ID); in DisConnect()
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Ddefault_app.cpp60 auto systemAbilityManager = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetDefaultAppProxy() local
61 if (systemAbilityManager == nullptr) { in GetDefaultAppProxy()
62 APP_LOGE("systemAbilityManager is null."); in GetDefaultAppProxy()
65 auto bundleMgrSa = systemAbilityManager->GetSystemAbility(OHOS::BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetDefaultAppProxy()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/bundlemgr_graphics/src/
H A Dbundle_graphics_client_impl.cpp36 auto systemAbilityManager = OHOS::SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in GetBundleMgr() local
37 if (systemAbilityManager == nullptr) { in GetBundleMgr()
41 auto bundleMgrSa = systemAbilityManager->GetSystemAbility(OHOS::BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleMgr()
/foundation/bundlemanager/app_domain_verify/frameworks/common/src/bms/
H A Dbundle_info_query.cpp55 sptr<ISystemAbilityManager> systemAbilityManager = in GetBundleMgrProxy() local
57 if (!systemAbilityManager) { in GetBundleMgrProxy()
59 "GetBundleMgrProxy, systemAbilityManager is null"); in GetBundleMgrProxy()
62 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleMgrProxy()

Completed in 12 milliseconds

1234567