Public processAndSortEntries API for battery reattribution work

Bug: 346706894
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Flag: EXEMPT bug fix
Change-Id: I09429eac563016a0a709b73ee4feab761ffe47dd
This commit is contained in:
YK Hung
2024-06-24 05:55:42 +00:00
parent 0a2d60a9c5
commit c16e835884

View File

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