mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-11 20:03:42 +00:00
update code diff
Signed-off-by: tantingting <tantingting5@huawei.com>
This commit is contained in:
parent
41f4a9a82e
commit
16e7ee1931
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user