diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-02-03 14:50:07 -0800 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-02-03 14:50:13 -0800 |
commit | 241dde2306202e7655fdf41d5381f2874e47e108 (patch) | |
tree | a63e0d09610d9a93f71d725789e5dc3da5f75621 /core/tests/coretests | |
parent | 1c9fcd9086accad30146b7440820ff84d3c77567 (diff) | |
download | frameworks_base-241dde2306202e7655fdf41d5381f2874e47e108.zip frameworks_base-241dde2306202e7655fdf41d5381f2874e47e108.tar.gz frameworks_base-241dde2306202e7655fdf41d5381f2874e47e108.tar.bz2 |
Unify shorthand for byte-based units.
Change-Id: If990859dee3f0973e1d4c48f05312c84071b3328
Diffstat (limited to 'core/tests/coretests')
-rw-r--r-- | core/tests/coretests/src/android/net/NetworkStatsHistoryTest.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/tests/coretests/src/android/net/NetworkStatsHistoryTest.java b/core/tests/coretests/src/android/net/NetworkStatsHistoryTest.java index 1df763a..b181122 100644 --- a/core/tests/coretests/src/android/net/NetworkStatsHistoryTest.java +++ b/core/tests/coretests/src/android/net/NetworkStatsHistoryTest.java @@ -24,6 +24,8 @@ import static android.net.NetworkStatsHistory.FIELD_TX_BYTES; import static android.net.NetworkStatsHistory.DataStreamUtils.readVarLong; import static android.net.NetworkStatsHistory.DataStreamUtils.writeVarLong; import static android.net.NetworkStatsHistory.Entry.UNKNOWN; +import static android.net.TrafficStats.GB_IN_BYTES; +import static android.net.TrafficStats.MB_IN_BYTES; import static android.text.format.DateUtils.DAY_IN_MILLIS; import static android.text.format.DateUtils.HOUR_IN_MILLIS; import static android.text.format.DateUtils.MINUTE_IN_MILLIS; @@ -50,10 +52,6 @@ public class NetworkStatsHistoryTest extends AndroidTestCase { private static final long TEST_START = 1194220800000L; - private static final long KB_IN_BYTES = 1024; - private static final long MB_IN_BYTES = KB_IN_BYTES * 1024; - private static final long GB_IN_BYTES = MB_IN_BYTES * 1024; - private NetworkStatsHistory stats; @Override |