From 3e5d63a8f76fd3d960f561f618a9cbfce97721cb Mon Sep 17 00:00:00 2001 From: Mingguang Xu Date: Fri, 19 Apr 2019 13:59:56 -0700 Subject: [PATCH] Wifi usability: Add timestamp in WifiUsabilityStats Together with the timestamps in each entry (WifiUsabilityStatsEntry) of WifiUsabilityStats, the added timestamp allows us to check whether the WifiUsabilityStats is obsolete or not. Bug: 129282057 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: I1c968786173f0e719b10651315a6d1bb5b42438f Signed-off-by: Mingguang Xu --- proto/src/wifi.proto | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index 15d30e463cc36..61e2d6be78277 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -2095,6 +2095,9 @@ message WifiUsabilityStats { // Firmware alert code. Only valid when the stats was triggered by a firmware // alert, otherwise -1. optional int32 firmware_alert_code = 4 [default = -1]; + + // Absolute milliseconds from device boot when these stats were sampled + optional int64 time_stamp_ms = 5; } message DeviceMobilityStatePnoScanStats {