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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user