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

Commit 95b9ca65 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Fix the inverted logic to judge whether an app is system app.""

parents 1aaba852 9a358384
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1826,7 +1826,8 @@ public final class DataProcessor {
        if (appEntry == null || appEntry.info == null) {
            return false;
        }
        return ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER_AND_INSTANT.filterApp(appEntry);
        return !ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER_AND_INSTANT.filterApp(
                appEntry);
    }

    private static boolean shouldShowBatteryAttributionList(final Context context) {
+2 −3
Original line number Diff line number Diff line
@@ -1660,8 +1660,7 @@ public final class DataProcessorTest {
                batteryHistEntry);
        doReturn(mAppEntry).when(mApplicationsState).getEntry(anyString(), anyInt());
        mAppEntry.info = mApplicationInfo;
        mApplicationInfo.flags =
                ApplicationInfo.FLAG_SYSTEM | ApplicationInfo.FLAG_UPDATED_SYSTEM_APP;
        mApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM;

        boolean needsCombineInSystemApp = DataProcessor.needsCombineInSystemApp(
                batteryDiffEntry, List.of(), mApplicationsState);
@@ -1691,7 +1690,7 @@ public final class DataProcessorTest {
                batteryHistEntry);
        doReturn(mAppEntry).when(mApplicationsState).getEntry(anyString(), anyInt());
        mAppEntry.info = mApplicationInfo;
        mApplicationInfo.flags = ApplicationInfo.FLAG_SYSTEM;
        mApplicationInfo.flags = 0;

        boolean needsCombineInSystemApp = DataProcessor.needsCombineInSystemApp(
                batteryDiffEntry, List.of(), mApplicationsState);