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

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

Add flag to force concurrent MessageQueue

Study the AppCompat impact.
See: go/new-mq-appcompat

Bug: 336880969
Change-Id: Ib9ebc61f7fabc473aeb81040ba3ba64912da0bf8
Flag: android.os.force_concurrent_message_queue
parent d472c01f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -149,6 +149,11 @@ public final class MessageQueue {
            return;
        }

        if (Flags.forceConcurrentMessageQueue()) {
            sIsProcessAllowedToUseConcurrent = true;
            return;
        }

        final String processName = Process.myProcessName();
        if (processName == null) {
            // Assume that this is a host-side test and avoid concurrent mode for now.
+8 −0
Original line number Diff line number Diff line
@@ -210,6 +210,14 @@ flag {
    bug: "370845648"
}

flag {
     name: "force_concurrent_message_queue"
     namespace: "system_performance"
     is_exported: true
     description: "Whether MessageQueue uses the new concurrent implementation"
     bug: "336880969"
}

flag {
    name: "get_private_space_settings"
    namespace: "profile_experiences"