From c3d33ca42f677147f9c4d3cf96069ad2d6a52297 Mon Sep 17 00:00:00 2001 From: Raff Tsai Date: Tue, 19 Feb 2019 11:40:36 +0800 Subject: Add Settings Contextual homepage log metrics Bug: 124701288 Test: compile it Change-Id: I5ab2b8d4982c700062f0e9b24b1a501ad12738df --- core/proto/android/app/settings_enums.proto | 17 +++++++++++++++++ proto/src/metrics_constants/metrics_constants.proto | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/core/proto/android/app/settings_enums.proto b/core/proto/android/app/settings_enums.proto index f74fc2129740..e48bcf69ec4e 100644 --- a/core/proto/android/app/settings_enums.proto +++ b/core/proto/android/app/settings_enums.proto @@ -615,6 +615,23 @@ enum Action { // CATEGORY: SETTINGS // OS: Q ACTION_PANEL_INTERACTION = 1658; + + // ACTION: Show Contextual homepage, log latency in loading cards + ACTION_CONTEXTUAL_HOME_SHOW = 1662; + + // ACTION: Contextual card displays + ACTION_CONTEXTUAL_CARD_SHOW = 1663; + + // ACTION: Contextual cards are eligible to be shown, but don't rank high + ACTION_CONTEXTUAL_CARD_NOT_SHOW = 1664; + + // ACTION: Settings > long press a card, and click dismiss + // Contextual card is dismissed + ACTION_CONTEXTUAL_CARD_DISMISS = 1665; + + // ACTION: Settings > click a card + // Contextual card is clicked + ACTION_CONTEXTUAL_CARD_CLICK = 1666; } /** diff --git a/proto/src/metrics_constants/metrics_constants.proto b/proto/src/metrics_constants/metrics_constants.proto index b3e5f693d530..9505f33f1ff1 100644 --- a/proto/src/metrics_constants/metrics_constants.proto +++ b/proto/src/metrics_constants/metrics_constants.proto @@ -7017,6 +7017,23 @@ message MetricsEvent { // OS: Q ACTION_SWITCH_SHARE_PROFILE = 1661; + // ACTION: Show Contextual homepage, log latency in loading cards + ACTION_CONTEXTUAL_HOME_SHOW = 1662; + + // ACTION: Contextual card displays + ACTION_CONTEXTUAL_CARD_SHOW = 1663; + + // ACTION: Contextual cards are eligible to be shown, but don't rank high + ACTION_CONTEXTUAL_CARD_NOT_SHOW = 1664; + + // ACTION: Settings > long press a card, and click dismiss + // Contextual card is dismissed + ACTION_CONTEXTUAL_CARD_DISMISS = 1665; + + // ACTION: Settings > click a card + // Contextual card is clicked + ACTION_CONTEXTUAL_CARD_CLICK = 1666; + // ---- End Q Constants, all Q constants go above this line ---- // Add new aosp constants above this line. // END OF AOSP CONSTANTS -- cgit v1.2.3-59-g8ed1b