Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3d5e388 authored by Wesley Wang's avatar Wesley Wang
Browse files

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

Bug: 290893324
Test: make SettingsRoboTests
Change-Id: Ief4e11b2c3afddb99a50c9d0148d78d4d581d34f
parent 2fdc9c94
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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.
     */
+3 −0
Original line number Diff line number Diff line
@@ -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<>();