Java android.net TrafficStats fields, constructors, methods, implement or subclass

Example usage for Java android.net TrafficStats fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.net TrafficStats.

The text is from its open source code.

Field

intUNSUPPORTED
The return value to indicate that the device does not support the statistic.

Method

voidclearThreadStatsTag()
Clear any active tag set to account Socket traffic originating from the current thread.
longgetMobileRxBytes()
Return number of bytes received across mobile networks since device boot.
longgetMobileTxBytes()
Return number of bytes transmitted across mobile networks since device boot.
longgetTotalRxBytes()
Return number of bytes received since device boot.
longgetTotalRxPackets()
Return number of packets received since device boot.
longgetTotalTxBytes()
Return number of bytes transmitted since device boot.
longgetUidRxBytes(int uid)
Return number of bytes received by the given UID since device boot.
longgetUidRxPackets(int uid)
Return number of packets received by the given UID since device boot.
longgetUidTcpRxBytes(int uid)
longgetUidTcpRxSegments(int uid)
longgetUidTcpTxBytes(int uid)
longgetUidTcpTxSegments(int uid)
longgetUidTxBytes(int uid)
Return number of bytes transmitted by the given UID since device boot.
longgetUidTxPackets(int uid)
Return number of packets transmitted by the given UID since device boot.
longgetUidUdpRxBytes(int uid)
longgetUidUdpRxPackets(int uid)
longgetUidUdpTxBytes(int uid)
longgetUidUdpTxPackets(int uid)
voidsetThreadStatsTag(int tag)
Set active tag to use when accounting Socket traffic originating from the current thread.