diff options
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index c56224bf1b57..b9a4b52d6c48 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -296,6 +296,8 @@ message Atom { 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 @@ message VehicleMapServicePacketFailureReported { // 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; +} |