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

Commit 917a8806 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Re-introduce explicit allowance of systemui to new concurrent...

Merge "Re-introduce explicit allowance of systemui to new concurrent MessageQueue implementation (DeliQueue)" into main
parents 817d9fbd 2b8d8100
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -191,6 +191,16 @@ public final class MessageQueue {
            }
        }

        // Also explicitly allow SystemUI processes.
        // SystemUI doesn't run in a core UID, but we want to give it the performance boost,
        // and we know that it's safe to use the concurrent implementation in SystemUI.
        if (processName.equals("com.android.systemui")
                || processName.startsWith("com.android.systemui:")) {
            return true;
        }
        // On Android distributions where SystemUI has a different process name,
        // the above condition may need to be adjusted accordingly.

        // We can lift these restrictions in the future after we've made it possible for test
        // authors to test Looper and MessageQueue without resorting to reflection.
        return false;