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

Commit 37531b90 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

TestLooperManager and MessageQueue javadoc fixes.

Flag: android.os.message_queue_testability
Test: EXEMPT - doc update
Bug: 379472827
Change-Id: I18434e73573f814260994dbd362fa2736e157e3a
parent 31d71959
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -786,8 +786,8 @@ public final class MessageQueue {
    }

    /**
     * Get the timestamp of the next executable message in our priority queue.
     * Returns null if there are no messages ready for delivery.
     * Get the timestamp of the next message in our priority queue.
     * Returns null if there are no messages in the queue.
     *
     * Caller must ensure that this doesn't race 'next' from the Looper thread.
     */
@@ -799,8 +799,8 @@ public final class MessageQueue {
    }

    /**
     * Return the next executable message in our priority queue.
     * Returns null if there are no messages ready for delivery
     * Return the next message in our priority queue.
     * Returns null if there are no messages in the queue.
     *
     * Caller must ensure that this doesn't race 'next' from the Looper thread.
     */
+5 −5
Original line number Diff line number Diff line
@@ -96,8 +96,8 @@ public class TestLooperManager {
    }

    /**
     * Retrieves and removes the next message that should be executed by this queue.
     * If the queue is empty or no messages are deliverable, returns null.
     * Retrieves and removes the next message in this queue.
     * If the queue is empty, returns null.
     * This method never blocks.
     *
     * <p>Callers should always call {@link #recycle(Message)} on the message when all interactions
@@ -112,9 +112,9 @@ public class TestLooperManager {
    }

    /**
     * Retrieves, but does not remove, the values of {@link Message#when} of next message that
     * should be executed by this queue.
     * If the queue is empty or no messages are deliverable, returns null.
     * Retrieves, but does not remove, the values of {@link Message#when} of next message in the
     * queue.
     * If the queue is empty, returns null.
     * This method never blocks.
     */
    @FlaggedApi(Flags.FLAG_MESSAGE_QUEUE_TESTABILITY)