Home
last modified time | relevance | path

Searched refs:appMgr_ (Results 1 - 21 of 21) sorted by relevance

/foundation/ability/ability_runtime/test/unittest/multi_app_utils_test/src/
H A Dmock_app_mgr_utils.cpp22 sptr<OHOS::AppExecFwk::IAppMgr> AppMgrUtil::appMgr_ = nullptr; member in OHOS::AAFwk::AppMgrUtil
26 if (appMgr_) { in GetAppMgr()
27 return appMgr_; in GetAppMgr()
31 appMgr_ = iface_cast<AppExecFwk::IAppMgr>(mockAppMgr); in GetAppMgr()
32 return appMgr_; in GetAppMgr()
/foundation/ability/ability_runtime/services/abilitymgr/src/utils/
H A Dapp_mgr_util.cpp23 sptr<OHOS::AppExecFwk::IAppMgr> AppMgrUtil::appMgr_ = nullptr; member in OHOS::AAFwk::AppMgrUtil
27 if (appMgr_) { in GetAppMgr()
28 return appMgr_; in GetAppMgr()
39 appMgr_ = OHOS::iface_cast<OHOS::AppExecFwk::IAppMgr>(object); in GetAppMgr()
40 return appMgr_; in GetAppMgr()
/foundation/ability/ability_runtime/test/unittest/quick_fix/quick_fix_manager_service_test/
H A Dquick_fix_manager_apply_task_test.cpp95 sptr<AppExecFwk::IAppMgr> appMgr_ = nullptr; member in OHOS::AAFwk::QuickFixManagerApplyTaskTest
123 appMgr_ = QuickFixUtil::GetAppManagerProxy(); in SetUp()
124 ASSERT_NE(appMgr_, nullptr); in SetUp()
140 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr_, appMgr_, in HWTEST_F()
162 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr_, appMgr_, in HWTEST_F()
183 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr_, appMgr_, in HWTEST_F()
204 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr_, appMgr_, in HWTEST_F()
223 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr_, appMgr_, in HWTEST_F()
242 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr_, appMgr_, in HWTEST_F()
258 auto applyTask = std::make_shared<QuickFixManagerApplyTask>(bundleQfMgr_, appMgr_, in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_mgr_service_event_handler.cpp25 : AAFwk::EventHandlerWrap(taskHandler), appMgr_(appMgr) in AMSEventHandler()
37 auto appManager = appMgr_.lock(); in ProcessEvent()
H A Dcache_process_manager.cpp62 appMgr_ = appMgr; in SetAppMgr()
155 auto appMgrSptr = appMgr_.lock(); in CheckAndNotifyCachedState()
249 auto appMgrSptr = appMgr_.lock(); in ReuseCachedProcess()
467 auto appMgrSptr = appMgr_.lock(); in KillProcessByRecord()
556 auto appMgrSptr = appMgr_.lock(); in PrepareActivateCache()
/foundation/ability/ability_runtime/services/quickfixmgr/src/
H A Dquick_fix_manager_apply_task.cpp604 if (appMgr_ == nullptr) { in GetRunningState()
605 TAG_LOGE(AAFwkTag::QUICKFIX, "null appMgr_"); in GetRunningState()
609 auto ret = appMgr_->GetAppRunningStateByBundleName(bundleName_); in GetRunningState()
665 if (applyTask->appMgr_ == nullptr) { in PostNotifyLoadRepairPatchTask()
672 auto ret = applyTask->appMgr_->NotifyLoadRepairPatch(applyTask->bundleName_, callback); in PostNotifyLoadRepairPatchTask()
703 if (applyTask->appMgr_ == nullptr) { in PostNotifyUnloadRepairPatchTask()
710 auto ret = applyTask->appMgr_->NotifyUnLoadRepairPatch(applyTask->bundleName_, callback); in PostNotifyUnloadRepairPatchTask()
741 if (applyTask->appMgr_ == nullptr) { in PostNotifyHotReloadPageTask()
748 auto ret = applyTask->appMgr_->NotifyHotReloadPage(applyTask->bundleName_, callback); in PostNotifyHotReloadPageTask()
764 if (appMgr_ in RegAppStateObserver()
[all...]
/foundation/ability/ability_runtime/services/quickfixmgr/include/
H A Dquick_fix_manager_apply_task.h31 : bundleQfMgr_(bundleQfMgr), appMgr_(appMgr), eventHandler_(handler), quickFixMgrService_(service) in QuickFixManagerApplyTask()
80 sptr<AppExecFwk::IAppMgr> appMgr_ = nullptr; member in OHOS::AAFwk::QuickFixManagerApplyTask
/foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_stability_test/
H A Dui_extension_stability_test.cpp98 static sptr<AppExecFwk::IAppMgr> appMgr_; member in OHOS::AAFwk::UIExtensionStabilityTest
101 sptr<AppExecFwk::IAppMgr> UIExtensionStabilityTest::appMgr_ = nullptr; member in OHOS::AAFwk::UIExtensionStabilityTest
123 appMgr_ = appMgr; in SetUpTestCase()
140 auto ret = appMgr_->RegisterApplicationStateObserver(observer, bundleNameList); in RegisterApplicationStateObserver()
148 auto ret = appMgr_->UnregisterApplicationStateObserver(observer); in UnregisterApplicationStateObserver()
/foundation/ability/ability_runtime/services/abilitymgr/include/utils/
H A Dapp_mgr_util.h37 static sptr<OHOS::AppExecFwk::IAppMgr> appMgr_; member in OHOS::AAFwk::final
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dchild_main_thread.cpp147 appMgr_ = iface_cast<IAppMgr>(object); in Attach()
148 if (appMgr_ == nullptr) { in Attach()
149 TAG_LOGE(AAFwkTag::APPKIT, "failed to iface_cast object to appMgr_"); in Attach()
152 appMgr_->AttachChildProcess(this); in Attach()
303 if (appMgr_ == nullptr) { in ExitProcessSafely()
304 TAG_LOGE(AAFwkTag::APPKIT, "appMgr_ is null, use exit(0) instead"); in ExitProcessSafely()
308 appMgr_->ExitChildProcessSafely(); in ExitProcessSafely()
H A Dmain_thread.cpp342 appMgr_ = iface_cast<IAppMgr>(object); in ConnectToAppMgr()
343 if (appMgr_ == nullptr) { in ConnectToAppMgr()
344 TAG_LOGE(AAFwkTag::APPKIT, "failed to iface_cast object to appMgr_"); in ConnectToAppMgr()
348 appMgr_->AttachApplication(this); in ConnectToAppMgr()
384 if (appMgr_ == nullptr) { in RemoveAppMgrDeathRecipient()
389 sptr<IRemoteObject> object = appMgr_->AsObject(); in RemoveAppMgrDeathRecipient()
393 TAG_LOGE(AAFwkTag::APPKIT, "appMgr_->AsObject() failed"); in RemoveAppMgrDeathRecipient()
1748 wptr<IAppMgr> weakMgr = appMgr_; in HandleLaunchApplication()
1919 if (!appThread->appMgr_ || !appThread->applicationImpl_) { in HandleAbilityStage()
1920 TAG_LOGE(AAFwkTag::APPKIT, "appMgr_ i in HandleAbilityStage()
[all...]
/foundation/ability/ability_runtime/test/moduletest/ui_extension_ability_test/ui_extension_connect_module_test/
H A Dui_extension_connect_module_test.cpp98 static sptr<AppExecFwk::IAppMgr> appMgr_; member in OHOS::AAFwk::UIExtensionConnectModuleTest
101 sptr<AppExecFwk::IAppMgr> UIExtensionConnectModuleTest::appMgr_ = nullptr; member in OHOS::AAFwk::UIExtensionConnectModuleTest
123 appMgr_ = appMgr; in SetUpTestCase()
140 auto ret = appMgr_->RegisterApplicationStateObserver(observer, bundleNameList); in RegisterApplicationStateObserver()
148 auto ret = appMgr_->UnregisterApplicationStateObserver(observer); in UnregisterApplicationStateObserver()
/foundation/ability/ability_runtime/test/unittest/appkit/child_main_thread_test/
H A Dchild_main_thread_test.cpp150 thread->appMgr_ = sptr<MockAppMgrService>(new (std::nothrow) MockAppMgrService()); in HWTEST_F()
185 thread->appMgr_ = sptr<MockAppMgrService>(new (std::nothrow) MockAppMgrService()); in HWTEST_F()
/foundation/ability/ability_runtime/services/appmgr/include/
H A Dapp_mgr_service_event_handler.h63 std::weak_ptr<AppMgrServiceInner> appMgr_; member in OHOS::AppExecFwk::AMSEventHandler
H A Dcache_process_manager.h64 std::weak_ptr<AppMgrServiceInner> appMgr_; member in OHOS::AppExecFwk::CacheProcessManager
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/
H A Dchild_main_thread.h61 sptr<IAppMgr> appMgr_ = nullptr; member in OHOS::AppExecFwk::ChildMainThread
H A Dmain_thread.h658 sptr<IAppMgr> appMgr_ = nullptr; // appMgrService Handler member in OHOS::AppExecFwk::MainThread
/foundation/ability/ability_runtime/test/unittest/appkit/main_thread_test/
H A Dmain_thread_test.cpp895 mainThread_->appMgr_ = nullptr; in HWTEST_F()
1068 mainThread_->appMgr_ = nullptr; in HWTEST_F()
1112 mainThread_->appMgr_ = nullptr; in HWTEST_F()
1156 mainThread_->appMgr_ = nullptr; in HWTEST_F()
1474 mainThread_->appMgr_ = nullptr; in HWTEST_F()
1790 EXPECT_TRUE(mainThread_->appMgr_ == nullptr); in HWTEST_F()
1793 mainThread_->appMgr_ = new (std::nothrow) AppMgrProxy(object); in HWTEST_F()
1795 EXPECT_TRUE(mainThread_->appMgr_ != nullptr); in HWTEST_F()
1806 EXPECT_TRUE(mainThread_->appMgr_ == nullptr); in HWTEST_F()
1807 mainThread_->appMgr_ in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/unittest/appkit/main_fourth_test/
H A Dmain_fourth_test.cpp275 EXPECT_EQ(mainThread_->appMgr_, nullptr); in HWTEST_F()
291 EXPECT_EQ(mainThread_->appMgr_, nullptr); in HWTEST_F()
/foundation/ability/ability_runtime/services/uripermmgr/include/
H A Duri_permission_manager_stub_impl.h163 sptr<AppExecFwk::IAppMgr> appMgr_ = nullptr; member in OHOS::AAFwk::UriPermissionManagerStubImpl
/foundation/ability/ability_runtime/services/uripermmgr/src/
H A Duri_permission_manager_stub_impl.cpp247 ConnectManager(appMgr_, APP_MGR_SERVICE_ID); in CheckCalledBySandBox()
248 if (appMgr_ == nullptr) { in CheckCalledBySandBox()
254 if (IN_PROCESS_CALL(appMgr_->JudgeSandboxByPid(callerPid, isSandbox)) != ERR_OK) { in CheckCalledBySandBox()

Completed in 16 milliseconds