Example usage for Java android.net TrafficStats fields, constructors, methods, implement or subclass
The text is from its open source code.
int | UNSUPPORTED The return value to indicate that the device does not support the statistic. |
void | clearThreadStatsTag() Clear any active tag set to account Socket traffic originating from the current thread. |
long | getMobileRxBytes() Return number of bytes received across mobile networks since device boot. |
long | getMobileTxBytes() Return number of bytes transmitted across mobile networks since device boot. |
long | getTotalRxBytes() Return number of bytes received since device boot. |
long | getTotalRxPackets() Return number of packets received since device boot. |
long | getTotalTxBytes() Return number of bytes transmitted since device boot. |
long | getUidRxBytes(int uid) Return number of bytes received by the given UID since device boot. |
long | getUidRxPackets(int uid) Return number of packets received by the given UID since device boot. |
long | getUidTcpRxBytes(int uid) |
long | getUidTcpRxSegments(int uid) |
long | getUidTcpTxBytes(int uid) |
long | getUidTcpTxSegments(int uid) |
long | getUidTxBytes(int uid) Return number of bytes transmitted by the given UID since device boot. |
long | getUidTxPackets(int uid) Return number of packets transmitted by the given UID since device boot. |
long | getUidUdpRxBytes(int uid) |
long | getUidUdpRxPackets(int uid) |
long | getUidUdpTxBytes(int uid) |
long | getUidUdpTxPackets(int uid) |
void | setThreadStatsTag(int tag) Set active tag to use when accounting Socket traffic originating from the current thread. |