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

Commit af4b7a15 authored by Shai Barack's avatar Shai Barack
Browse files

Re-introduce concurrent MessageQueue in SystemUI

The underlying issue was addressed in a previous patch.
The disabling of concurrent MQ for SystemUI was made on main temporarily
in the service of cherrypick aosp/3722310.

Bug: 436941592
Bug: 436942235
Flag: build.RELEASE_PACKAGE_MESSAGEQUEUE_IMPLEMENTATION
Change-Id: I785a9b944a508b0b8551aa5baadc05b3344d3d5c
parent 9790b2b3
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -203,6 +203,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
        // 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.
        // authors to test Looper and MessageQueue without resorting to reflection.
        return false;
        return false;