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