Remove deprecated TrafficStats API.
Bug: 5314214 Change-Id: If7dc3ef012a0e998e83ab4fef27ff19398d3e14c
This commit is contained in:
@ -11765,7 +11765,6 @@ package android.net {
|
||||
method public static void incrementOperationCount(int);
|
||||
method public static void incrementOperationCount(int, int);
|
||||
method public static void setThreadStatsTag(int);
|
||||
method public static deprecated void setThreadStatsTag(java.lang.String);
|
||||
method public static void tagSocket(java.net.Socket) throws java.net.SocketException;
|
||||
method public static void untagSocket(java.net.Socket) throws java.net.SocketException;
|
||||
field public static final int UNSUPPORTED = -1; // 0xffffffff
|
||||
|
@ -104,14 +104,6 @@ public class TrafficStats {
|
||||
return NetworkManagementSocketTagger.getThreadSocketStatsTag();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated unsupported, will eventually be removed
|
||||
*/
|
||||
@Deprecated
|
||||
public static void setThreadStatsTag(String tag) {
|
||||
setThreadStatsTag(tag.hashCode());
|
||||
}
|
||||
|
||||
public static void clearThreadStatsTag() {
|
||||
NetworkManagementSocketTagger.setThreadSocketStatsTag(-1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user