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 Constructor Description ShadowPausedMessageQueue()
-
Method Summary
Modifier and Type Method Description protected void
__constructor__(boolean quitAllowed)
Message
getHead()
Retrieves the current Message at the top of the queue.Scheduler
getScheduler()
Return this queue's Scheduler.int
internalGetSize()
Internal method to get the number of entries in the MessageQueue.boolean
isIdle()
Exposes the API23+_isIdle method to older platformsprotected boolean
isPolling()
protected void
nativeDestroy()
protected static void
nativeDestroy(int ptr)
protected static void
nativeDestroy(long ptr)
protected static boolean
nativeIsPolling(long ptr)
protected void
nativePollOnce(int ptr, int timeoutMillis)
protected void
nativePollOnce(long ptr, int timeoutMillis)
protected static void
nativePollOnce(Object ptr, Object timeoutMillis)
protected void
nativeWake(int ptr)
protected static void
nativeWake(long ptr)
protected static void
nativeWake(Object ptr)
protected void
quit()
void
reset()
Reset the messageQueue state.void
setHead(Message msg)
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
-
nativeDestroy
-
nativeDestroy
-
nativePollOnce
-
nativePollOnce
@Implementation(minSdk=18, maxSdk=22) protected static void nativePollOnce(Object ptr, Object timeoutMillis) -
nativePollOnce
-
nativeWake
-
nativeWake
-
nativeWake
-
nativeIsPolling
-
isIdle
Exposes the API23+_isIdle method to older platforms -
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
-