Override the 'online' status for AC/USB for battery defender

Bug: 170787442
Test: 'atest HealthTestCases'
Change-Id: Ib099078dac155ae9ab45010cd2649ddc58e4c49a
This commit is contained in:
Stephane Lee
2020-10-15 16:14:07 -07:00
parent d2db6e8025
commit 3ae9842677

View File

@@ -103,14 +103,13 @@ void fill_ufs_storage_attribute(StorageAttribute *attr) {
void private_healthd_board_init(struct healthd_config *hc) {
hc->ignorePowerSupplyNames.push_back(android::String8(kTCPMPSYName));
battDefender.update();
}
int private_healthd_board_battery_update(struct android::BatteryProperties *props) {
deviceHealth.update(props);
battMetricsLogger.logBatteryProperties(props);
shutdownMetrics.logShutdownVoltage(props);
battDefender.update();
battDefender.update(props);
return 0;
}