@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.
ShadowMessageQueue.Picker| Constructor and Description |
|---|
ShadowPausedMessageQueue() |
| Modifier and Type | Method and 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 platforms
|
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) |
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.
|
@Implementation protected void __constructor__(boolean quitAllowed)
@Implementation(maxSdk=17) protected void nativeDestroy()
@Implementation(minSdk=18, maxSdk=19) protected static void nativeDestroy(int ptr)
@Implementation(minSdk=20) protected static void nativeDestroy(long ptr)
@Implementation(maxSdk=17) protected void nativePollOnce(int ptr, int timeoutMillis)
@Implementation(minSdk=18, maxSdk=22) protected static void nativePollOnce(Object ptr, Object timeoutMillis)
@Implementation(minSdk=23) protected void nativePollOnce(long ptr, int timeoutMillis)
@Implementation(maxSdk=17) protected void nativeWake(int ptr)
@Implementation(minSdk=18, maxSdk=19) protected static void nativeWake(Object ptr)
@Implementation(minSdk=20) protected static void nativeWake(long ptr)
@Implementation(minSdk=23) protected static boolean nativeIsPolling(long ptr)
@Implementation(minSdk=23) public boolean isIdle()
Exposes the API23+_isIdle method to older platforms
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.
public void reset()
ShadowMessageQueueReset the messageQueue state. Should not be called by tests - it intended for use by the Robolectric framework.
reset in class ShadowMessageQueuepublic Scheduler getScheduler()
ShadowMessageQueueReturn this queue’s Scheduler.
Only supported in LooperMode.Mode.LEGACY.
getScheduler in class ShadowMessageQueuepublic void setScheduler(Scheduler scheduler)
ShadowMessageQueueSet this queue’s Scheduler.
Only supported in LooperMode.Mode.LEGACY.
setScheduler in class ShadowMessageQueuepublic Message getHead()
ShadowMessageQueueRetrieves the current Message at the top of the queue.
Only supported in LooperMode.Mode.LEGACY.
getHead in class ShadowMessageQueuepublic void setHead(Message msg)
ShadowMessageQueueSets the current Message at the top of the queue.
Only supported in LooperMode.Mode.LEGACY.
setHead in class ShadowMessageQueue