Merge "BatteryMonitor: support battery health INCONSISTENT from health status" into udc-dev

This commit is contained in:
Treehugger Robot 2023-05-31 01:35:05 +00:00 committed by Android (Google) Code Review
commit e4b3b7b4b5
2 changed files with 3 additions and 0 deletions

View file

@ -244,6 +244,8 @@ BatteryHealth getBatteryHealthStatus(int status) {
value = BatteryHealth::UNSPECIFIED_FAILURE;
else if (status == BatteryMonitor::BH_NOT_AVAILABLE)
value = BatteryHealth::NOT_AVAILABLE;
else if (status == BatteryMonitor::BH_INCONSISTENT)
value = BatteryHealth::INCONSISTENT;
else
value = BatteryHealth::UNKNOWN;

View file

@ -63,6 +63,7 @@ class BatteryMonitor {
BH_NEEDS_REPLACEMENT,
BH_FAILED,
BH_NOT_AVAILABLE,
BH_INCONSISTENT,
};
BatteryMonitor();