Imple call method to detect settings anomaly(1/2)
Bug: 290893324 Test: make SettingsRoboTests Change-Id: I6c13f9cee29b723cbd9332fc5d84567be83699c3
This commit is contained in:
@@ -18,6 +18,7 @@ package com.android.settings.fuelgauge;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.os.Bundle;
|
||||||
import android.util.ArrayMap;
|
import android.util.ArrayMap;
|
||||||
import android.util.SparseIntArray;
|
import android.util.SparseIntArray;
|
||||||
|
|
||||||
@@ -129,9 +130,14 @@ public interface PowerUsageFeatureProvider {
|
|||||||
boolean delayHourlyJobWhenBooting();
|
boolean delayHourlyJobWhenBooting();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Insert device usage data for anomaly detection
|
* Insert settings configuration data for anomaly detection
|
||||||
*/
|
*/
|
||||||
void insertSettingsData(Context context);
|
void insertSettingsData(Context context, double displayDrain);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns {@link Bundle} for settings anomaly detection result
|
||||||
|
*/
|
||||||
|
Bundle detectSettingsAnomaly(Context context, double displayDrain);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets an intent for one time bypass charge limited to resume charging.
|
* Gets an intent for one time bypass charge limited to resume charging.
|
||||||
|
@@ -21,6 +21,7 @@ import static com.android.settings.Utils.SYSTEMUI_PACKAGE_NAME;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
|
import android.os.Bundle;
|
||||||
import android.os.Process;
|
import android.os.Process;
|
||||||
import android.util.ArrayMap;
|
import android.util.ArrayMap;
|
||||||
import android.util.ArraySet;
|
import android.util.ArraySet;
|
||||||
@@ -161,7 +162,12 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void insertSettingsData(Context context) {}
|
public void insertSettingsData(Context context, double displayDrain) {}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Bundle detectSettingsAnomaly(Context context, double displayDrain) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Set<Integer> getOthersSystemComponentSet() {
|
public Set<Integer> getOthersSystemComponentSet() {
|
||||||
|
Reference in New Issue
Block a user