Clean up unused function getHideApplicationSummary in

PowerUsageFeatureProvider.

Bug: 253395332
Bug: 254769892
Bug: 254769770
Test: make RunSettingsRoboTests
Change-Id: I6acf0cbdb7321934e85939e0acee567001107a17
This commit is contained in:
Kuan Wang
2022-10-19 17:47:19 +08:00
parent eff9effb25
commit c7afa45eac
10 changed files with 20 additions and 131 deletions

View File

@@ -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) {