Clean up unused function getHideApplicationSummary in
PowerUsageFeatureProvider. Bug: 253395332 Bug: 254769892 Bug: 254769770 Test: make RunSettingsRoboTests Change-Id: I6acf0cbdb7321934e85939e0acee567001107a17
This commit is contained in:
@@ -157,20 +157,6 @@ public final class DataProcessor {
|
||||
processedBatteryHistoryMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns whether the target is in the CharSequence array.
|
||||
*/
|
||||
public static boolean contains(String target, CharSequence[] packageNames) {
|
||||
if (target != null && packageNames != null) {
|
||||
for (CharSequence packageName : packageNames) {
|
||||
if (TextUtils.equals(target, packageName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the {@link BatteryUsageStats} from system service.
|
||||
*/
|
||||
@@ -1223,6 +1209,20 @@ public final class DataProcessor {
|
||||
countOfAppBeforePurge - countOfAppAfterPurge);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns whether the target is in the CharSequence array.
|
||||
*/
|
||||
private static boolean contains(String target, CharSequence[] packageNames) {
|
||||
if (target != null && packageNames != null) {
|
||||
for (CharSequence packageName : packageNames) {
|
||||
if (TextUtils.equals(target, packageName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static void log(Context context, final String content, final long timestamp,
|
||||
final BatteryHistEntry entry) {
|
||||
if (DEBUG) {
|
||||
|
Reference in New Issue
Block a user