From c9fc125bb435b362fe7882d6bc3c6e108b8c57fb Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Mon, 13 Aug 2018 15:54:27 +0900 Subject: [PATCH] Add DhcpServer This first version can serve discover/request/release, although there are some small behavior changes with current implementation which will be addressed later. Also removes final modifiers on start() and stop() in FdEventsReader, to allow mocking the methods in tests with the current mockito lib. Test: Added tests pass, manual: flashed a device using the server Change-Id: I025366ff7d51c4ba31152af50f3dd2b5e280a54d --- core/java/android/net/TrafficStats.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/net/TrafficStats.java b/core/java/android/net/TrafficStats.java index 44f7e48eda..1b22911f0c 100644 --- a/core/java/android/net/TrafficStats.java +++ b/core/java/android/net/TrafficStats.java @@ -139,6 +139,8 @@ public class TrafficStats { public static final int TAG_SYSTEM_GPS = 0xFFFFFF44; /** @hide */ public static final int TAG_SYSTEM_PAC = 0xFFFFFF45; + /** @hide */ + public static final int TAG_SYSTEM_DHCP_SERVER = 0xFFFFFF46; private static INetworkStatsService sStatsService;