OSDN Git Service

IP connectivity metrics: NetworkEvents have transports
authorHugo Benichi <hugobenichi@google.com>
Fri, 10 Nov 2017 23:06:43 +0000 (08:06 +0900)
committerHugo Benichi <hugobenichi@google.com>
Mon, 13 Nov 2017 05:15:51 +0000 (14:15 +0900)
commit97bfd276fb008a66b76b6f72a64db1eca2ab477c
tree38f78cc4efde928ae5cabe5bcc80aaf82c94ee43
parent6ee20ca7d380b1d59cf24898ba83a9c4cb57849c
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
core/java/android/net/metrics/NetworkEvent.java
services/core/java/com/android/server/connectivity/IpConnectivityEventBuilder.java
services/core/java/com/android/server/connectivity/NetworkMonitor.java
tests/net/java/com/android/server/connectivity/IpConnectivityEventBuilderTest.java