diff options
| author | 2019-02-05 00:57:03 +0000 | |
|---|---|---|
| committer | 2019-02-05 00:57:03 +0000 | |
| commit | 080619f1da669af00c25fd6cf78d3ab74898159c (patch) | |
| tree | cef6a9623107c3646e04707bdea8ec0ebbd649f6 | |
| parent | 3edb01f10adf74544f04ca18cf9601c40cab06a9 (diff) | |
| parent | 6dcd8578cb52488ac30ffccbab9ec0052b4ae8e0 (diff) | |
Merge "atoms: Fix HardwareErrorCode to match Stats HAL definition"
| -rw-r--r-- | cmds/statsd/src/atoms.proto | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 5f47e06fb876..63f9b5954792 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -2144,30 +2144,24 @@ message HardwareFailed { } optional HardwareType hardware_type = 1; - /* hardware_location allows vendors to differentiate between multiple instances of + /** + * hardware_location allows vendors to differentiate between multiple instances of * the same hardware_type. The specific locations are vendor defined integers, * referring to board-specific numbering schemes. */ optional int32 hardware_location = 2; - /* failure_code is specific to the HardwareType of the failed hardware. - * It should use the enum values defined below. + /** + * failure_code is specific to the HardwareType of the failed hardware. + * It should use one of the enum values defined below. */ - enum MicrophoneFailureCode { - MICROPHONE_FAILURE_COMPLETE = 0; - } - enum CodecFailureCode { - CODEC_FAILURE_COMPLETE = 0; - } - enum SpeakerFailureCode { - SPEAKER_FAILURE_COMPLETE = 0; - SPEAKER_FAILURE_HIGH_Z = 1; - SPEAKER_FAILURE_SHORT = 2; - } - enum FingerprintFailureCode { - FINGERPRINT_FAILURE_COMPLETE = 0; - FINGERPRINT_SENSOR_BROKEN = 1; - FINGERPRINT_TOO_MANY_DEAD_PIXELS = 2; + enum HardwareErrorCode { + UNKNOWN = 0; + COMPLETE = 1; + SPEAKER_HIGH_Z = 2; + SPEAKER_SHORT = 3; + FINGERPRINT_SENSOR_BROKEN = 4; + FINGERPRINT_TOO_MANY_DEAD_PIXELS = 5; } optional int32 failure_code = 3; } |