Update TrafficStats SystemApi docs.

Bug: 25726690
Change-Id: I221d62eaaf1e0fca8c26e4f19cb25d306710a849
This commit is contained in:
Jeff Sharkey
2016-03-22 10:20:12 -06:00
parent f28f2820ab
commit f759159b62

View File

@@ -147,8 +147,10 @@ public class TrafficStats {
} }
/** /**
* System API for backup-related support components to tag network traffic * Set active tag to use when accounting {@link Socket} traffic originating
* appropriately. * from the current thread. The tag used internally is well-defined to
* distinguish all backup-related traffic.
*
* @hide * @hide
*/ */
@SystemApi @SystemApi
@@ -157,8 +159,10 @@ public class TrafficStats {
} }
/** /**
* System API for restore-related support components to tag network traffic * Set active tag to use when accounting {@link Socket} traffic originating
* appropriately. * from the current thread. The tag used internally is well-defined to
* distinguish all restore-related traffic.
*
* @hide * @hide
*/ */
@SystemApi @SystemApi
@@ -205,7 +209,13 @@ public class TrafficStats {
NetworkManagementSocketTagger.setThreadSocketStatsUid(uid); NetworkManagementSocketTagger.setThreadSocketStatsUid(uid);
} }
/** {@hide} */ /**
* Clear any active UID set to account {@link Socket} traffic originating
* from the current thread.
*
* @see #setThreadStatsUid(int)
* @hide
*/
@SystemApi @SystemApi
public static void clearThreadStatsUid() { public static void clearThreadStatsUid() {
NetworkManagementSocketTagger.setThreadSocketStatsUid(-1); NetworkManagementSocketTagger.setThreadSocketStatsUid(-1);