Android.Net.TrafficStats Members

The members of Android.Net.TrafficStats are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
Unsupportedint (-1). The return value to indicate that the device does not support the statistic.

Public Properties

[read-only]
static
MobileRxByteslong. Return number of bytes received across mobile networks since device boot.
[read-only]
static
MobileRxPacketslong. Return number of packets received across mobile networks since device boot.
[read-only]
static
MobileTxByteslong. Return number of bytes transmitted across mobile networks since device boot.
[read-only]
static
MobileTxPacketslong. Return number of packets transmitted across mobile networks since device boot.
static
ThreadStatsTagint. Get the active tag used when accounting Java.Net.Socket traffic originating from the current thread.
[read-only]
static
TotalRxByteslong. Return number of bytes received since device boot.
[read-only]
static
TotalRxPacketslong. Return number of packets received since device boot.
[read-only]
static
TotalTxByteslong. Return number of bytes transmitted since device boot.
[read-only]
static
TotalTxPacketslong. Return number of packets transmitted since device boot.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
ClearThreadStatsTag()
Clear any active tag set to account Java.Net.Socket traffic originating from the current thread.
static
GetUidRxBytes(int) : long
Return number of bytes received by the given UID since device boot.
static
GetUidRxPackets(int) : long
Return number of packets received by the given UID since device boot.
static
GetUidTcpRxBytes(int) : long
static
GetUidTcpRxSegments(int) : long
static
GetUidTcpTxBytes(int) : long
static
GetUidTcpTxSegments(int) : long
static
GetUidTxBytes(int) : long
Return number of bytes transmitted by the given UID since device boot.
static
GetUidTxPackets(int) : long
Return number of packets transmitted by the given UID since device boot.
static
GetUidUdpRxBytes(int) : long
static
GetUidUdpRxPackets(int) : long
static
GetUidUdpTxBytes(int) : long
static
GetUidUdpTxPackets(int) : long
static
IncrementOperationCount(int)
Increment count of network operations performed under the accounting tag currently active on the calling thread.
static
IncrementOperationCount(int, int)
Increment count of network operations performed under the given accounting tag.
static
TagSocket(Java.Net.Socket)
Tag the given Java.Net.Socket with any statistics parameters active for the current thread.
static
UntagSocket(Java.Net.Socket)
Remove any statistics parameters from the given Java.Net.Socket.