summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackqdyulei <jackqdyulei@google.com>2017-10-24 16:32:58 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-01-19 18:51:12 +0000
commitce69272689d068f3cafdb65f166f2c9abbf43369 (patch)
tree7e00135daed6e5412542817a00398473530ec649
parentfabc5670228ecf57f576be3f59b6b518d575dc74 (diff)
downloadbase-ce69272689d068f3cafdb65f166f2c9abbf43369.tar.gz
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 (cherry picked from commit 7d36b386902117eaec68679499342e35fa7743e9)
-rw-r--r--proto/src/metrics_constants.proto25
1 files changed, 25 insertions, 0 deletions
diff --git a/proto/src/metrics_constants.proto b/proto/src/metrics_constants.proto
index fef8696ec537..28f26c6fa55b 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
}