healthd: add battery health status values from JEITA spec

Some vendors implement JEITA battery health spec.

Bug: 35780570
Test: build and boot
Change-Id: I532cd0fbdbcae0a32879de7d7930f3ccb8605ffd
This commit is contained in:
Yueyao Zhu 2017-06-12 16:55:38 -07:00
parent 66e1a1e3e2
commit 9bbfbf7ffe

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 },
};