Merge "Fix usagestats DUMP OF SERVICE"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e51ffaa6ac
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user