summaryrefslogtreecommitdiffstats
path: root/core/java/android/net
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-06-15 21:09:10 -0700
committerJeff Sharkey <jsharkey@android.com>2015-06-15 21:39:28 -0700
commitb521feaed410b6862baca9b42d5fd7c398e07b2f (patch)
tree5916d7a46ffa214a1c2fcf4175febfafc7895970 /core/java/android/net
parent0463cad783e78381f390855d1cc9d7d8d803b634 (diff)
downloadframeworks_base-b521feaed410b6862baca9b42d5fd7c398e07b2f.zip
frameworks_base-b521feaed410b6862baca9b42d5fd7c398e07b2f.tar.gz
frameworks_base-b521feaed410b6862baca9b42d5fd7c398e07b2f.tar.bz2
Update file size formatting.
Per UX, default strings should have space between value and units resulting in "12.3 GB". Add a formatting variant that returns the various components for callers who want to build their own strings. For now there is only one mounted emulated volume at a time, and it's always the primary storage, so give it the default rootId to keep old Uris working. Change-Id: Ifcc72a91a6b397ee65dc92642153286186eb64ac
Diffstat (limited to 'core/java/android/net')
-rw-r--r--core/java/android/net/TrafficStats.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/net/TrafficStats.java b/core/java/android/net/TrafficStats.java
index ff3de2b..bb08be2 100644
--- a/core/java/android/net/TrafficStats.java
+++ b/core/java/android/net/TrafficStats.java
@@ -53,6 +53,8 @@ public class TrafficStats {
public static final long GB_IN_BYTES = MB_IN_BYTES * 1024;
/** @hide */
public static final long TB_IN_BYTES = GB_IN_BYTES * 1024;
+ /** @hide */
+ public static final long PB_IN_BYTES = TB_IN_BYTES * 1024;
/**
* Special UID value used when collecting {@link NetworkStatsHistory} for