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} forLooperMode.Mode.PAUSEDThis class should not be referenced directly. Use
ShadowMessageQueueinstead.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowMessageQueue
ShadowMessageQueue.Picker
-
-
Constructor Summary
Constructors Constructor Description ShadowPausedMessageQueue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void__constructor__(boolean quitAllowed)MessagegetHead()Retrieves the current Message at the top of the queue.SchedulergetScheduler()Return this queue's Scheduler.intinternalGetSize()Internal method to get the number of entries in the MessageQueue.booleanisIdle()Exposes the API23+_isIdle method to older platformsprotected booleanisPolling()protected voidnativeDestroy()protected static voidnativeDestroy(int ptr)protected static voidnativeDestroy(long ptr)protected static booleannativeIsPolling(long ptr)protected voidnativePollOnce(int ptr, int timeoutMillis)protected voidnativePollOnce(long ptr, int timeoutMillis)protected static voidnativePollOnce(Object ptr, Object timeoutMillis)protected voidnativeWake(int ptr)protected static voidnativeWake(long ptr)protected static voidnativeWake(Object ptr)protected voidquit()voidreset()Reset the messageQueue state.voidsetHead(Message msg)Sets the current Message at the top of the queue.voidsetScheduler(Scheduler scheduler)Set this queue's Scheduler.
-
-
-
Method Detail
-
__constructor__
@Implementation protected void __constructor__(boolean quitAllowed)
-
nativeDestroy
@Implementation(maxSdk=17) protected void nativeDestroy()
-
nativeDestroy
@Implementation(minSdk=18, maxSdk=19) protected static void nativeDestroy(int ptr)
-
nativeDestroy
@Implementation(minSdk=20) protected static void nativeDestroy(long ptr)
-
nativePollOnce
@Implementation(maxSdk=17) protected void nativePollOnce(int ptr, int timeoutMillis)
-
nativePollOnce
@Implementation(minSdk=18, maxSdk=22) protected static void nativePollOnce(Object ptr, Object timeoutMillis)
-
nativePollOnce
@Implementation(minSdk=23) protected void nativePollOnce(long ptr, int timeoutMillis)
-
nativeWake
@Implementation(maxSdk=17) protected void nativeWake(int ptr)
-
nativeWake
@Implementation(minSdk=18, maxSdk=19) protected static void nativeWake(Object ptr)
-
nativeWake
@Implementation(minSdk=20) 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
-
isPolling
@Implementation(minSdk=23) protected boolean isPolling()
-
quit
@Implementation(maxSdk=17) protected void 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
public 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(Scheduler scheduler)
Description copied from class:ShadowMessageQueueSet this queue's Scheduler.Only supported in
LooperMode.Mode.LEGACY.- Specified by:
setSchedulerin classShadowMessageQueue
-
getHead
public Message 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
public void setHead(Message msg)
Description copied from class:ShadowMessageQueueSets the current Message at the top of the queue.Only supported in
LooperMode.Mode.LEGACY.- Specified by:
setHeadin classShadowMessageQueue
-
-