Merge "Fix usagestats DUMP OF SERVICE"

This commit is contained in:
Esteban Talavera
2017-12-19 17:46:06 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -3850,7 +3850,7 @@ public class ActivityManager {
pw.println();
dumpService(pw, fd, ProcessStats.SERVICE_NAME, new String[] { packageName });
pw.println();
dumpService(pw, fd, "usagestats", new String[] { "--packages", packageName });
dumpService(pw, fd, "usagestats", new String[] { packageName });
pw.println();
dumpService(pw, fd, BatteryStats.SERVICE_NAME, new String[] { packageName });
pw.flush();

View File

@@ -495,8 +495,8 @@ public class UsageStatsService extends SystemService implements
flushToDiskLocked();
pw.println("Flushed stats to disk");
return;
} else {
// Anything else is a pkg to filter
} else if (arg != null && !arg.startsWith("-")) {
// Anything else that doesn't start with '-' is a pkg to filter
pkg = arg;
break;
}