From 7d36b386902117eaec68679499342e35fa7743e9 Mon Sep 17 00:00:00 2001 From: jackqdyulei Date: Tue, 24 Oct 2017 16:32:58 -0700 Subject: [PATCH] Add metric for anomaly detection ACTION_APP_STOP_AND_BACKGROUND_CHECK FIELD_ANOMALY_ACTION_TYPE ANOMALY_TYPE_WAKELOCK ANOMALY_TYPE_WAKEUP_ALARM ANOMALY_TYPE_UNOPTIMIZED_BT Bug: 68215016 Test: Build Merged-In: I66f0465a3b89713060948af31c370e9ac894e0ff Change-Id: I66f0465a3b89713060948af31c370e9ac894e0ff --- proto/src/metrics_constants.proto | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto index fef8696ec5377..28f26c6fa55b8 100644 --- a/proto/src/metrics_constants.proto +++ b/proto/src/metrics_constants.proto @@ -4586,6 +4586,31 @@ message MetricsEvent { // ---- End O-MR1 Constants, all O-MR1 constants go above this line ---- + // ACTION: Stop an app and turn on background check + // CATEGORY: SETTINGS + // OS: P + ACTION_APP_STOP_AND_BACKGROUND_CHECK = 1233; + + // FIELD: The action type for each anomaly + // CATEGORY: SETTINGS + // OS: P + FIELD_ANOMALY_ACTION_TYPE = 1234; + + // OPEN: Settings -> Battery -> Wakelock anomaly + // CATEGORY: SETTINGS + // OS: P + ANOMALY_TYPE_WAKELOCK = 1235; + + // OPEN: Settings -> Battery -> Wakeup alarm anomaly + // CATEGORY: SETTINGS + // OS: P + ANOMALY_TYPE_WAKEUP_ALARM = 1236; + + // OPEN: Settings -> Battery -> Unoptimized bt anomaly + // CATEGORY: SETTINGS + // OS: P + ANOMALY_TYPE_UNOPTIMIZED_BT = 1237; + // Add new aosp constants above this line. // END OF AOSP CONSTANTS }