android.net
Class TrafficStats
java.lang.Object
android.net.TrafficStats
public class TrafficStats
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNSUPPORTED
public static final int UNSUPPORTED
- See Also:
- Constant Field Values
TrafficStats
public TrafficStats()
setThreadStatsTag
public static void setThreadStatsTag(int tag)
getThreadStatsTag
public static int getThreadStatsTag()
clearThreadStatsTag
public static void clearThreadStatsTag()
tagSocket
public static void tagSocket(Socket socket)
throws SocketException
- Throws:
SocketException
untagSocket
public static void untagSocket(Socket socket)
throws SocketException
- Throws:
SocketException
incrementOperationCount
public static void incrementOperationCount(int operationCount)
incrementOperationCount
public static void incrementOperationCount(int tag,
int operationCount)
getMobileTxPackets
public static long getMobileTxPackets()
getMobileRxPackets
public static long getMobileRxPackets()
getMobileTxBytes
public static long getMobileTxBytes()
getMobileRxBytes
public static long getMobileRxBytes()
getTotalTxPackets
public static long getTotalTxPackets()
getTotalRxPackets
public static long getTotalRxPackets()
getTotalTxBytes
public static long getTotalTxBytes()
getTotalRxBytes
public static long getTotalRxBytes()
getUidTxBytes
public static long getUidTxBytes(int uid)
getUidRxBytes
public static long getUidRxBytes(int uid)
getUidTxPackets
public static long getUidTxPackets(int uid)
getUidRxPackets
public static long getUidRxPackets(int uid)
getUidTcpTxBytes
public static long getUidTcpTxBytes(int uid)
getUidTcpRxBytes
public static long getUidTcpRxBytes(int uid)
getUidUdpTxBytes
public static long getUidUdpTxBytes(int uid)
getUidUdpRxBytes
public static long getUidUdpRxBytes(int uid)
getUidTcpTxSegments
public static long getUidTcpTxSegments(int uid)
getUidTcpRxSegments
public static long getUidTcpRxSegments(int uid)
getUidUdpTxPackets
public static long getUidUdpTxPackets(int uid)
getUidUdpRxPackets
public static long getUidUdpRxPackets(int uid)
Copyright © 2008-2012. All Rights Reserved.