From 5153e2f608e8ddc6bd65e41b27db99f4acbdb2c2 Mon Sep 17 00:00:00 2001 From: Hugo Benichi Date: Wed, 31 May 2017 11:11:37 +0900 Subject: [PATCH] New Metrics constants for captive portal related UI This patch adds 5 new constants in metrics_constants for counting various UI interactions involving captive portals: - sign-in button in wifi network details card - captive portal login activity start up - captive portal login activity menu interactions (2 constants) - captive portal login activity auto-closes on portal dismissed Bug: 34901696 Bug: 26303355 Test: compiled, flashed Merged-In: I489e5f2f8ff27da60fed215fa5f51326933fd79e (cherry pick from commit 11da42bbb63dba98515e6a3ca7c55e77cbb3c7bf) Change-Id: Ifc553b08a65e78a630e235de087b7659a228bec8 --- proto/src/metrics_constants.proto | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto index 9c571a2585ebd..8bc7520d880d6 100644 --- a/proto/src/metrics_constants.proto +++ b/proto/src/metrics_constants.proto @@ -2252,6 +2252,32 @@ message MetricsEvent { // CATEGORY: QUICK_SETTINGS QS_NFC = 800; + + // ACTION: CaptivePortalLoginActivity starts + // CATEGORY: GLOBAL_SYSTEM_UI + // OS: O DR + ACTION_CAPTIVE_PORTAL_LOGIN_ACTIVITY = 1004; + + // ACTION: CaptivePortalLoginActivity auto-closes + // CATEGORY: GLOBAL_SYSTEM_UI + // OS: O DR + ACTION_CAPTIVE_PORTAL_LOGIN_RESULT_DISMISSED = 1005; + + // ACTION: CaptivePortalLoginActivity > Menu > Do not use this network + // CATEGORY: GLOBAL_SYSTEM_UI + // OS: O DR + ACTION_CAPTIVE_PORTAL_LOGIN_RESULT_UNWANTED = 1006; + + // ACTION: CaptivePortalLoginActivity > Menu > Use this network + // CATEGORY: GLOBAL_SYSTEM_UI + // OS: O DR + ACTION_CAPTIVE_PORTAL_LOGIN_RESULT_WANTED_AS_IS = 1007; + + // ACTION: Settings > Wi-Fi > [Long press network] > Sign in to network + // CATEGORY: SETTINGS + // OS: O DR + ACTION_WIFI_SIGNIN = 1008; + // Add new aosp constants above this line. // END OF AOSP CONSTANTS }