Add worksource AAB bucket to WakeupAlarmOccurred WW atom.
This will enable us to breakdown number of alarms triggered by
app standby bucket.
Bug: 132227621
Test: statsd_testdrive 35
Change-Id: I4cb6c1e631ac940bedaff734cc40b1512405bf33
diff --git a/atoms.proto b/atoms.proto
index 24df883..7646c3c 100644
--- a/atoms.proto
+++ b/atoms.proto
@@ -994,6 +994,19 @@
// Name of source package (for historical reasons, since BatteryStats tracked it).
optional string package_name = 3;
+
+ // These enum values match the STANDBY_BUCKET_XXX constants defined in UsageStatsManager.java.
+ enum Bucket {
+ UNKNOWN = 0;
+ EXEMPTED = 5;
+ ACTIVE = 10;
+ WORKING_SET = 20;
+ FREQUENT = 30;
+ RARE = 40;
+ NEVER = 50;
+ }
+ // The App Standby bucket of the app that scheduled the alarm at the time the alarm fired.
+ optional Bucket app_standby_bucket = 4;
}
/**