Merge "healthd: add battery health status values from JEITA spec" am: 5dd87c4ef6

am: 7a79592e4e

Change-Id: Ife13b29af4f44d3d6f5cc7b00435f4c6a57e0d2b
This commit is contained in:
Yueyao Zhu 2017-06-21 19:29:25 +00:00 committed by android-build-merger
commit 8e5671f55c

View file

@ -116,6 +116,10 @@ int BatteryMonitor::getBatteryHealth(const char* status) {
{ "Over voltage", BATTERY_HEALTH_OVER_VOLTAGE },
{ "Unspecified failure", BATTERY_HEALTH_UNSPECIFIED_FAILURE },
{ "Cold", BATTERY_HEALTH_COLD },
// battery health values from JEITA spec
{ "Warm", BATTERY_HEALTH_GOOD },
{ "Cool", BATTERY_HEALTH_GOOD },
{ "Hot", BATTERY_HEALTH_OVERHEAT },
{ NULL, 0 },
};