From 036f404d88bf857cd18eff3c1acf40f8ae7a0b64 Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Mon, 15 Apr 2019 18:16:58 +0800 Subject: [PATCH] Add action metrics for Wi-Fi provision features // ACTION: Share a Wi-Fi network by generating a QR code ACTION_SETTINGS_SHARE_WIFI_QR_CODE // ACTION: Connect to a Wi-Fi network by scanning a QR code ACTION_SETTINGS_ENROLL_WIFI_QR_CODE // ACTION: Share Wi-Fi hotspot by generating a QR code ACTION_SETTINGS_SHARE_WIFI_HOTSPOT_QR_CODE Bug: 130521826 Test: manual Change-Id: I99e55b53c49830347e48f688aa38afc3912e71b1 --- core/proto/android/app/settings_enums.proto | 9 +++++++++ proto/src/metrics_constants/metrics_constants.proto | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/core/proto/android/app/settings_enums.proto b/core/proto/android/app/settings_enums.proto index c828cac4ed783..1ff7418a3ef8f 100644 --- a/core/proto/android/app/settings_enums.proto +++ b/core/proto/android/app/settings_enums.proto @@ -665,6 +665,15 @@ enum Action { //ACTION: Log result for each card's eligibility check ACTION_CONTEXTUAL_CARD_ELIGIBILITY = 1686; + + // ACTION: Share a Wi-Fi network by generating a QR code + ACTION_SETTINGS_SHARE_WIFI_QR_CODE = 1710; + + // ACTION: Connect to a Wi-Fi network by scanning a QR code + ACTION_SETTINGS_ENROLL_WIFI_QR_CODE = 1711; + + // ACTION: Share Wi-Fi hotspot by generating a QR code + ACTION_SETTINGS_SHARE_WIFI_HOTSPOT_QR_CODE = 1712; } /** diff --git a/proto/src/metrics_constants/metrics_constants.proto b/proto/src/metrics_constants/metrics_constants.proto index bf76fdbfda469..21c6035da0386 100644 --- a/proto/src/metrics_constants/metrics_constants.proto +++ b/proto/src/metrics_constants/metrics_constants.proto @@ -7197,6 +7197,15 @@ message MetricsEvent { // OS: Q DIALOG_PREFERRED_SIM_PICKER = 1709; + // ACTION: Share a Wi-Fi network by generating a QR code + ACTION_SETTINGS_SHARE_WIFI_QR_CODE = 1710; + + // ACTION: Connect to a Wi-Fi network by scanning a QR code + ACTION_SETTINGS_ENROLL_WIFI_QR_CODE = 1711; + + // ACTION: Share Wi-Fi hotspot by generating a QR code + ACTION_SETTINGS_SHARE_WIFI_HOTSPOT_QR_CODE = 1712; + // ---- End Q Constants, all Q constants go above this line ---- // Add new aosp constants above this line. // END OF AOSP CONSTANTS