summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJong Wook Kim <jongwook@google.com>2018-04-26 15:09:23 -0700
committerJong Wook Kim <jongwook@google.com>2018-06-18 17:32:03 -0700
commit411cab97c641bdaa3c49c4cd656733842ee6bfd5 (patch)
tree31a6e930e33e907ec0155dc9925d3ef95167d842 /core/java/android
parentc675f31fdcc519a5eab8df135c49a277e61ab48b (diff)
Wifi Usability Metrics Proto Update
Generate WifiIsUnusableEvent when there is a data stall or a firmware alert. In WifiIsUnusableEvent, store metrics related to time, packet counts, trigger reason, and score. Also, log ExperimentValues that we plan to change through global settings varaible. This logging is enabled by setting WIFI_IS_UNUSABLE_EVENT_METRICS_ENABLED to 1. By default, this metric is not collected. Manual Check Process: - Connect to a network - adb shell settings put global wifi_is_unusable_event_metrics_enabled 1 - adb shell dumpsys wifi wifiMetricsProto - Move away from the ap to trigger data stall - adb shell dumpsys wifi | grep -10 WifiIsUnusableEventList - Verify that there is a WifiIsUnusableEvent Bug: 77603216 Test: Unittest (settings core/tests/coretests). Test: Manual Check. Change-Id: I2d8425a420f5ba18e3eee0e11b6f35f6239a97b2
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/provider/Settings.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 4534f48d7772..38399381ede4 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -9910,6 +9910,31 @@ public final class Settings {
public static final String WIFI_SCORE_PARAMS =
"wifi_score_params";
+ /**
+ * Setting to enable logging WifiIsUnusableEvent in metrics
+ * which gets triggered when wifi becomes unusable.
+ * Disabled by default, and setting it to 1 will enable it.
+ * @hide
+ */
+ public static final String WIFI_IS_UNUSABLE_EVENT_METRICS_ENABLED =
+ "wifi_is_unusable_event_metrics_enabled";
+
+ /**
+ * The minimum number of txBad the framework has to observe
+ * to trigger a wifi data stall.
+ * @hide
+ */
+ public static final String WIFI_DATA_STALL_MIN_TX_BAD =
+ "wifi_data_stall_min_tx_bad";
+
+ /**
+ * The minimum number of txSuccess the framework has to observe
+ * to trigger a wifi data stall when rxSuccess is 0.
+ * @hide
+ */
+ public static final String WIFI_DATA_STALL_MIN_TX_SUCCESS_WITHOUT_RX =
+ "wifi_data_stall_min_tx_success_without_rx";
+
/**
* The maximum number of times we will retry a connection to an access
* point for which we have failed in acquiring an IP address from DHCP.