public class TrafficStats extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
UNSUPPORTED |
| Constructor and Description |
|---|
TrafficStats() |
| 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 uid) |
static long |
getUidRxPackets(int uid) |
static long |
getUidTcpRxBytes(int uid) |
static long |
getUidTcpRxSegments(int uid) |
static long |
getUidTcpTxBytes(int uid) |
static long |
getUidTcpTxSegments(int uid) |
static long |
getUidTxBytes(int uid) |
static long |
getUidTxPackets(int uid) |
static long |
getUidUdpRxBytes(int uid) |
static long |
getUidUdpRxPackets(int uid) |
static long |
getUidUdpTxBytes(int uid) |
static long |
getUidUdpTxPackets(int uid) |
static void |
incrementOperationCount(int operationCount) |
static void |
incrementOperationCount(int tag,
int operationCount) |
static void |
setThreadStatsTag(int tag) |
static void |
tagSocket(Socket socket) |
static void |
untagSocket(Socket socket) |
public static final int UNSUPPORTED
public static void setThreadStatsTag(int tag)
public static int getThreadStatsTag()
public static void clearThreadStatsTag()
public static void tagSocket(Socket socket) throws SocketException
SocketExceptionpublic static void untagSocket(Socket socket) throws SocketException
SocketExceptionpublic static void incrementOperationCount(int operationCount)
public static void incrementOperationCount(int tag,
int operationCount)
public static long getMobileTxPackets()
public static long getMobileRxPackets()
public static long getMobileTxBytes()
public static long getMobileRxBytes()
public static long getTotalTxPackets()
public static long getTotalRxPackets()
public static long getTotalTxBytes()
public static long getTotalRxBytes()
public static long getUidTxBytes(int uid)
public static long getUidRxBytes(int uid)
public static long getUidTxPackets(int uid)
public static long getUidRxPackets(int uid)
public static long getUidTcpTxBytes(int uid)
public static long getUidTcpRxBytes(int uid)
public static long getUidUdpTxBytes(int uid)
public static long getUidUdpRxBytes(int uid)
public static long getUidTcpTxSegments(int uid)
public static long getUidTcpRxSegments(int uid)
public static long getUidUdpTxPackets(int uid)
public static long getUidUdpRxPackets(int uid)
Copyright © 2008-2013. All Rights Reserved.