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

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

Merge "Prepare for removing app access to some MessageQueue internals" into main

parents 339c9738 b21e0c5b
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -76,8 +76,13 @@ public final class MessageQueue {
    @SuppressWarnings("unused")
    private long mPtr; // used by native code

    @UnsupportedAppUsage
    @UnsupportedAppUsage(
            maxTargetSdk = Build.VERSION_CODES.BAKLAVA,
            publicAlternatives =
                    "To manipulate the queue in Instrumentation tests, use {@link"
                        + " android.os.TestLooperManager}")
    Message mMessages;

    private Message mLast;
    @UnsupportedAppUsage
    private final ArrayList<IdleHandler> mIdleHandlers = new ArrayList<IdleHandler>();
@@ -995,7 +1000,11 @@ public final class MessageQueue {
        }
    }

    @UnsupportedAppUsage
    @UnsupportedAppUsage(
            maxTargetSdk = Build.VERSION_CODES.BAKLAVA,
            publicAlternatives =
                    "To manipulate the queue in Instrumentation tests, use {@link"
                        + " android.os.TestLooperManager}")
    Message next() {
        if (mUseConcurrent) {
            return nextConcurrent();