OSDN Git Service

DO NOT MERGE: NetworkMonitor metrics: add first validation information
authorHugo Benichi <hugobenichi@google.com>
Tue, 15 Nov 2016 14:23:24 +0000 (23:23 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Fri, 9 Dec 2016 04:59:20 +0000 (13:59 +0900)
commit21680fd25df1e088f87b3a947460268b4eb8cbbb
tree0911e6bc1110ebf46246507c360c66cd75d2ef39
parent02428988ad90a2bd294b9ce752c2fced5b649519
DO NOT MERGE: NetworkMonitor metrics: add first validation information

This patch adds first validation information to:
  - ValidationProbeEvent, by extending the probe_type int field of to
    also include a bit indicating if the probe was part of a first
    validation attempt or not.
  - NetworkMonitorEvent, by defining new contants for the event_type
    field.

Test: $ runtest frameworks-net
      + manually generating events and inspecting the
        output of $ adb shell dumpsys connmetrics list
Bug: b/32198726

(cherry picked from commit 147aa6d53bc1e9f8a3632553abcf936023806e1d)

Change-Id: Ie7a62c4f62a13ce52806d3adaa9e627cb246073c
] [new file with mode: 0644]
core/java/android/net/metrics/NetworkEvent.java
core/java/android/net/metrics/ValidationProbeEvent.java
services/core/java/com/android/server/connectivity/NetworkMonitor.java