Merge "[MS63.1] Remove TrafficStats.TAG_SYSTEM_DOWNLOAD dependency" am: 3a57e69dfe am: 3deb5c703a am: 4a07134b1f am: fc922e00ea

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1952106

Change-Id: I280b54ef8b105ed5a0fc6107e47a78d60b915514
This commit is contained in:
Treehugger Robot
2022-01-18 14:06:26 +00:00
committed by Automerger Merge Worker

View File

@@ -281,6 +281,18 @@ public class TrafficStats {
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
* from the current thread. Only one active tag per thread is supported.