Lines Matching refs:AppScheduler
26 AppScheduler::AppScheduler() : appMgrClient_(std::make_unique<AppExecFwk::AppMgrClient>())
29 AppScheduler::~AppScheduler()
32 bool AppScheduler::Init(const std::weak_ptr<AppStateCallback> &callback)
51 result = static_cast<int>(appMgrClient_->RegisterAppStateCallback(sptr<AppScheduler>(this)));
69 int AppScheduler::LoadAbility(sptr<IRemoteObject> token, sptr<IRemoteObject> preToken,
87 TAG_LOGE(AAFwkTag::ABILITYMGR, "AppScheduler fail to LoadAbility. ret %d", ret);
93 int AppScheduler::TerminateAbility(const sptr<IRemoteObject> &token, bool clearMissionFlag)
102 TAG_LOGE(AAFwkTag::ABILITYMGR, "AppScheduler fail to TerminateAbility. ret %d", ret);
108 int AppScheduler::UpdateApplicationInfoInstalled(const std::string &bundleName, const int32_t uid)
121 void AppScheduler::MoveToForeground(const sptr<IRemoteObject> &token)
130 void AppScheduler::MoveToBackground(const sptr<IRemoteObject> &token)
139 void AppScheduler::UpdateAbilityState(const sptr<IRemoteObject> &token, const AppExecFwk::AbilityState state)
146 void AppScheduler::UpdateExtensionState(const sptr<IRemoteObject> &token, const AppExecFwk::ExtensionState state)
153 void AppScheduler::KillProcessByAbilityToken(const sptr<IRemoteObject> &token)
160 void AppScheduler::KillProcessesByUserId(int32_t userId)
167 void AppScheduler::KillProcessesByPids(std::vector<int32_t> &pids)
174 void AppScheduler::AttachPidToParent(const sptr<IRemoteObject> &token, const sptr<IRemoteObject> &callerToken)
181 AppAbilityState AppScheduler::ConvertToAppAbilityState(const int32_t state)
196 AppAbilityState AppScheduler::GetAbilityState() const
201 void AppScheduler::OnAbilityRequestDone(const sptr<IRemoteObject> &token, const AppExecFwk::AbilityState state)
211 void AppScheduler::NotifyConfigurationChange(const AppExecFwk::Configuration &config, int32_t userId)
218 void AppScheduler::NotifyStartResidentProcess(std::vector<AppExecFwk::BundleInfo> &bundleInfos)
225 void AppScheduler::OnAppRemoteDied(const std::vector<sptr<IRemoteObject>> &abilityTokens)
232 void AppScheduler::NotifyAppPreCache(int32_t pid, int32_t userId)
239 int AppScheduler::KillApplication(const std::string &bundleName, const bool clearPageStack)
252 int AppScheduler::ForceKillApplication(const std::string &bundleName,
266 int AppScheduler::KillProcessesByAccessTokenId(const uint32_t accessTokenId)
279 int AppScheduler::KillApplicationByUid(const std::string &bundleName, int32_t uid,
293 void AppScheduler::AttachTimeOut(const sptr<IRemoteObject> &token)
299 void AppScheduler::PrepareTerminate(const sptr<IRemoteObject> &token, bool clearMissionFlag)
305 void AppScheduler::OnAppStateChanged(const AppExecFwk::AppProcessData &appData)
323 void AppScheduler::GetRunningProcessInfoByToken(const sptr<IRemoteObject> &token, AppExecFwk::RunningProcessInfo &info)
330 void AppScheduler::GetRunningProcessInfoByPid(const pid_t pid, OHOS::AppExecFwk::RunningProcessInfo &info) const
336 void AppScheduler::SetAbilityForegroundingFlagToAppRecord(const pid_t pid) const
342 void AppScheduler::StartupResidentProcess(const std::vector<AppExecFwk::BundleInfo> &bundleInfos)
348 void AppScheduler::StartSpecifiedAbility(const AAFwk::Want &want, const AppExecFwk::AbilityInfo &abilityInfo,
366 void AppScheduler::StartSpecifiedProcess(
384 int AppScheduler::GetProcessRunningInfos(std::vector<AppExecFwk::RunningProcessInfo> &info)
390 int AppScheduler::GetProcessRunningInfosByUserId(std::vector<AppExecFwk::RunningProcessInfo> &info, int32_t userId)
396 std::string AppScheduler::ConvertAppState(const AppState &state)
401 int AppScheduler::StartUserTest(
413 int AppScheduler::FinishUserTest(const std::string &msg, const int64_t &resultCode, const std::string &bundleName)
424 int AppScheduler::UpdateConfiguration(const AppExecFwk::Configuration &config)
436 int AppScheduler::GetConfiguration(AppExecFwk::Configuration &config)
448 int AppScheduler::GetAbilityRecordsByProcessID(const int pid, std::vector<sptr<IRemoteObject>> &tokens)
460 int AppScheduler::GetApplicationInfoByProcessID(const int pid, AppExecFwk::ApplicationInfo &application, bool &debug)
472 int32_t AppScheduler::NotifyAppMgrRecordExitReason(int32_t pid, int32_t reason, const std::string &exitMsg)
487 int32_t AppScheduler::GetBundleNameByPid(const int pid, std::string &bundleName, int32_t &uid)
498 void AppScheduler::SetCurrentUserId(const int32_t userId)
504 void AppScheduler::SetEnableStartProcessFlagByUserId(int32_t userId, bool enableStartProcess)
510 int32_t AppScheduler::NotifyFault(const AppExecFwk::FaultData &faultData)
522 int32_t AppScheduler::RegisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener)
533 int32_t AppScheduler::UnregisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener)
544 int32_t AppScheduler::AttachAppDebug(const std::string &bundleName)
555 int32_t AppScheduler::DetachAppDebug(const std::string &bundleName)
566 int32_t AppScheduler::RegisterAbilityDebugResponse(const sptr<AppExecFwk::IAbilityDebugResponse> &response)
577 bool AppScheduler::IsAttachDebug(const std::string &bundleName)
588 void AppScheduler::ClearProcessByToken(sptr<IRemoteObject> token) const
595 bool AppScheduler::IsMemorySizeSufficent() const
604 void AppScheduler::AttachedToStatusBar(const sptr<IRemoteObject> &token)
611 void AppScheduler::BlockProcessCacheByPids(const std::vector<int32_t> &pids)
618 bool AppScheduler::CleanAbilityByUserRequest(const sptr<IRemoteObject> &token)
629 bool AppScheduler::IsKilledForUpgradeWeb(const std::string &bundleName)
637 bool AppScheduler::IsProcessContainsOnlyUIAbility(const pid_t pid)
646 bool AppScheduler::IsProcessAttached(sptr<IRemoteObject> token) const
655 bool AppScheduler::IsAppKilling(sptr<IRemoteObject> token) const
664 void AppScheduler::SetProcessCacheStatus(int32_t pid, bool isSupport)