Provide a method to detect battery usage history(1/2)

Bug: 290893324
Test: make SettingsRoboTests
Change-Id: Ief4e11b2c3afddb99a50c9d0148d78d4d581d34f
This commit is contained in:
Wesley Wang
2023-07-14 15:07:08 +08:00
parent 2fdc9c943b
commit e3d5e38834
2 changed files with 8 additions and 0 deletions

View File

@@ -128,6 +128,11 @@ public interface PowerUsageFeatureProvider {
*/
boolean delayHourlyJobWhenBooting();
/**
* Insert device usage data for anomaly detection
*/
void insertSettingsData(Context context);
/**
* Gets an intent for one time bypass charge limited to resume charging.
*/

View File

@@ -160,6 +160,9 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
return true;
}
@Override
public void insertSettingsData(Context context) {}
@Override
public Set<Integer> getOthersSystemComponentSet() {
return new ArraySet<>();