Add IP conn metrics to dumpsys and bug reports

Test: manually created a bug report and inspected content.
Change-Id: I3119db2a25c895264eae409f1dda9fc756cd244e
This commit is contained in:
Hugo Benichi
2016-10-19 13:48:40 +09:00
parent daeeda35d9
commit 51d14cb607

View File

@@ -186,6 +186,7 @@ final public class IpConnectivityMetrics extends SystemService {
static final String CMD_FLUSH = "flush";
static final String CMD_LIST = "list";
static final String CMD_STATS = "stats";
static final String CMD_DUMPSYS = "-a"; // dumpsys.cpp dumps services with "-a" as arguments
static final String CMD_DEFAULT = CMD_STATS;
@Override
@@ -203,6 +204,8 @@ final public class IpConnectivityMetrics extends SystemService {
case CMD_FLUSH:
cmdFlush(fd, pw, args);
return;
case CMD_DUMPSYS:
// Fallthrough to CMD_LIST when dumpsys.cpp dumps services states (bug reports)
case CMD_LIST:
cmdList(fd, pw, args);
return;