@Implements(value=android.net.TrafficStats.class) public class ShadowTrafficStats extends java.lang.Object
Constructor and Description |
---|
ShadowTrafficStats() |
Modifier and Type | Method and Description |
---|---|
protected static void |
clearThreadStatsTag() |
protected static long |
getMobileRxBytes() |
protected static long |
getMobileRxPackets() |
protected static long |
getMobileTxBytes() |
protected static long |
getMobileTxPackets() |
protected static int |
getThreadStatsTag() |
protected static long |
getTotalRxBytes() |
protected static long |
getTotalRxPackets() |
protected static long |
getTotalTxBytes() |
protected static long |
getTotalTxPackets() |
protected static long |
getUidRxBytes(int i) |
protected static long |
getUidRxPackets(int i) |
protected static long |
getUidTcpRxBytes(int i) |
protected static long |
getUidTcpRxSegments(int i) |
protected static long |
getUidTcpTxBytes(int i) |
protected static long |
getUidTcpTxSegments(int i) |
protected static long |
getUidTxBytes(int i) |
protected static long |
getUidTxPackets(int i) |
protected static long |
getUidUdpRxBytes(int i) |
protected static long |
getUidUdpRxPackets(int i) |
protected static long |
getUidUdpTxBytes(int i) |
protected static long |
getUidUdpTxPackets(int i) |
protected static void |
incrementOperationCount(int operationCount) |
protected static void |
incrementOperationCount(int tag,
int operationCount) |
protected static void |
setThreadStatsTag(int tag) |
protected static void |
tagSocket(java.net.Socket socket) |
protected static void |
untagSocket(java.net.Socket socket) |
@Implementation protected static void setThreadStatsTag(int tag)
@Implementation protected static int getThreadStatsTag()
@Implementation protected static void clearThreadStatsTag()
@Implementation protected static void tagSocket(java.net.Socket socket) throws java.net.SocketException
java.net.SocketException
@Implementation protected static void untagSocket(java.net.Socket socket) throws java.net.SocketException
java.net.SocketException
@Implementation protected static void incrementOperationCount(int operationCount)
@Implementation protected static void incrementOperationCount(int tag, int operationCount)
@Implementation protected static long getMobileTxPackets()
@Implementation protected static long getMobileRxPackets()
@Implementation protected static long getMobileTxBytes()
@Implementation protected static long getMobileRxBytes()
@Implementation protected static long getTotalTxPackets()
@Implementation protected static long getTotalRxPackets()
@Implementation protected static long getTotalTxBytes()
@Implementation protected static long getTotalRxBytes()
@Implementation protected static long getUidTxBytes(int i)
@Implementation protected static long getUidRxBytes(int i)
@Implementation protected static long getUidTxPackets(int i)
@Implementation protected static long getUidRxPackets(int i)
@Implementation protected static long getUidTcpTxBytes(int i)
@Implementation protected static long getUidTcpRxBytes(int i)
@Implementation protected static long getUidUdpTxBytes(int i)
@Implementation protected static long getUidUdpRxBytes(int i)
@Implementation protected static long getUidTcpTxSegments(int i)
@Implementation protected static long getUidTcpRxSegments(int i)
@Implementation protected static long getUidUdpTxPackets(int i)
@Implementation protected static long getUidUdpRxPackets(int i)