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

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

Merge "LegacyMessageQueue add missing methods" into main

parents bcd43a4f 28bb528b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -96,6 +96,8 @@ public final class MessageQueue {
    private native static boolean nativeIsPolling(long ptr);
    @RavenwoodRedirect
    private native static void nativeSetFileDescriptorEvents(long ptr, int fd, int events);
    @RavenwoodRedirect
    private native static void nativeSetSkipEpollWaitForZeroTimeout(long ptr);

    MessageQueue(boolean quitAllowed) {
        mQuitAllowed = quitAllowed;
@@ -120,6 +122,10 @@ public final class MessageQueue {
        }
    }

    static boolean getUseConcurrent() {
        return false;
    }

    /**
     * Returns true if the looper has no pending messages which are due to be processed
     * and is not blocked on sync barrier.