diff options
author | Andrew Chant <achant@google.com> | 2018-05-11 10:10:29 -0700 |
---|---|---|
committer | Andrew Chant <achant@google.com> | 2018-05-22 15:55:49 -0700 |
commit | 358471f74943c2f1585f523c73f3b73c63fd9f25 (patch) | |
tree | 41953b28facf61f671e89c89773a04ad10b29113 /libmetricslogger | |
parent | 7905b1e16286653679b7ff9b595f3ed7de5e182f (diff) | |
download | core-358471f74943c2f1585f523c73f3b73c63fd9f25.tar.gz core-358471f74943c2f1585f523c73f3b73c63fd9f25.tar.bz2 core-358471f74943c2f1585f523c73f3b73c63fd9f25.zip |
Add Hardware Reliabilty metrics to C header
Expose Hardware Reliabilty TRON metrics constants
for logging via C++ interfaces.
Bug: 69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9a1c4467d31f64ae3c43e35b0a4cf5a92157c39f
Diffstat (limited to 'libmetricslogger')
-rw-r--r-- | libmetricslogger/include/metricslogger/metrics_logger.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/libmetricslogger/include/metricslogger/metrics_logger.h b/libmetricslogger/include/metricslogger/metrics_logger.h index 860d71d39..c305db2da 100644 --- a/libmetricslogger/include/metricslogger/metrics_logger.h +++ b/libmetricslogger/include/metricslogger/metrics_logger.h @@ -77,10 +77,44 @@ enum { ACTION_BOOT = 1098, FIELD_PLATFORM_REASON = 1099, + FIELD_DURATION_MILLIS = 1304, + + FIELD_END_BATTERY_PERCENT = 1308, + ACTION_HIDDEN_API_ACCESSED = 1391, FIELD_HIDDEN_API_ACCESS_METHOD = 1392, FIELD_HIDDEN_API_ACCESS_DENIED = 1393, FIELD_HIDDEN_API_SIGNATURE = 1394, + + ACTION_USB_CONNECTOR_CONNECTED = 1422, + ACTION_USB_CONNECTOR_DISCONNECTED = 1423, + ACTION_USB_AUDIO_CONNECTED = 1424, + FIELD_USB_AUDIO_VIDPID = 1425, + ACTION_USB_AUDIO_DISCONNECTED = 1426, + ACTION_HARDWARE_FAILED = 1427, + FIELD_HARDWARE_TYPE = 1428, + FIELD_HARDWARE_FAILURE_CODE = 1429, + ACTION_PHYSICAL_DROP = 1430, + FIELD_CONFIDENCE_PERCENT = 1431, + FIELD_ACCEL_MILLI_G = 1432, + ACTION_BATTERY_HEALTH = 1433, + FIELD_BATTERY_HEALTH_SNAPSHOT_TYPE = 1434, + FIELD_BATTERY_TEMPERATURE_DECI_C = 1435, + FIELD_BATTERY_VOLTAGE_UV = 1436, + FIELD_BATTERY_OPEN_CIRCUIT_VOLTAGE_UV = 1437, + ACTION_BATTERY_CHARGE_CYCLES = 1438, + FIELD_BATTERY_CHARGE_CYCLES = 1439, + + ACTION_SLOW_IO = 1442, + FIELD_IO_OPERATION_TYPE = 1443, + FIELD_IO_OPERATION_COUNT = 1444, + ACTION_SPEAKER_IMPEDANCE = 1445, + FIELD_SPEAKER_IMPEDANCE_MILLIOHMS = 1446, + FIELD_SPEAKER_LOCATION = 1447, + FIELD_BATTERY_RESISTANCE_UOHMS = 1448, + FIELD_BATTERY_CURRENT_UA = 1449, + FIELD_HARDWARE_LOCATION = 1450, + ACTION_BATTERY_CAUSED_SHUTDOWN = 1441, }; enum { @@ -94,5 +128,30 @@ enum { ACCESS_METHOD_LINKING = 3, }; +enum HardwareType { + HARDWARE_UNKNOWN = 0, + HARDWARE_MICROPHONE = 1, + HARDWARE_CODEC = 2, + HARDWARE_SPEAKER = 3, + HARDWARE_FINGERPRINT = 4, +}; + +enum HardwareFailureCode { + HARDWARE_FAILURE_UNKNOWN = 0, + HARDWARE_FAILURE_COMPLETE = 1, + HARDWARE_FAILURE_SPEAKER_HIGH_Z = 2, + HARDWARE_FAILURE_SPEAKER_SHORT = 3, + HARDWARE_FAILURE_FINGERPRINT_SENSOR_BROKEN = 4, + HARDWARE_FAILURE_FINGERPRINT_TOO_MANY_DEAD_PIXELS = 5, +}; + +enum IoOperation { + IOOP_UNKNOWN = 0, + IOOP_READ = 1, + IOOP_WRITE = 2, + IOOP_UNMAP = 3, + IOOP_SYNC = 4, +}; + } // namespace metricslogger } // namespace android |