Loading services/java/com/android/server/net/NetworkStatsService.java +14 −3 Original line number Diff line number Diff line Loading @@ -117,8 +117,7 @@ import java.util.HashSet; */ public class NetworkStatsService extends INetworkStatsService.Stub { private static final String TAG = "NetworkStats"; private static final boolean LOGD = true; private static final boolean LOGV = true; private static final boolean LOGV = false; private static final int MSG_PERFORM_POLL = 1; private static final int MSG_UPDATE_IFACES = 2; Loading Loading @@ -858,8 +857,9 @@ public class NetworkStatsService extends INetworkStatsService.Stub { argSet.add(arg); } // usage: dumpsys netstats --full --uid --tag // usage: dumpsys netstats --full --uid --tag --poll --checkin final boolean poll = argSet.contains("--poll") || argSet.contains("poll"); final boolean checkin = argSet.contains("--checkin"); final boolean fullHistory = argSet.contains("--full") || argSet.contains("full"); final boolean includeUid = argSet.contains("--uid") || argSet.contains("detail"); final boolean includeTag = argSet.contains("--tag") || argSet.contains("detail"); Loading @@ -873,6 +873,17 @@ public class NetworkStatsService extends INetworkStatsService.Stub { return; } if (checkin) { // list current stats files to verify rotation pw.println("Current files:"); pw.increaseIndent(); for (String file : mBaseDir.list()) { pw.println(file); } pw.decreaseIndent(); return; } pw.println("Active interfaces:"); pw.increaseIndent(); for (String iface : mActiveIfaces.keySet()) { Loading Loading
services/java/com/android/server/net/NetworkStatsService.java +14 −3 Original line number Diff line number Diff line Loading @@ -117,8 +117,7 @@ import java.util.HashSet; */ public class NetworkStatsService extends INetworkStatsService.Stub { private static final String TAG = "NetworkStats"; private static final boolean LOGD = true; private static final boolean LOGV = true; private static final boolean LOGV = false; private static final int MSG_PERFORM_POLL = 1; private static final int MSG_UPDATE_IFACES = 2; Loading Loading @@ -858,8 +857,9 @@ public class NetworkStatsService extends INetworkStatsService.Stub { argSet.add(arg); } // usage: dumpsys netstats --full --uid --tag // usage: dumpsys netstats --full --uid --tag --poll --checkin final boolean poll = argSet.contains("--poll") || argSet.contains("poll"); final boolean checkin = argSet.contains("--checkin"); final boolean fullHistory = argSet.contains("--full") || argSet.contains("full"); final boolean includeUid = argSet.contains("--uid") || argSet.contains("detail"); final boolean includeTag = argSet.contains("--tag") || argSet.contains("detail"); Loading @@ -873,6 +873,17 @@ public class NetworkStatsService extends INetworkStatsService.Stub { return; } if (checkin) { // list current stats files to verify rotation pw.println("Current files:"); pw.increaseIndent(); for (String file : mBaseDir.list()) { pw.println(file); } pw.decreaseIndent(); return; } pw.println("Active interfaces:"); pw.increaseIndent(); for (String iface : mActiveIfaces.keySet()) { Loading