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,
looseSignatures=true)
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void__constructor__(boolean quitAllowed) protected booleanenqueueMessage(Message msg, long when) getHead()Retrieves the current Message at the top of the queue.Return this queue's Scheduler.intInternal method to get the number of entries in the MessageQueue.booleanisIdle()Exposes the API23+_isIdle method to older platformsprotected booleanprotected static voidnativeDestroy(long ptr) protected static booleannativeIsPolling(long ptr) protected voidnativePollOnce(long ptr, int timeoutMillis) protected static voidnativePollOnce(Object ptr, Object timeoutMillis) protected static voidnativeWake(long ptr) protected voidquit(boolean allowed) voidreset()Reset the messageQueue state.voidSets the current Message at the top of the queue.voidsetScheduler(Scheduler scheduler) Set this queue's Scheduler.
-
Constructor Details
-
ShadowPausedMessageQueue
public ShadowPausedMessageQueue()
-
-
Method Details
-
__constructor__
-
nativeDestroy
-
nativePollOnce
-
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:ShadowMessageQueueReset the messageQueue state. Should not be called by tests - it intended for use by the Robolectric framework.- Specified by:
resetin classShadowMessageQueue
-
getScheduler
Description copied from class:ShadowMessageQueueReturn this queue's Scheduler.Only supported in
LooperMode.Mode.LEGACY.- Specified by:
getSchedulerin classShadowMessageQueue
-
setScheduler
Description copied from class:ShadowMessageQueueSet this queue's Scheduler.Only supported in
LooperMode.Mode.LEGACY.- Specified by:
setSchedulerin classShadowMessageQueue
-
getHead
Description copied from class:ShadowMessageQueueRetrieves the current Message at the top of the queue.Only supported in
LooperMode.Mode.LEGACY.- Specified by:
getHeadin classShadowMessageQueue
-
setHead
Description copied from class:ShadowMessageQueueSets the current Message at the top of the queue.Only supported in
LooperMode.Mode.LEGACY.- Specified by:
setHeadin classShadowMessageQueue
-