Merge "Ignore dumpsys -a option" into pi-dev

am: eb71027d25

Change-Id: Ie1becdc71094339a953cb2858f5cc0fedbb353de
This commit is contained in:
Fyodor Kupolov
2018-04-26 12:14:12 -07:00
committed by android-build-merger

View File

@@ -56,7 +56,10 @@ public class BinderCallsStatsService extends Binder {
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
if (args != null) { if (args != null) {
for (final String arg : args) { for (final String arg : args) {
if ("--reset".equals(arg)) { if ("-a".equals(arg)) {
// We currently dump all information by default
continue;
} else if ("--reset".equals(arg)) {
reset(); reset();
pw.println("binder_calls_stats reset."); pw.println("binder_calls_stats reset.");
return; return;
@@ -78,7 +81,6 @@ public class BinderCallsStatsService extends Binder {
return; return;
} else { } else {
pw.println("Unknown option: " + arg); pw.println("Unknown option: " + arg);
return;
} }
} }
} }