update code diff

Signed-off-by: tantingting <tantingting5@huawei.com>
This commit is contained in:
tantingting 2024-07-29 19:24:17 +08:00
parent 41f4a9a82e
commit 16e7ee1931
2 changed files with 11 additions and 10 deletions

View File

@ -117,6 +117,7 @@ bool ApplicationImpl::PerformTerminate(bool isLastProcess)
curState_ = APP_STATE_TERMINATED;
return true;
}
TAG_LOGE(AAFwkTag::APPKIT, "curState is %{public}d", curState_);
return false;
}

View File

@ -1084,16 +1084,6 @@ int32_t AppMgrClient::UnregisterAppRunningStatusListener(const sptr<IRemoteObjec
return service->UnregisterAppRunningStatusListener(listener);
}
bool AppMgrClient::IsFinalAppProcess()
{
sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject());
if (service == nullptr) {
TAG_LOGE(AAFwkTag::APPMGR, "Service is nullptr.");
return false;
}
return service->IsFinalAppProcess();
}
void AppMgrClient::ClearProcessByToken(sptr<IRemoteObject> token) const
{
sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject());
@ -1109,6 +1099,16 @@ void AppMgrClient::ClearProcessByToken(sptr<IRemoteObject> token) const
amsService->ClearProcessByToken(token);
}
bool AppMgrClient::IsFinalAppProcess()
{
sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject());
if (service == nullptr) {
TAG_LOGE(AAFwkTag::APPMGR, "Service is nullptr.");
return false;
}
return service->IsFinalAppProcess();
}
int32_t AppMgrClient::RegisterRenderStateObserver(const sptr<IRenderStateObserver> &observer)
{
sptr<IAppMgr> service = iface_cast<IAppMgr>(mgrHolder_->GetRemoteObject());