Package org.robolectric.shadows
Class ShadowLegacyMessageQueue
java.lang.Object
org.robolectric.shadows.ShadowMessageQueue
org.robolectric.shadows.ShadowLegacyMessageQueue
@Implements(value=android.os.MessageQueue.class,
            isInAndroidSdk=false)
public class ShadowLegacyMessageQueue
extends ShadowMessageQueue
The shadow 
MessageQueue for LooperMode.Mode.LEGACY.
 In LooperMode.Mode.LEGACY Robolectric 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().
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.robolectric.shadows.ShadowMessageQueueShadowMessageQueue.Picker
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanenqueueMessage(Message msg, long when) getHead()Retrieves the current Message at the top of the queue.Return this queue's Scheduler.protected static voidnativeDestroy(long ptr) static longprotected voidremoveSyncBarrier(int token) voidreset()Reset the messageQueue state.voidSets the current Message at the top of the queue.voidsetScheduler(Scheduler scheduler) Set this queue's Scheduler.
- 
Constructor Details- 
ShadowLegacyMessageQueuepublic ShadowLegacyMessageQueue()
 
- 
- 
Method Details- 
nativeInit
- 
nativeDestroy
- 
getSchedulerDescription copied from class:ShadowMessageQueueReturn this queue's Scheduler.Only supported in LooperMode.Mode.LEGACY.- Specified by:
- getSchedulerin class- ShadowMessageQueue
 
- 
setSchedulerDescription copied from class:ShadowMessageQueueSet this queue's Scheduler.Only supported in LooperMode.Mode.LEGACY.- Specified by:
- setSchedulerin class- ShadowMessageQueue
 
- 
getHeadDescription copied from class:ShadowMessageQueueRetrieves the current Message at the top of the queue.Only supported in LooperMode.Mode.LEGACY.- Specified by:
- getHeadin class- ShadowMessageQueue
 
- 
setHeadDescription copied from class:ShadowMessageQueueSets the current Message at the top of the queue.Only supported in LooperMode.Mode.LEGACY.- Specified by:
- setHeadin class- ShadowMessageQueue
 
- 
resetpublic 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 class- ShadowMessageQueue
 
- 
enqueueMessage
- 
removeSyncBarrier
 
-