StrictMode to detect untagged network traffic.

Define some constants for early use in AOSP code.

Test: builds, boots, all common traffic tagged
Bug: 30943431
Change-Id: Ia58a8933bccfddbc027afb78c63ae65bd71ce562
This commit is contained in:
Jeff Sharkey
2016-11-21 12:14:50 -07:00
parent 88e33a2864
commit 66dca17fe7

View File

@@ -108,6 +108,26 @@ public class TrafficStats {
*/ */
public static final int TAG_SYSTEM_RESTORE = 0xFFFFFF04; public static final int TAG_SYSTEM_RESTORE = 0xFFFFFF04;
/** @hide */
public static final int TAG_SYSTEM_DHCP = 0xFFFFFF05;
/** @hide */
public static final int TAG_SYSTEM_NTP = 0xFFFFFF06;
/** @hide */
public static final int TAG_SYSTEM_PROBE = 0xFFFFFF07;
/** @hide */
public static final int TAG_SYSTEM_NEIGHBOR = 0xFFFFFF08;
/** @hide */
public static final int TAG_SYSTEM_GPS = 0xFFFFFF09;
/** @hide */
public static final int TAG_SYSTEM_PAC = 0xFFFFFF0A;
/**
* Sockets that are strictly local on device; never hits network.
*
* @hide
*/
public static final int TAG_SYSTEM_LOCAL = 0xFFFFFFAA;
private static INetworkStatsService sStatsService; private static INetworkStatsService sStatsService;
private synchronized static INetworkStatsService getStatsService() { private synchronized static INetworkStatsService getStatsService() {