Merge "Public processAndSortEntries API for battery reattribution work" into main

This commit is contained in:
YK Hung
2024-06-24 14:06:32 +00:00
committed by Android (Google) Code Review

View File

@@ -99,7 +99,8 @@ public class BatteryDiffData {
return mScreenOnTime;
}
List<BatteryDiffEntry> getAppDiffEntryList() {
/** Gets the {@link BatteryDiffEntry} list for apps. */
public List<BatteryDiffEntry> getAppDiffEntryList() {
return mAppEntries;
}
@@ -298,8 +299,7 @@ public class BatteryDiffData {
* Sets total consume power, and adjusts the percentages to ensure the total round percentage
* could be 100%, and then sorts entries based on the sorting key.
*/
@VisibleForTesting
static void processAndSortEntries(final List<BatteryDiffEntry> batteryDiffEntries) {
public static void processAndSortEntries(final List<BatteryDiffEntry> batteryDiffEntries) {
if (batteryDiffEntries.isEmpty()) {
return;
}