Merge "Update TrafficStats SystemApi docs." into nyc-dev

am: c6f0d15

* commit 'c6f0d15c7d5599f2c13b586ca9c93613a099795d':
  Update TrafficStats SystemApi docs.
This commit is contained in:
Jeff Sharkey
2016-03-22 18:43:02 +00:00
committed by android-build-merger

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);