belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
TrafficStatsCompat
public
final
class
TrafficStatsCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.net.TrafficStatsCompat |
Helper for accessing features in TrafficStats
.
Summary
Public methods | |
---|---|
static
void
|
clearThreadStatsTag()
This method was deprecated
in API level 26.1.0.
Use |
static
int
|
getThreadStatsTag()
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
incrementOperationCount(int operationCount)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
incrementOperationCount(int tag, int operationCount)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
setThreadStatsTag(int tag)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
tagDatagramSocket(DatagramSocket socket)
Tag the given |
static
void
|
tagSocket(Socket socket)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
untagDatagramSocket(DatagramSocket socket)
Remove any statistics parameters from the given |
static
void
|
untagSocket(Socket socket)
This method was deprecated
in API level 26.1.0.
Use |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Public methods
clearThreadStatsTag
void clearThreadStatsTag ()
This method was deprecated
in API level 26.1.0.
Use clearThreadStatsTag()
directly.
Clear active tag used when accounting Socket
traffic originating
from the current thread.
getThreadStatsTag
int getThreadStatsTag ()
This method was deprecated
in API level 26.1.0.
Use getThreadStatsTag()
directly.
Get the active tag used when accounting Socket
traffic originating
from the current thread. Only one active tag per thread is supported.
tagSocket(Socket)
.
Returns | |
---|---|
int |
incrementOperationCount
void incrementOperationCount (int operationCount)
This method was deprecated
in API level 26.1.0.
Use