Add CarPowerChanged, GarageModeInfo atom.
Bug: 131688824
Bug: 131086247
Test: It builds.
Change-Id: Ie67ea04107c6aa2929a1e6b859ddabda8494437e
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto
index c56224bf..b9a4b52 100644
--- a/cmds/statsd/src/atoms.proto
+++ b/cmds/statsd/src/atoms.proto
@@ -296,6 +296,8 @@
MediametricsRecorderReported mediametrics_recorder_reported = 200;
VehicleMapServicePacketReported vms_packet_reported = 201;
VehicleMapServicePacketFailureReported vms_packet_failure_reported = 202;
+ CarPowerStateChanged car_power_state_changed = 203;
+ GarageModeInfo garage_mode_info = 204;
}
// Pulled events will start at field 10000.
@@ -6307,3 +6309,33 @@
// signifies that there are zero subscribers for the packet.
optional string subscriber_name = 5;
}
+
+/**
+ * Logs when Car Power state changed.
+ *
+ * Logged from:
+ * packages/services/Car/service/src/com/android/car/CarStatsLog.java
+ */
+message CarPowerStateChanged {
+ // States come from CpmsState in CarPowerManagementService.java.
+ enum State {
+ WAIT_FOR_VHAL = 0;
+ ON = 1;
+ SHUTDOWN_PREPARE = 2;
+ WAIT_FOR_FINISH = 3;
+ SUSPEND = 4;
+ SIMULATE_SLEEP = 5;
+ }
+ optional State state = 1;
+}
+
+/**
+ * Logs whether GarageMode is entered.
+ *
+ * Logged from:
+ * packages/services/Car/service/src/com/android/car/CarStatsLog.java
+ */
+message GarageModeInfo {
+ // Whether GarageMode is entered.
+ optional bool is_garage_mode = 1;
+}