summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMingguang Xu <mingguangxu@google.com>2019-04-19 13:59:56 -0700
committerMingguang Xu <mingguangxu@google.com>2019-04-19 13:59:56 -0700
commit3e5d63a8f76fd3d960f561f618a9cbfce97721cb (patch)
treefa7e38d2095245ecfe45df4385a68f19e3035fbf
parent151675e37e282f8048b8944ba93a54a820e49f52 (diff)
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 <mingguangxu@google.com>
-rw-r--r--proto/src/wifi.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto
index 15d30e463cc3..61e2d6be7827 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 {