Merge "[MS63.1] Remove TrafficStats.TAG_SYSTEM_DOWNLOAD dependency" am: a312a961e0 am: 78f8ec3696
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1952106 Change-Id: I1250e9246ca66cc660605510d22187c5886cb625
This commit is contained in:
@@ -7597,6 +7597,7 @@ package android.net {
|
|||||||
public class TrafficStats {
|
public class TrafficStats {
|
||||||
method public static void setThreadStatsTagApp();
|
method public static void setThreadStatsTagApp();
|
||||||
method public static void setThreadStatsTagBackup();
|
method public static void setThreadStatsTagBackup();
|
||||||
|
method public static void setThreadStatsTagDownload();
|
||||||
method public static void setThreadStatsTagRestore();
|
method public static void setThreadStatsTagRestore();
|
||||||
field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_END = -113; // 0xffffff8f
|
field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_END = -113; // 0xffffff8f
|
||||||
field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_START = -128; // 0xffffff80
|
field public static final int TAG_NETWORK_STACK_IMPERSONATION_RANGE_START = -128; // 0xffffff80
|
||||||
|
|||||||
@@ -281,6 +281,18 @@ public class TrafficStats {
|
|||||||
setThreadStatsTag(TAG_SYSTEM_APP);
|
setThreadStatsTag(TAG_SYSTEM_APP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set active tag to use when accounting {@link Socket} traffic originating
|
||||||
|
* from the current thread. The tag used internally is well-defined to
|
||||||
|
* distinguish all download provider traffic.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
@SystemApi
|
||||||
|
public static void setThreadStatsTagDownload() {
|
||||||
|
setThreadStatsTag(TAG_SYSTEM_DOWNLOAD);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the active tag used when accounting {@link Socket} traffic originating
|
* Get the active tag used when accounting {@link Socket} traffic originating
|
||||||
* from the current thread. Only one active tag per thread is supported.
|
* from the current thread. Only one active tag per thread is supported.
|
||||||
|
|||||||
Reference in New Issue
Block a user