Signed-off-by: savior-xzh <xuzheheng2@huawei.com>
Change-Id: I9cac1461ba814dbb89eeded50558ac3277261188
This commit is contained in:
savior-xzh 2024-09-30 10:58:10 +08:00
parent e078502fa8
commit 423f902206
3 changed files with 5 additions and 4 deletions

View File

@ -496,7 +496,7 @@ void UIAbilityImpl::WindowLifeCycleImpl::AfterUnfocused()
void UIAbilityImpl::WindowLifeCycleImpl::ForegroundFailed(int32_t type)
{
TAG_LOGD(AAFwkTag::UIABILITY, "called");
TAG_LOGE(AAFwkTag::UIABILITY, "scb call, ForegroundFailed");
AppExecFwk::PacMap restoreData;
switch (type) {
case static_cast<int32_t>(OHOS::Rosen::WMError::WM_ERROR_INVALID_OPERATION): {

View File

@ -6057,7 +6057,8 @@ void AbilityManagerService::OnAbilityRequestDone(const sptr<IRemoteObject> &toke
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
auto abilityRecord = Token::GetAbilityRecordByToken(token);
CHECK_POINTER(abilityRecord);
TAG_LOGD(AAFwkTag::ABILITYMGR, "name is %{public}s", abilityRecord->GetAbilityInfo().name.c_str());
TAG_LOGI(AAFwkTag::ABILITYMGR, "OnAbilityRequestDone, bundleName: %{public}s, abilityName: %{public}s",
abilityRecord->GetAbilityInfo().bundleName.c_str(), abilityRecord->GetAbilityInfo().name.c_str());
auto userId = abilityRecord->GetApplicationInfo().uid / BASE_USER_RANGE;
auto type = abilityRecord->GetAbilityInfo().type;

View File

@ -1178,7 +1178,7 @@ void AppMgrServiceInner::ApplicationForegrounded(const int32_t recordId)
}
appRecord->PopForegroundingAbilityTokens();
TAG_LOGI(AAFwkTag::APPMGR, "%{public}s is foreground", appRecord->GetBundleName().c_str());
TAG_LOGI(AAFwkTag::APPMGR, "ApplicationForegrounded, bundle: %{public}s", appRecord->GetBundleName().c_str());
if (appRecord->GetApplicationPendingState() == ApplicationPendingState::BACKGROUNDING) {
appRecord->ScheduleBackgroundRunning();
} else if (appRecord->GetApplicationPendingState() == ApplicationPendingState::FOREGROUNDING) {
@ -1226,7 +1226,7 @@ void AppMgrServiceInner::ApplicationBackgrounded(const int32_t recordId)
appRecord->SetApplicationPendingState(ApplicationPendingState::READY);
}
TAG_LOGI(AAFwkTag::APPMGR, "%{public}s is background", appRecord->GetBundleName().c_str());
TAG_LOGI(AAFwkTag::APPMGR, "ApplicationBackgrounded, bundle: %{public}s", appRecord->GetBundleName().c_str());
auto eventInfo = BuildEventInfo(appRecord);
AAFwk::EventReport::SendAppBackgroundEvent(AAFwk::EventName::APP_BACKGROUND, eventInfo);
}