Merge "Make the pending top UID's adj value slightly better than FOREGROUND_APP_ADJ." into rvc-dev am: e58fb44af5

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

Change-Id: Iad29db9580cb264c33b8dff182983066e73ad3fb
This commit is contained in:
Hui Yu
2020-07-14 19:58:20 +00:00
committed by Automerger Merge Worker

View File

@@ -6058,7 +6058,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;