Follow network stats changes.

Now Wi-Fi and mobile traffic is recorded separately, which means we
can compute much more accurate usage estimates.

Bug: 5543387
Change-Id: I26120a219649a3c84806fab0fd1602ab07509410
This commit is contained in:
Jeff Sharkey
2013-06-04 12:29:05 -07:00
parent d517d7405e
commit 133581e267
4 changed files with 84 additions and 44 deletions

View File

@@ -316,6 +316,8 @@ public class PowerUsageDetail extends Fragment implements Button.OnClickListener
switch (mTypes[i]) {
case R.string.usage_type_data_recv:
case R.string.usage_type_data_send:
case R.string.usage_type_data_wifi_recv:
case R.string.usage_type_data_wifi_send:
final long bytes = (long) (mValues[i]);
value = Formatter.formatFileSize(getActivity(), bytes);
break;