Merge "Clean up unused files for Battery Usage in SettingsGoogle, which have been moved into Settings."
This commit is contained in:
@@ -20,10 +20,8 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.SparseIntArray;
|
||||
|
||||
import com.android.settings.fuelgauge.batteryusage.BatteryHistEntry;
|
||||
import com.android.settingslib.fuelgauge.Estimate;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
@@ -103,12 +101,6 @@ public interface PowerUsageFeatureProvider {
|
||||
*/
|
||||
String getOldEstimateDebugString(String timeRemaining);
|
||||
|
||||
/**
|
||||
* Returns the string to show in the advanced usage battery page when enhanced estimates are
|
||||
* enabled. This string notifies users that the estimate is using enhanced prediction.
|
||||
*/
|
||||
String getAdvancedUsageScreenInfoString();
|
||||
|
||||
/**
|
||||
* Returns a signal to indicate if the device will need to warn the user they may not make it
|
||||
* to their next charging time.
|
||||
@@ -143,11 +135,6 @@ public interface PowerUsageFeatureProvider {
|
||||
*/
|
||||
Intent getResumeChargeIntent();
|
||||
|
||||
/**
|
||||
* Returns battery history data with corresponding timestamp key.
|
||||
*/
|
||||
Map<Long, Map<String, BatteryHistEntry>> getBatteryHistory(Context context);
|
||||
|
||||
/**
|
||||
* Returns {@link Set} for hidding applications background usage time.
|
||||
*/
|
||||
|
@@ -24,10 +24,8 @@ import android.util.ArraySet;
|
||||
import android.util.SparseIntArray;
|
||||
|
||||
import com.android.internal.util.ArrayUtils;
|
||||
import com.android.settings.fuelgauge.batteryusage.BatteryHistEntry;
|
||||
import com.android.settingslib.fuelgauge.Estimate;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/** Implementation of {@code PowerUsageFeatureProvider} */
|
||||
@@ -122,11 +120,6 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAdvancedUsageScreenInfoString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getEarlyWarningSignal(Context context, String id) {
|
||||
return false;
|
||||
@@ -158,11 +151,6 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<Long, Map<String, BatteryHistEntry>> getBatteryHistory(Context context) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<CharSequence> getHideBackgroundUsageTimeSet(Context context) {
|
||||
return new ArraySet<>();
|
||||
|
@@ -70,9 +70,6 @@ public class BatteryEntry {
|
||||
}
|
||||
}
|
||||
|
||||
public static final int MSG_UPDATE_NAME_ICON = 1;
|
||||
public static final int MSG_REPORT_FULLY_DRAWN = 2;
|
||||
|
||||
private static final String TAG = "BatteryEntry";
|
||||
private static final String PACKAGE_SYSTEM = "android";
|
||||
|
||||
|
Reference in New Issue
Block a user