/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | app_scheduler.cpp | 26 AppScheduler::AppScheduler() : appMgrClient_(std::make_unique<AppExecFwk::AppMgrClient>()) in AppScheduler() 35 CHECK_POINTER_RETURN_BOOL(appMgrClient_); in Init() 45 int result = static_cast<int>(appMgrClient_->ConnectAppMgrService()); in Init() 51 result = static_cast<int>(appMgrClient_->RegisterAppStateCallback(sptr<AppScheduler>(this))); in Init() 62 appMgrClient_->RegisterStartSpecifiedAbilityResponse(startSpecifiedAbilityResponse_); in Init() 75 CHECK_POINTER_AND_RETURN(appMgrClient_, INNER_ERR); in LoadAbility() 85 appMgrClient_->LoadAbility(abilityInfo, applicationInfo, want, loadParam))); in LoadAbility() 97 CHECK_POINTER_AND_RETURN(appMgrClient_, INNER_ERR); in TerminateAbility() 100 int ret = static_cast<int>(IN_PROCESS_CALL(appMgrClient_->TerminateAbility(token, clearMissionFlag))); in TerminateAbility() 110 CHECK_POINTER_AND_RETURN(appMgrClient_, INNER_ER in UpdateApplicationInfoInstalled() [all...] |
/foundation/ability/ability_runtime/test/unittest/app_scheduler_test/ |
H A D | app_scheduler_test.cpp | 95 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = nullptr; in HWTEST_F() 111 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = nullptr; in HWTEST_F() 158 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = std::make_unique<AppExecFwk::AppMgrClient>(); in HWTEST_F() 177 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = std::move(clientMock_); in HWTEST_F() 183 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_.reset(); in HWTEST_F() 199 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = std::move(clientMock_); in HWTEST_F() 231 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = nullptr; in HWTEST_F() 254 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = std::move(clientMock_); in HWTEST_F() 274 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ = std::move(clientMock_); in HWTEST_F() 289 DelayedSingleton<AppScheduler>::GetInstance()->appMgrClient_ in HWTEST_F() [all...] |
/foundation/resourceschedule/background_task_mgr/services/transient_task/src/ |
H A D | watchdog.cpp | 80 if (appMgrClient_ == nullptr) { in KillApplicationByUid() 81 appMgrClient_ = std::make_unique<AppExecFwk::AppMgrClient>(); in KillApplicationByUid() 82 if (appMgrClient_ == nullptr) { in KillApplicationByUid() 87 int32_t ret = (int32_t)appMgrClient_->KillApplicationByUid(bundleName, uid); in KillApplicationByUid()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/memory_level_manager/ |
H A D | memory_level_manager.cpp | 102 DECLARE_UNIQUE_POINTER(AppExecFwk::AppMgrClient, appMgrClient_); in NotifyMemoryLevel() 103 MAKE_POINTER(appMgrClient_, unique, AppExecFwk::AppMgrClient, "make unique failed", return, in NotifyMemoryLevel() 108 // no need notify appMgrClient_ in NotifyMemoryLevel() 113 appMgrClient_->NotifyMemoryLevel(AppExecFwk::MemoryLevel::MEMORY_LEVEL_MODERATE); in NotifyMemoryLevel() 118 appMgrClient_->NotifyMemoryLevel(AppExecFwk::MemoryLevel::MEMORY_LEVEL_LOW); in NotifyMemoryLevel() 123 appMgrClient_->NotifyMemoryLevel(AppExecFwk::MemoryLevel::MEMORY_LEVEL_CRITICAL); in NotifyMemoryLevel()
|
/foundation/window/window_manager/window_scene/screen_session_manager/src/fold_screen_controller/sensor_fold_state_manager/ |
H A D | dual_display_sensor_fold_state_manager.cpp | 140 auto appMgrClient_ = DelayedSingleton<AppExecFwk::AppMgrClient>::GetInstance(); in RegisterApplicationStateObserver() local 141 if (appMgrClient_ == nullptr) { in RegisterApplicationStateObserver() 142 TLOGE(WmsLogTag::DMS, "appMgrClient_ is nullptr."); in RegisterApplicationStateObserver() 145 appMgrClient_->RegisterApplicationStateObserver(applicationStateObserver_, packageNames_)); in RegisterApplicationStateObserver()
|
H A D | single_display_sensor_pocket_fold_state_manager.cpp | 222 auto appMgrClient_ = DelayedSingleton<AppExecFwk::AppMgrClient>::GetInstance(); in RegisterApplicationStateObserver() local 227 if (appMgrClient_ == nullptr) { in RegisterApplicationStateObserver() 228 TLOGE(WmsLogTag::DMS, "appMgrClient_ is nullptr."); in RegisterApplicationStateObserver() 231 appMgrClient_->RegisterApplicationStateObserver(applicationStateObserver_, hallSwitchPackageNameList_)); in RegisterApplicationStateObserver()
|
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/ |
H A D | mem_mgr_event_center.cpp | 148 MAKE_POINTER(appMgrClient_, unique, AppExecFwk::AppMgrClient, "make appMgrClient failed", in RegisterAppStateObserver() 151 while (appMgrClient_->ConnectAppMgrService() != AppExecFwk::AppMgrResultCode::RESULT_OK) { in RegisterAppStateObserver() 285 appMgrClient_ = nullptr; in UnregisterEventObserver()
|
/foundation/resourceschedule/background_task_mgr/services/transient_task/include/ |
H A D | watchdog.h | 45 std::unique_ptr<AppExecFwk::AppMgrClient> appMgrClient_; member in OHOS::BackgroundTaskMgr::Watchdog
|
/foundation/resourceschedule/memmgr/services/memmgrservice/include/event/ |
H A D | mem_mgr_event_center.h | 75 std::unique_ptr<AppExecFwk::AppMgrClient> appMgrClient_; member in OHOS::Memory::MemMgrEventCenter
|
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/src/ |
H A D | bg_efficiency_resources_mgr.cpp | 141 if (appMgrClient_ == nullptr) {
in HandlePersistenceData() 142 appMgrClient_ = std::make_unique<AppExecFwk::AppMgrClient>();
in HandlePersistenceData() 143 if (!appMgrClient_) {
in HandlePersistenceData() 151 if (appMgrClient_->GetAllRunningProcesses(allAppProcessInfos) != ERR_OK) {
in HandlePersistenceData() 273 if (!appMgrClient_) {
in IsServiceExtensionType() 280 if (appMgrClient_->GetAllRunningProcesses(allRunningProcessInfos) != ERR_OK) {
in IsServiceExtensionType()
|
/foundation/ability/ability_runtime/test/moduletest/ability_record_test/ |
H A D | ability_record_module_test.cpp | 237 auto backupAppMgrClient = std::move(appScheduler->appMgrClient_); in HWTEST_F() 238 appScheduler->appMgrClient_ = std::move(mockAppMgrClient); in HWTEST_F() 243 appScheduler->appMgrClient_ = std::move(backupAppMgrClient); in HWTEST_F()
|
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/include/ |
H A D | bg_efficiency_resources_mgr.h | 111 std::unique_ptr<AppExecFwk::AppMgrClient> appMgrClient_ {nullptr};
|
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | app_scheduler.h | 613 std::unique_ptr<AppExecFwk::AppMgrClient> appMgrClient_; member in OHOS::AAFwk::AppScheduler
|
/foundation/resourceschedule/device_standby/services/core/include/ |
H A D | standby_service_impl.h | 205 std::unique_ptr<AppExecFwk::AppMgrClient> appMgrClient_ {nullptr};
|
/foundation/ability/ability_runtime/test/moduletest/running_infos_module_test/ |
H A D | running_infos_module_test.cpp | 160 appScheduler->appMgrClient_.reset(mockAppMgrClient_); in SetUpTestCase() 161 GTEST_LOG_(INFO) << "mock appMgrClient_ ok"; in SetUpTestCase()
|
/foundation/ability/ability_runtime/test/moduletest/panding_want_manager_test/ |
H A D | panding_want_manager_test.cpp | 93 appScheduler->appMgrClient_.reset(appClient); in SetUpTestCase() 94 GTEST_LOG_(INFO) << "mock appMgrClient_ ok"; in SetUpTestCase()
|