/foundation/ability/ability_runtime/test/unittest/multi_app_utils_test/ |
H A D | multi_app_utils_test.cpp | 53 auto appMgr = AppMgrUtil::GetAppMgr(); in HWTEST_F() local 54 EXPECT_NE(appMgr, nullptr); in HWTEST_F() 81 auto appMgr = AppMgrUtil::GetAppMgr(); in HWTEST_F() local 82 EXPECT_NE(appMgr, nullptr); in HWTEST_F()
|
/foundation/multimodalinput/input/service/app_state_manager/src/ |
H A D | app_state_observer.cpp | 63 auto appMgr = GetAppMgr(); in GetForegroundApplicationInfo() local 64 CHKPR(appMgr, RET_ERR); in GetForegroundApplicationInfo() 65 int32_t ret = appMgr->GetForegroundApplications(list); in GetForegroundApplicationInfo() 103 sptr<AppExecFwk::IAppMgr> appMgr = OHOS::iface_cast<OHOS::AppExecFwk::IAppMgr>(object); in InitAppStateObserver() local 104 CHKPV(appMgr); in InitAppStateObserver() 105 int32_t ret = appMgr->RegisterApplicationStateObserver(new ApplicationStateObserver()); in InitAppStateObserver()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/utils/ |
H A D | multi_app_utils.cpp | 28 auto appMgr = AppMgrUtil::GetAppMgr(); in GetRunningMultiAppIndex() local 29 if (appMgr == nullptr) { in GetRunningMultiAppIndex() 33 auto ret = IN_PROCESS_CALL(appMgr->GetRunningMultiAppInfoByBundleName(bundleName, runningMultiAppInfo)); in GetRunningMultiAppIndex()
|
H A D | multi_instance_utils.cpp | 87 auto appMgr = AppMgrUtil::GetAppMgr(); in IsInstanceKeyExist() local 88 CHECK_POINTER_AND_RETURN(appMgr, false); in IsInstanceKeyExist() 90 auto result = IN_PROCESS_CALL(appMgr->GetAllRunningInstanceKeysByBundleName(bundleName, instanceKeyArray)); in IsInstanceKeyExist()
|
H A D | want_utils.cpp | 89 auto appMgr = AppMgrUtil::GetAppMgr(); in GetAppIndex() local 90 if (appMgr == nullptr) { in GetAppIndex() 95 auto ret = IN_PROCESS_CALL(appMgr->GetAppIndexByPid(callingPid, appIndex)); in GetAppIndex() 97 TAG_LOGE(AAFwkTag::ABILITYMGR, "appMgr GetAppIndexByPid error"); in GetAppIndex()
|
H A D | ability_permission_util.cpp | 150 auto appMgr = AppMgrUtil::GetAppMgr(); in CheckMultiInstance() local 151 if (appMgr == nullptr) { in CheckMultiInstance() 152 TAG_LOGE(AAFwkTag::FREE_INSTALL, "null appMgr"); in CheckMultiInstance() 157 auto result = IN_PROCESS_CALL(appMgr->GetAllRunningInstanceKeysByBundleName(want.GetBundle(), instanceKeyArray)); in CheckMultiInstance()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | app_exception_handler.cpp | 59 auto appMgr = AppMgrUtil::GetAppMgr(); in RegisterAppExceptionCallback() local 60 if (appMgr == nullptr) { in RegisterAppExceptionCallback() 65 auto service = appMgr->GetAmsMgr(); in RegisterAppExceptionCallback()
|
/foundation/ability/ability_runtime/services/quickfixmgr/src/ |
H A D | quick_fix_manager_service.cpp | 76 auto appMgr = QuickFixUtil::GetAppManagerProxy(); in ApplyQuickFix() local 77 if (appMgr == nullptr) { in ApplyQuickFix() 78 TAG_LOGE(AAFwkTag::QUICKFIX, "null appMgr"); in ApplyQuickFix() 81 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr, appMgr, eventHandler_, this); in ApplyQuickFix() 149 auto appMgr = QuickFixUtil::GetAppManagerProxy(); in RevokeQuickFix() local 150 if (appMgr == nullptr) { in RevokeQuickFix() 151 TAG_LOGE(AAFwkTag::QUICKFIX, "null appMgr"); in RevokeQuickFix() 161 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr, appMgr, eventHandler_, this); in RevokeQuickFix()
|
/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | app_mgr_service_event_handler.cpp | 24 const std::weak_ptr<AppMgrServiceInner> &appMgr) in AMSEventHandler() 25 : AAFwk::EventHandlerWrap(taskHandler), appMgr_(appMgr) in AMSEventHandler() 23 AMSEventHandler(const std::shared_ptr<AAFwk::TaskHandlerWrap> &taskHandler, const std::weak_ptr<AppMgrServiceInner> &appMgr) AMSEventHandler() argument
|
H A D | cache_process_manager.cpp | 59 void CacheProcessManager::SetAppMgr(const std::weak_ptr<AppMgrServiceInner> &appMgr) in SetAppMgr() argument 62 appMgr_ = appMgr; in SetAppMgr() 157 TAG_LOGE(AAFwkTag::APPMGR, "null appMgr"); in CheckAndNotifyCachedState() 251 TAG_LOGE(AAFwkTag::APPMGR, "null appMgr"); in ReuseCachedProcess() 469 TAG_LOGE(AAFwkTag::APPMGR, "null appMgr"); in KillProcessByRecord() 558 TAG_LOGE(AAFwkTag::APPMGR, "null appMgr"); in PrepareActivateCache()
|
/foundation/ability/ability_runtime/services/quickfixmgr/include/ |
H A D | quick_fix_manager_apply_task.h | 29 QuickFixManagerApplyTask(sptr<AppExecFwk::IQuickFixManager> bundleQfMgr, sptr<AppExecFwk::IAppMgr> appMgr, in QuickFixManagerApplyTask() argument 31 : bundleQfMgr_(bundleQfMgr), appMgr_(appMgr), eventHandler_(handler), quickFixMgrService_(service) in QuickFixManagerApplyTask()
|
/foundation/ability/ability_runtime/test/fuzztest/appmanager_fuzzer/ |
H A D | appmanager_fuzzer.cpp | 59 std::shared_ptr<AppMgrService> appMgr = std::make_shared<AppMgrService>(); in DoSomethingInterestingWithMyAPI() local 60 appMgr->OnRemoteRequest(code, parcel, reply, option); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/child_process_manager/ |
H A D | child_process_manager.cpp | 123 sptr<AppExecFwk::IAppMgr> appMgr = GetAppMgr(); in StartChildProcessWithArgs() local 124 if (appMgr == nullptr) { in StartChildProcessWithArgs() 136 auto ret = appMgr->StartChildProcess(pid, request); in StartChildProcessWithArgs() 155 sptr<AppExecFwk::IAppMgr> appMgr = GetAppMgr(); in StartNativeChildProcessByAppSpawnFork() local 156 if (appMgr == nullptr) { in StartNativeChildProcessByAppSpawnFork() 162 auto ret = appMgr->StartNativeChildProcess(libName, childProcessCount_, callbackStub); in StartNativeChildProcessByAppSpawnFork() 435 sptr<AppExecFwk::IAppMgr> appMgr = GetAppMgr(); in HasChildProcessRecord() local 436 if (appMgr == nullptr) { in HasChildProcessRecord() 441 return appMgr->GetChildProcessInfoForSelf(info) == ERR_OK; in HasChildProcessRecord()
|
/foundation/ability/form_fwk/services/src/ |
H A D | form_ability_connection_reporter.cpp | 59 auto appMgr = GetAppMgr(); in ReportFormAbilityConnection() local 62 int32_t ret = appMgr->GetRunningProcessInformation(bundleName, userId, infos); in ReportFormAbilityConnection()
|
H A D | form_ability_connection.cpp | 146 auto appMgr = GetAppMgr(); in onFormAppConnect() local 147 if (!appMgr) { in onFormAppConnect() 154 int32_t ret = appMgr->GetRunningProcessInformation(bundleName, userId, infos); in onFormAppConnect()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/ |
H A D | disposed_rule_interceptor.cpp | 221 sptr<OHOS::AppExecFwk::IAppMgr> appMgr = iface_cast<AppExecFwk::IAppMgr>(object); in GetAppMgr() local 222 if (!appMgr || !appMgr->AsObject()) { in GetAppMgr() 225 return appMgr; in GetAppMgr()
|
/foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_stability_test/ |
H A D | ui_extension_stability_test.cpp | 117 sptr<AppExecFwk::IAppMgr> appMgr = iface_cast<AppExecFwk::IAppMgr>(remoteObj);
in SetUpTestCase() local 118 if (appMgr == nullptr) {
in SetUpTestCase() 123 appMgr_ = appMgr;
in SetUpTestCase()
|
/foundation/multimodalinput/input/intention/ipc/socket/src/ |
H A D | socket_session_manager.cpp | 46 auto appMgr = GetAppMgr(); in RegisterApplicationState() local 47 CHKPV(appMgr); in RegisterApplicationState() 49 auto err = appMgr->RegisterApplicationStateObserver(appStateObserver_); in RegisterApplicationState()
|
/foundation/ability/ability_runtime/services/appmgr/include/ |
H A D | app_mgr_service_event_handler.h | 28 const std::weak_ptr<AppMgrServiceInner> &appMgr);
|
H A D | cache_process_manager.h | 35 void SetAppMgr(const std::weak_ptr<AppMgrServiceInner> &appMgr);
|
/foundation/multimodalinput/input/intention/cooperate/plugin/src/ |
H A D | state_machine.cpp | 501 auto appMgr = GetAppMgr(); in RegisterApplicationStateObserver() local 502 CHKPR(appMgr, RET_ERR); in RegisterApplicationStateObserver() 504 auto err = appMgr->RegisterApplicationStateObserver(appStateObserver_, clientBundleNames_); in RegisterApplicationStateObserver() 517 auto appMgr = GetAppMgr(); in UnregisterApplicationStateObserver() local 518 CHKPV(appMgr); in UnregisterApplicationStateObserver() 520 auto err = appMgr->UnregisterApplicationStateObserver(appStateObserver_); in UnregisterApplicationStateObserver()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | child_main_thread.cpp | 97 auto appMgr = iface_cast<IAppMgr>(object); in GetChildProcessInfo() local 98 if (appMgr == nullptr) { in GetChildProcessInfo() 99 TAG_LOGE(AAFwkTag::APPKIT, "failed to iface_cast object to appMgr"); in GetChildProcessInfo() 102 return appMgr->GetChildProcessInfoForSelf(info); in GetChildProcessInfo()
|
/foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_connect_module_test/ |
H A D | ui_extension_connect_module_test.cpp | 117 sptr<AppExecFwk::IAppMgr> appMgr = iface_cast<AppExecFwk::IAppMgr>(remoteObj); in SetUpTestCase() local 118 if (appMgr == nullptr) { in SetUpTestCase() 123 appMgr_ = appMgr; in SetUpTestCase()
|
/foundation/ability/ability_runtime/test/unittest/quick_fix/quick_fix_manager_service_test/ |
H A D | quick_fix_manager_service_test.cpp | 289 sptr<AppExecFwk::IAppMgr> appMgr = nullptr; in HWTEST_F() local 292 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr, appMgr, handler, service); in HWTEST_F()
|
/foundation/ability/ability_runtime/frameworks/js/napi/app/js_app_manager/ |
H A D | js_app_manager.cpp | 1298 sptr<OHOS::AppExecFwk::IAppMgr> appMgr = appManager.promote(); in OnIsApplicationRunning() 1299 if (appMgr == nullptr) { in OnIsApplicationRunning() 1304 *innerErrorCode = appMgr->IsApplicationRunning(bundleName, *isRunning); in OnIsApplicationRunning() 1349 sptr<OHOS::AppExecFwk::IAppMgr> appMgr = appManager.promote(); in OnIsAppRunning() 1350 if (appMgr == nullptr) { in OnIsAppRunning() 1351 TAG_LOGE(AAFwkTag::APPMGR, "null appMgr"); in OnIsAppRunning() 1355 *innerErrorCode = appMgr->IsAppRunning(bundleName, appCloneIndex, *isRunning); in OnIsAppRunning() 1392 sptr<OHOS::AppExecFwk::IAppMgr> appMgr = weak.promote(); in OnPreloadApplication() 1393 if (appMgr == nullptr) { in OnPreloadApplication() 1394 TAG_LOGE(AAFwkTag::APPMGR, "null appMgr"); in OnPreloadApplication() [all...] |