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
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.org.robolectric.util.SchedulerReturn 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 voidnativePollOncePreM(long ptr, int 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(org.robolectric.util.Scheduler scheduler) Set this queue's Scheduler.
-
Constructor Details
-
ShadowPausedMessageQueue
public ShadowPausedMessageQueue()
-
-
Method Details
-
__constructor__
@Implementation protected void __constructor__(boolean quitAllowed) -
nativeDestroy
@Implementation protected static void nativeDestroy(long ptr) -
nativePollOncePreM
@Implementation(maxSdk=22, methodName="nativePollOnce") protected static void nativePollOncePreM(long ptr, int timeoutMillis) -
nativePollOnce
@Implementation(minSdk=23) protected void nativePollOnce(long ptr, int timeoutMillis) -
nativeWake
@Implementation protected static void nativeWake(long ptr) -
nativeIsPolling
@Implementation(minSdk=23) protected static boolean nativeIsPolling(long ptr) -
isIdle
@Implementation(minSdk=23) public boolean isIdle()Exposes the API23+_isIdle method to older platforms -
enqueueMessage
-
isPolling
@Implementation(minSdk=23) protected boolean isPolling() -
quit
@Implementation protected void quit(boolean allowed) -
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
public org.robolectric.util.Scheduler getScheduler()Description copied from class:ShadowMessageQueueReturn this queue's Scheduler.Only supported in
LooperMode.Mode.LEGACY.- Specified by:
getSchedulerin classShadowMessageQueue
-
setScheduler
public void setScheduler(org.robolectric.util.Scheduler scheduler) 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
-