Bring back network counters in battery stats.

Bug: 4902271
Change-Id: I0900c030407a86efb14a9d528ab355c56f54679e
This commit is contained in:
Jeff Sharkey
2011-10-09 13:21:10 -07:00
parent a41dc63ada
commit 3d4c9a7a32

View File

@@ -202,8 +202,6 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable {
switch (sipper.drainType) { switch (sipper.drainType) {
case APP: case APP:
{ {
// TODO: surface tcpBytesSent/tcpBytesReceived again once
// measured separately from uid_stats.
Uid uid = sipper.uidObj; Uid uid = sipper.uidObj;
types = new int[] { types = new int[] {
R.string.usage_type_cpu, R.string.usage_type_cpu,
@@ -211,6 +209,8 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable {
R.string.usage_type_wake_lock, R.string.usage_type_wake_lock,
R.string.usage_type_gps, R.string.usage_type_gps,
R.string.usage_type_wifi_running, R.string.usage_type_wifi_running,
R.string.usage_type_data_send,
R.string.usage_type_data_recv,
R.string.usage_type_audio, R.string.usage_type_audio,
R.string.usage_type_video, R.string.usage_type_video,
}; };
@@ -220,6 +220,8 @@ public class PowerUsageSummary extends PreferenceFragment implements Runnable {
sipper.wakeLockTime, sipper.wakeLockTime,
sipper.gpsTime, sipper.gpsTime,
sipper.wifiRunningTime, sipper.wifiRunningTime,
sipper.tcpBytesSent,
sipper.tcpBytesReceived,
0, 0,
0 0
}; };