Unify shorthand for byte-based units.

Change-Id: If990859dee3f0973e1d4c48f05312c84071b3328
This commit is contained in:
Jeff Sharkey
2012-02-03 14:50:07 -08:00
parent 43dc9a2d93
commit 94a315cec5
2 changed files with 8 additions and 4 deletions

View File

@@ -44,6 +44,13 @@ public class TrafficStats {
*/
public final static int UNSUPPORTED = -1;
/** @hide */
public static final long KB_IN_BYTES = 1024;
/** @hide */
public static final long MB_IN_BYTES = KB_IN_BYTES * 1024;
/** @hide */
public static final long GB_IN_BYTES = MB_IN_BYTES * 1024;
/**
* Special UID value used when collecting {@link NetworkStatsHistory} for
* removed applications.