diff options
author | xshu <xshu@google.com> | 2019-04-04 17:39:33 -0700 |
---|---|---|
committer | xshu <xshu@google.com> | 2019-04-04 17:39:33 -0700 |
commit | 08c6738b1ce596d45fe662b30d6978e17b691950 (patch) | |
tree | bc10499032e73fe0faa3c6bdfdf20fa4126bcf2f /proto | |
parent | dd07ae579c291a2b6ffe09bd576fd908eb9e5ddd (diff) |
wifi proto change for some legacy API usage metrics
Bug: 129884654
Test: unit tests
Change-Id: I9f67c0dc8bb3813236335b62c8ecee81d44cd69b
Diffstat (limited to 'proto')
-rw-r--r-- | proto/src/wifi.proto | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/proto/src/wifi.proto b/proto/src/wifi.proto index bd72976ab7d1..de89161fe8ae 100644 --- a/proto/src/wifi.proto +++ b/proto/src/wifi.proto @@ -536,6 +536,15 @@ message WifiLog { // WifiLock statistics optional WifiLockStats wifi_lock_stats = 143; + + // Stats on number of times Wi-Fi is turned on/off though the WifiManager#setWifiEnabled API + optional WifiToggleStats wifi_toggle_stats = 144; + + // Number of times WifiManager#addOrUpdateNetwork is called. + optional int32 num_add_or_update_network_calls = 145; + + // Number of times WifiManager#enableNetwork is called. + optional int32 num_enable_network_calls = 146; } // Information that gets logged for every WiFi connection. @@ -2495,3 +2504,18 @@ message WifiLockStats { // This means the lock takes effect and the device takes the actions required for this mode repeated HistogramBucketInt32 low_latency_active_session_duration_sec_histogram = 6; } + +// Stats on number of times Wi-Fi is turned on/off though the WifiManager#setWifiEnabled API +message WifiToggleStats { + // Number of time Wi-Fi is turned on by privileged apps + optional int32 num_toggle_on_privileged = 1; + + // Number of time Wi-Fi is turned off by privileged apps + optional int32 num_toggle_off_privileged = 2; + + // Number of time Wi-Fi is turned on by normal apps + optional int32 num_toggle_on_normal = 3; + + // Number of time Wi-Fi is turned off by normal apps + optional int32 num_toggle_off_normal = 4; +}
\ No newline at end of file |