From 6352262bf8a9bcbf771d8464cfffe2c80fac89aa Mon Sep 17 00:00:00 2001 From: xshu Date: Thu, 15 Mar 2018 16:48:29 -0700 Subject: [PATCH] metrics: watchdog connection delay field Add 2 fields to check if watchdog is really working as well as we think it is. Bug: 75001353 Test: compile, run ./frameworks/base/wifi/tests/runtests.sh Change-Id: If547bd962f12773f4a4b36fb8fc3e50aff259dac --- proto/src/wifi.proto | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index 934ad882a6359..ce1dd50891d59 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -422,6 +422,13 @@ message WifiLog { // Indicates the number of times a scan request from an external background app was throttled. optional int32 num_external_background_app_oneshot_scan_requests_throttled = 106; + + // WifiLastResortWatchdog time milliseconds delta between trigger and first connection success + optional int64 watchdog_trigger_to_connection_success_duration_ms = 107 [default = -1]; + + // The number of times wifi experienced failures after watchdog has already been triggered and is + // waiting for a connection success + optional int64 watchdog_total_connection_failure_count_after_trigger = 108; } // Information that gets logged for every WiFi connection.