Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdb50d66 authored by YK Hung's avatar YK Hung Committed by Android (Google) Code Review
Browse files

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

parents bcc608fb c16e8358
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
        }