Class TrafficStats
public class TrafficStats : JVMBridgeBase<TrafficStats>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
- Inheritance
-
TrafficStats
- Implements
- Extension Methods
Constructors
TrafficStats()
public TrafficStats()
TrafficStats(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public TrafficStats(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
UNSUPPORTED
public static int UNSUPPORTED { get; set; }
Property Value
Methods
ClearThreadStatsTag()
public static void ClearThreadStatsTag()
ClearThreadStatsUid()
public static void ClearThreadStatsUid()
CreatePoolableInstance()
HPA initializer for TrafficStats()
public static TrafficStats CreatePoolableInstance()
Returns
GetAndSetThreadStatsTag(int)
public static int GetAndSetThreadStatsTag(int arg0)
Parameters
Returns
GetMobileRxBytes()
public static long GetMobileRxBytes()
Returns
GetMobileRxPackets()
public static long GetMobileRxPackets()
Returns
GetMobileTxBytes()
public static long GetMobileTxBytes()
Returns
GetMobileTxPackets()
public static long GetMobileTxPackets()
Returns
GetRxBytes(String)
public static long GetRxBytes(String arg0)
Parameters
Returns
GetRxPackets(String)
https://developer.android.com/reference/android/net/TrafficStats.html#getRxPackets(java.lang.String)
public static long GetRxPackets(String arg0)
Parameters
Returns
GetThreadStatsTag()
public static int GetThreadStatsTag()
Returns
GetThreadStatsUid()
public static int GetThreadStatsUid()
Returns
GetTotalRxBytes()
public static long GetTotalRxBytes()
Returns
GetTotalRxPackets()
public static long GetTotalRxPackets()
Returns
GetTotalTxBytes()
public static long GetTotalTxBytes()
Returns
GetTotalTxPackets()
public static long GetTotalTxPackets()
Returns
GetTxBytes(String)
public static long GetTxBytes(String arg0)
Parameters
Returns
GetTxPackets(String)
https://developer.android.com/reference/android/net/TrafficStats.html#getTxPackets(java.lang.String)
public static long GetTxPackets(String arg0)
Parameters
Returns
GetUidRxBytes(int)
public static long GetUidRxBytes(int arg0)
Parameters
Returns
GetUidRxPackets(int)
public static long GetUidRxPackets(int arg0)
Parameters
Returns
GetUidTcpRxBytes(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidTcpRxBytes(int arg0)
Parameters
Returns
GetUidTcpRxSegments(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidTcpRxSegments(int arg0)
Parameters
Returns
GetUidTcpTxBytes(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidTcpTxBytes(int arg0)
Parameters
Returns
GetUidTcpTxSegments(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidTcpTxSegments(int arg0)
Parameters
Returns
GetUidTxBytes(int)
public static long GetUidTxBytes(int arg0)
Parameters
Returns
GetUidTxPackets(int)
public static long GetUidTxPackets(int arg0)
Parameters
Returns
GetUidUdpRxBytes(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidUdpRxBytes(int arg0)
Parameters
Returns
GetUidUdpRxPackets(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidUdpRxPackets(int arg0)
Parameters
Returns
GetUidUdpTxBytes(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidUdpTxBytes(int arg0)
Parameters
Returns
GetUidUdpTxPackets(int)
[Obsolete("Deprecated in JVM")]
public static long GetUidUdpTxPackets(int arg0)
Parameters
Returns
IncrementOperationCount(int)
public static void IncrementOperationCount(int arg0)
Parameters
IncrementOperationCount(int, int)
public static void IncrementOperationCount(int arg0, int arg1)
Parameters
SetThreadStatsTag(int)
public static void SetThreadStatsTag(int arg0)
Parameters
SetThreadStatsUid(int)
public static void SetThreadStatsUid(int arg0)
Parameters
TagDatagramSocket(DatagramSocket)
public static void TagDatagramSocket(DatagramSocket arg0)
Parameters
Exceptions
TagFileDescriptor(FileDescriptor)
public static void TagFileDescriptor(FileDescriptor arg0)
Parameters
Exceptions
TagSocket(Socket)
public static void TagSocket(Socket arg0)
Parameters
Exceptions
UntagDatagramSocket(DatagramSocket)
public static void UntagDatagramSocket(DatagramSocket arg0)
Parameters
Exceptions
UntagFileDescriptor(FileDescriptor)
public static void UntagFileDescriptor(FileDescriptor arg0)
Parameters
Exceptions
UntagSocket(Socket)
public static void UntagSocket(Socket arg0)