summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2016-11-15 14:35:39 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-11-15 14:35:43 +0000
commit5962992e27e16280ffac7b4883b1c8446a1b55bf (patch)
tree41fabb06eb057019b5616d3b506084ae05c6ec27
parent5b6099f3bb400e6bcf4cdce4943a5043802ceaaf (diff)
parent5e334f6b539025f4d817b8acf906862e839bb460 (diff)
Merge "add event type enum to proto def"
-rw-r--r--proto/src/metrics_constants.proto21
1 files changed, 21 insertions, 0 deletions
diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto
index 5cf74c7fe69a..9b4b1868cdbb 100644
--- a/proto/src/metrics_constants.proto
+++ b/proto/src/metrics_constants.proto
@@ -22,6 +22,27 @@ package com_android_internal_logging;
// Wrapper for System UI log events
message MetricsEvent {
+ // Types of events
+ enum Type {
+ // Unknown
+ TYPE_UNKNOWN = 0;
+
+ // The view became visible to the user.
+ TYPE_OPEN = 1;
+
+ // The view became hidden.
+ TYPE_CLOSE = 2;
+
+ // The view switched to detail mode (most relevant for quick settings tiles)
+ TYPE_DETAIL = 3;
+
+ // The view or control was activated.
+ TYPE_ACTION = 4;
+
+ // The view or control was dismissed.
+ TYPE_DISMISS = 5;
+ }
+
// Known visual elements: views or controls.
enum View {
// Unknown view