Implement the battery tips cards.(1/2)

Bug: 291689623
Test: Manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3ff665bd3292986030fdd8a3689b35bbf6f5a615)
Change-Id: I4443cdb21b3ba30900fc2f6fcc21c4c56dc1293f
This commit is contained in:
mxyyiyi
2023-07-19 13:28:52 +08:00
committed by Xinyi Mao
parent db17697b67
commit c4ac74872b
20 changed files with 657 additions and 0 deletions

View File

@@ -75,6 +75,16 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
return true;
}
@Override
public boolean isBatteryTipsEnabled() {
return false;
}
@Override
public boolean isBatteryTipsFeedbackEnabled() {
return true;
}
@Override
public double getBatteryUsageListScreenOnTimeThresholdInMs() {
return 0;