Add wakelock atom to statsd
The wakelock event is logged in statsd.
Test: manually confirmed that the event appears in statslog.
Change-Id: I9ffa4b0042264aabf3526843b4fb1832d183de61
diff --git a/cmds/statsd/src/stats_events.proto b/cmds/statsd/src/stats_events.proto
index 0406f11..a59b593 100644
--- a/cmds/statsd/src/stats_events.proto
+++ b/cmds/statsd/src/stats_events.proto
@@ -46,6 +46,7 @@
ScheduledJobStateChanged scheduled_job_state_changed = 8;
ScreenBrightnessChanged screen_brightness_changed = 9;
// 10-20 are temporarily reserved for wakelocks etc.
+ WakelockStateChanged wakelock_state_changed = 10;
UidWakelockStateChanged uid_wakelock_state_changed = 11;
LongPartialWakelockStateChanged long_partial_wakelock_state_changed = 12;
BatterySaverModeStateChanged battery_saver_mode_state_changed = 21;
@@ -364,7 +365,7 @@
* Logged from:
* TODO
*/
-message WakelockChanged {
+message WakelockStateChanged {
// TODO: Add attribution instead of uid.
optional int32 uid = 1;