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

Commit 29384f92 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz Committed by Automerger Merge Worker
Browse files

Merge "Init some time Process stats with very negative numbers" into main am: 5a389aa6

parents c81795ea 5a389aa6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2712,8 +2712,7 @@ public class OomAdjuster {
            }
        }

        if (ppr.getLastProviderTime() > 0
                && (ppr.getLastProviderTime() + mConstants.CONTENT_PROVIDER_RETAIN_TIME) > now) {
        if ((ppr.getLastProviderTime() + mConstants.CONTENT_PROVIDER_RETAIN_TIME) > now) {
            if (adj > PREVIOUS_APP_ADJ) {
                adj = PREVIOUS_APP_ADJ;
                schedGroup = SCHED_GROUP_BACKGROUND;
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ final class ProcessProviderRecord {
    /**
     * The last time someone else was using a provider in this process.
     */
    private long mLastProviderTime;
    private long mLastProviderTime = Long.MIN_VALUE;

    /**
     * class (String) -> ContentProviderRecord.
+1 −1
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ final class ProcessStateRecord {
     * The last time the process was in the TOP state or greater.
     */
    @GuardedBy("mService")
    private long mLastTopTime;
    private long mLastTopTime = Long.MIN_VALUE;

    /**
     * Is this an empty background process?
+1 −1
Original line number Diff line number Diff line
@@ -2553,7 +2553,7 @@ public class MockingOomAdjusterTests {
                PROCESS_STATE_NONEXISTENT, PROCESS_STATE_NONEXISTENT,
                0, 0, false, false, false, ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE,
                false, false, false, hasShownUi, false, false, false, false, false, false, null,
                0, 0, 0, true, 0, null, false);
                0, Long.MIN_VALUE, Long.MIN_VALUE, true, 0, null, false);
    }

    private ProcessRecord makeProcessRecord(ActivityManagerService service, int pid, int uid,