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

Commit dd181557 authored by Hui Yu's avatar Hui Yu
Browse files

Make the pending top UID's adj value slightly better than

FOREGROUND_APP_ADJ.

In case the pending top UID needs to compete with an already top UID,
it needs a better adj value (which is to minus one).

Bug: 160392839, 155143386, 157180494
Test: b/160392839 CTS: CtsCameraTestCases # android.hardware.multiprocess.camera.cts.CameraEvictionTest#testBasicCamera2ActivityEvictionfailure
Change-Id: Ibe219c3e780603173ad94a16056196d66c95e2a1
parent 3fa2d86f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6066,7 +6066,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                                mPendingStartActivityUids.isPendingTopPid(pr.uid, pids[i]);
                    states[i] = isPendingTop ? PROCESS_STATE_TOP : pr.getCurProcState();
                    if (scores != null) {
                        scores[i] = isPendingTop ? ProcessList.FOREGROUND_APP_ADJ : pr.curAdj;
                        scores[i] = isPendingTop ? (ProcessList.FOREGROUND_APP_ADJ - 1) : pr.curAdj;
                    }
                } else {
                    states[i] = PROCESS_STATE_NONEXISTENT;