@Implements(value=android.os.MessageQueue.class)
public class ShadowMessageQueue
extends java.lang.Object
MessageQueue.
This class puts Messages into the scheduler queue instead of sending
them to be handled on a separate thread. Messages that are scheduled to
be dispatched can be triggered by calling ShadowLooper.idleMainLooper().
ShadowLooper| Constructor and Description |
|---|
ShadowMessageQueue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enqueueMessage(android.os.Message msg,
long when) |
android.os.Message |
getHead() |
org.robolectric.util.Scheduler |
getScheduler() |
static void |
nativeDestroy(int ptr) |
static int |
nativeInit() |
static boolean |
nativeIsIdling(int ptr) |
static void |
nativePollOnce(int ptr,
int timeoutMillis) |
static void |
nativeWake(int ptr) |
void |
removeSyncBarrier(int token) |
void |
reset() |
void |
setHead(android.os.Message msg) |
void |
setScheduler(org.robolectric.util.Scheduler scheduler) |
@HiddenApi @Implementation public static int nativeInit()
@HiddenApi @Implementation public static void nativeDestroy(int ptr)
@HiddenApi
@Implementation
public static void nativePollOnce(int ptr,
int timeoutMillis)
@HiddenApi @Implementation public static void nativeWake(int ptr)
@HiddenApi @Implementation public static boolean nativeIsIdling(int ptr)
public org.robolectric.util.Scheduler getScheduler()
public void setScheduler(org.robolectric.util.Scheduler scheduler)
public android.os.Message getHead()
public void setHead(android.os.Message msg)
public void reset()
@Implementation
public boolean enqueueMessage(android.os.Message msg,
long when)
@HiddenApi @Implementation public void removeSyncBarrier(int token)