Update to follow BatteryStats.

Change data use to be based on packets instead of bytes.

Change-Id: I536dd2c2fc3fbeb12689e793f79e5fac984fe3af
This commit is contained in:
Dianne Hackborn
2013-12-12 16:17:49 -08:00
parent 73fed2c477
commit fb03058dc9
5 changed files with 62 additions and 46 deletions

View File

@@ -322,8 +322,8 @@ public class PowerUsageDetail extends Fragment implements Button.OnClickListener
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);
final long packets = (long) (mValues[i]);
value = Long.toString(packets);
break;
case R.string.usage_type_no_coverage:
final int percentage = (int) Math.floor(mValues[i]);