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:
parent
66e1a1e3e2
commit
9bbfbf7ffe
1 changed files with 4 additions and 0 deletions
|
|
@ -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 },
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue