Fix setAttachingSchedGroupLSP() to support use_fifo_ui am: e76ef0bd24 am: b6aa7c416c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23436582 Change-Id: I9af0490fc2a7d7fe720c0079bef6523511cb94f5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3253,7 +3253,11 @@ public class OomAdjuster {
|
|||||||
// {@link SCHED_GROUP_TOP_APP}. We don't check render thread because it
|
// {@link SCHED_GROUP_TOP_APP}. We don't check render thread because it
|
||||||
// is not ready when attaching.
|
// is not ready when attaching.
|
||||||
app.getWindowProcessController().onTopProcChanged();
|
app.getWindowProcessController().onTopProcChanged();
|
||||||
|
if (mService.mUseFifoUiScheduling) {
|
||||||
|
mService.scheduleAsFifoPriority(app.getPid(), true);
|
||||||
|
} else {
|
||||||
setThreadPriority(app.getPid(), THREAD_PRIORITY_TOP_APP_BOOST);
|
setThreadPriority(app.getPid(), THREAD_PRIORITY_TOP_APP_BOOST);
|
||||||
|
}
|
||||||
initialSchedGroup = SCHED_GROUP_TOP_APP;
|
initialSchedGroup = SCHED_GROUP_TOP_APP;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Slog.w(TAG, "Failed to pre-set top priority to " + app + " " + e);
|
Slog.w(TAG, "Failed to pre-set top priority to " + app + " " + e);
|
||||||
|
|||||||
Reference in New Issue
Block a user