android.net
Class TrafficStats

java.lang.Object
  extended by android.net.TrafficStats

public class TrafficStats
extends Object


Field Summary
static int UNSUPPORTED
           
 
Constructor Summary
TrafficStats()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSUPPORTED

public static final int UNSUPPORTED
See Also:
Constant Field Values
Constructor Detail

TrafficStats

public TrafficStats()
Method Detail

setThreadStatsTag

public static void setThreadStatsTag(int tag)

getThreadStatsTag

public static int getThreadStatsTag()

clearThreadStatsTag

public static void clearThreadStatsTag()

tagSocket

public static void tagSocket(Socket socket)
                      throws SocketException
Throws:
SocketException

untagSocket

public static void untagSocket(Socket socket)
                        throws SocketException
Throws:
SocketException

incrementOperationCount

public static void incrementOperationCount(int operationCount)

incrementOperationCount

public static void incrementOperationCount(int tag,
                                           int operationCount)

getMobileTxPackets

public static long getMobileTxPackets()

getMobileRxPackets

public static long getMobileRxPackets()

getMobileTxBytes

public static long getMobileTxBytes()

getMobileRxBytes

public static long getMobileRxBytes()

getTotalTxPackets

public static long getTotalTxPackets()

getTotalRxPackets

public static long getTotalRxPackets()

getTotalTxBytes

public static long getTotalTxBytes()

getTotalRxBytes

public static long getTotalRxBytes()

getUidTxBytes

public static long getUidTxBytes(int uid)

getUidRxBytes

public static long getUidRxBytes(int uid)

getUidTxPackets

public static long getUidTxPackets(int uid)

getUidRxPackets

public static long getUidRxPackets(int uid)

getUidTcpTxBytes

public static long getUidTcpTxBytes(int uid)

getUidTcpRxBytes

public static long getUidTcpRxBytes(int uid)

getUidUdpTxBytes

public static long getUidUdpTxBytes(int uid)

getUidUdpRxBytes

public static long getUidUdpRxBytes(int uid)

getUidTcpTxSegments

public static long getUidTcpTxSegments(int uid)

getUidTcpRxSegments

public static long getUidTcpRxSegments(int uid)

getUidUdpTxPackets

public static long getUidUdpTxPackets(int uid)

getUidUdpRxPackets

public static long getUidUdpRxPackets(int uid)


Copyright © 2008-2012. All Rights Reserved.