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

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

Allow processes running on ravenwood to use concurrent message queues

This is to unblock eventually deleting the legacy MQ code.

Change-Id: If9bfc007f316b599390b7fcafce728d6becb6248
Flag: EXEMPT test-only
parent 453c976b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -144,11 +144,6 @@ public final class MessageQueue {
            return;
        }

        if (RavenwoodEnvironment.getInstance().isRunningOnRavenwood()) {
            sIsProcessAllowedToUseConcurrent = false;
            return;
        }

        if (Flags.forceConcurrentMessageQueue()) {
            sIsProcessAllowedToUseConcurrent = true;
            return;
+7 −0
Original line number Diff line number Diff line
@@ -1347,6 +1347,7 @@ public class Process {
     * Return the name of this process. By default, the process name is the same as the app's
     * package name, but this can be changed using {@code android:process}.
     */
    @RavenwoodReplace
    @NonNull
    public static String myProcessName() {
        // Note this could be different from the actual process name if someone changes the
@@ -1355,6 +1356,12 @@ public class Process {
        return sArgV0;
    }

    /** @hide */
    @NonNull
    public static String myProcessName$ravenwood() {
        return "ravenwood";
    }

    /**
     * Kill the process with the given PID.
     * Note that, though this API allows us to request to