From d5c11bbb6569b200fd4caf73b91f39d53ff4908a Mon Sep 17 00:00:00 2001 From: Hugo Benichi Date: Sat, 11 Nov 2017 08:06:43 +0900 Subject: [PATCH] IP connectivity metrics: NetworkEvents have transports Also removes netId field from inside NetworkEvent and stop populating the network_id field of the NetworkEvent field, deprecating it. Bug: 34901696 Test: runtest frameworks-net, manually looking at $ adb shell dumpsys connmetrics Change-Id: I2c36860f976898883714f72f4d18e06da250c6a6 --- .../server/connectivity/IpConnectivityEventBuilderTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/net/java/com/android/server/connectivity/IpConnectivityEventBuilderTest.java b/tests/net/java/com/android/server/connectivity/IpConnectivityEventBuilderTest.java index 05cf85671f..0656c5fd9e 100644 --- a/tests/net/java/com/android/server/connectivity/IpConnectivityEventBuilderTest.java +++ b/tests/net/java/com/android/server/connectivity/IpConnectivityEventBuilderTest.java @@ -337,7 +337,6 @@ public class IpConnectivityEventBuilderTest { public void testNetworkEventSerialization() { ConnectivityMetricsEvent ev = describeIpEvent( aType(NetworkEvent.class), - anInt(100), anInt(5), aLong(20410)); @@ -352,9 +351,6 @@ public class IpConnectivityEventBuilderTest { " network_event <", " event_type: 5", " latency_ms: 20410", - " network_id <", - " network_id: 100", - " >", " >", ">", "version: 2\n");