From 5e334f6b539025f4d817b8acf906862e839bb460 Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Mon, 14 Nov 2016 10:16:21 -0500 Subject: [PATCH] add event type enum to proto def Test: ./vendor/google/tools/systemui/systemui_test_cookbook.sh Change-Id: Idc8b5b942caa566f533b76f6d834291a71cf0da7 --- proto/src/metrics_constants.proto | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto index 48bc27e1c4404..348c21aa2cc48 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