Package org.robolectric.shadows
Class ShadowPausedMessageQueue
java.lang.Object
org.robolectric.shadows.ShadowMessageQueue
org.robolectric.shadows.ShadowPausedMessageQueue
@Implements(value=android.os.MessageQueue.class,
isInAndroidSdk=false)
public class ShadowPausedMessageQueue
extends ShadowMessageQueue
The shadow MessageQueue} for
LooperMode.Mode.PAUSED
This class should not be referenced directly. Use ShadowMessageQueue
instead.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowMessageQueue
ShadowMessageQueue.Picker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(boolean quitAllowed) protected boolean
enqueueMessage
(Message msg, long when) getHead()
Retrieves the current Message at the top of the queue.Return this queue's Scheduler.int
Internal method to get the number of entries in the MessageQueue.boolean
isIdle()
Exposes the API23+_isIdle method to older platformsprotected boolean
protected static void
nativeDestroy
(long ptr) protected static boolean
nativeIsPolling
(long ptr) protected void
nativePollOnce
(long ptr, int timeoutMillis) protected static void
nativePollOncePreM
(long ptr, int timeoutMillis) protected static void
nativeWake
(long ptr) protected void
quit
(boolean allowed) void
reset()
Reset the messageQueue state.void
Sets the current Message at the top of the queue.void
setScheduler
(Scheduler scheduler) Set this queue's Scheduler.
-
Constructor Details
-
ShadowPausedMessageQueue
public ShadowPausedMessageQueue()
-
-
Method Details
-
__constructor__
-
nativeDestroy
-
nativePollOncePreM
@Implementation(maxSdk=22, methodName="nativePollOnce") protected static void nativePollOncePreM(long ptr, int timeoutMillis) -
nativePollOnce
-
nativeWake
-
nativeIsPolling
-
isIdle
Exposes the API23+_isIdle method to older platforms -
enqueueMessage
-
isPolling
-
quit
-
internalGetSize
public int internalGetSize()Internal method to get the number of entries in the MessageQueue.Do not use, will likely be removed in a future release.
-
reset
public void reset()Description copied from class:ShadowMessageQueue
Reset the messageQueue state. Should not be called by tests - it intended for use by the Robolectric framework.- Specified by:
reset
in classShadowMessageQueue
-
getScheduler
Description copied from class:ShadowMessageQueue
Return this queue's Scheduler.Only supported in
LooperMode.Mode.LEGACY
.- Specified by:
getScheduler
in classShadowMessageQueue
-
setScheduler
Description copied from class:ShadowMessageQueue
Set this queue's Scheduler.Only supported in
LooperMode.Mode.LEGACY
.- Specified by:
setScheduler
in classShadowMessageQueue
-
getHead
Description copied from class:ShadowMessageQueue
Retrieves the current Message at the top of the queue.Only supported in
LooperMode.Mode.LEGACY
.- Specified by:
getHead
in classShadowMessageQueue
-
setHead
Description copied from class:ShadowMessageQueue
Sets the current Message at the top of the queue.Only supported in
LooperMode.Mode.LEGACY
.- Specified by:
setHead
in classShadowMessageQueue
-