Merge "Improved some WM / AM logs" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-03-29 21:46:38 +00:00
committed by Android (Google) Code Review
3 changed files with 8 additions and 4 deletions

View File

@@ -2539,7 +2539,8 @@ public class ActivityOptions extends ComponentOptions {
public String toString() {
return "ActivityOptions(" + hashCode() + "), mPackageName=" + mPackageName
+ ", mAnimationType=" + mAnimationType + ", mStartX=" + mStartX + ", mStartY="
+ mStartY + ", mWidth=" + mWidth + ", mHeight=" + mHeight;
+ mStartY + ", mWidth=" + mWidth + ", mHeight=" + mHeight + ", mLaunchDisplayId="
+ mLaunchDisplayId;
}
/**

View File

@@ -1155,6 +1155,8 @@ class ActivityMetricsLogger {
sb.setLength(0);
sb.append("Displayed ");
sb.append(info.launchedActivityShortComponentName);
sb.append(" for user ");
sb.append(info.userId);
sb.append(": ");
TimeUtils.formatDuration(info.windowsDrawnDelayMs, sb);
Log.i(TAG, sb.toString());

View File

@@ -976,9 +976,10 @@ class RecentTasks {
if (!task.mUserSetupComplete) {
// Don't include task launched while user is not done setting-up.
if (DEBUG_RECENTS) {
Slog.d(TAG_RECENTS, "Skipping, user setup not complete: " + task);
}
// NOTE: not guarding with DEBUG_RECENTS as it's not frequent enough to spam logcat,
// but is useful when running CTS.
Slog.d(TAG_RECENTS, "Skipping, user setup not complete: " + task);
continue;
}