diff options
author | Ken Shirriff <kens@google.com> | 2010-02-04 13:33:45 -0800 |
---|---|---|
committer | Ken Shirriff <kens@google.com> | 2010-02-04 14:37:21 -0800 |
commit | 5c19aeca3d41c6a5820dc05a51c38736d3583378 (patch) | |
tree | 842d01879f26ea60425ab99a98c1144b761db712 /core/java | |
parent | 46c53129c6f27c9193ab195a69cb50591b8c1fa2 (diff) | |
download | frameworks_base-5c19aeca3d41c6a5820dc05a51c38736d3583378.zip frameworks_base-5c19aeca3d41c6a5820dc05a51c38736d3583378.tar.gz frameworks_base-5c19aeca3d41c6a5820dc05a51c38736d3583378.tar.bz2 |
API review: TrafficStats: rename Pkts to Packets
Rename getMobileTxPackets(), getMobileRxPackets(), getTotalTxPackets(),
getMobileRxPackets()
bug 2420318
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/net/TrafficStats.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/net/TrafficStats.java b/core/java/android/net/TrafficStats.java index 62e9f1f..ad8e2bf 100644 --- a/core/java/android/net/TrafficStats.java +++ b/core/java/android/net/TrafficStats.java @@ -54,7 +54,7 @@ public class TrafficStats { * @return number of packets. If the statistics are not supported by this device, * {@link #UNSUPPORTED} will be returned. */ - public static long getMobileTxPkts() { + public static long getMobileTxPackets() { return getMobileStat(MOBILE_TX_PACKETS); } @@ -64,7 +64,7 @@ public class TrafficStats { * @return number of packets. If the statistics are not supported by this device, * {@link #UNSUPPORTED} will be returned. */ - public static long getMobileRxPkts() { + public static long getMobileRxPackets() { return getMobileStat(MOBILE_RX_PACKETS); } @@ -94,7 +94,7 @@ public class TrafficStats { * @return the number of packets. If the statistics are not supported by this device, * {@link #UNSUPPORTED} will be returned. */ - public static long getTotalTxPkts() { + public static long getTotalTxPackets() { return getTotalStat("tx_packets"); } @@ -104,7 +104,7 @@ public class TrafficStats { * @return number of packets. If the statistics are not supported by this device, * {@link #UNSUPPORTED} will be returned. */ - public static long getTotalRxPkts() { + public static long getTotalRxPackets() { return getTotalStat("rx_packets"); } |