Use battery unplugging event to compute the full charge start time on

Pixel devices.

Test: make RunSettingsRoboTests + manual
Bug: 256124406
Change-Id: I80b33db6e25ac0c693c50ddf93b6343c0fea942f
This commit is contained in:
Kuan Wang
2023-01-16 18:40:47 +08:00
parent 35eb29742c
commit c28daecbc5
5 changed files with 128 additions and 6 deletions

View File

@@ -147,6 +147,11 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
return null;
}
@Override
public String getFullChargeIntentAction() {
return Intent.ACTION_BATTERY_LEVEL_CHANGED;
}
@Override
public boolean isExtraDefend() {
return false;