Merge "Rename API to match StorageStats." into oc-mr1-dev

am: 74f7a1425f

Change-Id: I87815da4f2f96c476fcdfdb3361d0f43b895e909
This commit is contained in:
Jeff Sharkey
2017-08-12 00:45:19 +00:00
committed by android-build-merger

View File

@@ -110,12 +110,12 @@ public class TrafficStats {
public static final int TAG_SYSTEM_RESTORE = 0xFFFFFF04; public static final int TAG_SYSTEM_RESTORE = 0xFFFFFF04;
/** /**
* Default tag value for code or resources downloaded by an app store on * Default tag value for code (typically APKs) downloaded by an app store on
* behalf of the app, such as app updates. * behalf of the app, such as updates.
* *
* @hide * @hide
*/ */
public static final int TAG_SYSTEM_CODE = 0xFFFFFF05; public static final int TAG_SYSTEM_APP = 0xFFFFFF05;
/** @hide */ /** @hide */
public static final int TAG_SYSTEM_DHCP = 0xFFFFFF40; public static final int TAG_SYSTEM_DHCP = 0xFFFFFF40;
@@ -213,14 +213,14 @@ public class TrafficStats {
/** /**
* Set active tag to use when accounting {@link Socket} traffic originating * Set active tag to use when accounting {@link Socket} traffic originating
* from the current thread. The tag used internally is well-defined to * from the current thread. The tag used internally is well-defined to
* distinguish all code-related traffic, such as updates performed by an app * distinguish all code (typically APKs) downloaded by an app store on
* store. * behalf of the app, such as updates.
* *
* @hide * @hide
*/ */
@SystemApi @SystemApi
public static void setThreadStatsTagCode() { public static void setThreadStatsTagApp() {
setThreadStatsTag(TAG_SYSTEM_CODE); setThreadStatsTag(TAG_SYSTEM_APP);
} }
/** /**