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

Commit 511b7922 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:...

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

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2795538



Change-Id: Ibea63a789626ebba85ca577bdd95e51537c8d8e3
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 07035f59 e9add7b9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2721,8 +2721,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
@@ -2590,7 +2590,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,