Class 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.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void __constructor__​(boolean quitAllowed)  
      android.os.Message getHead()
      Retrieves the current Message at the top of the queue.
      org.robolectric.util.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​(java.lang.Object ptr, java.lang.Object timeoutMillis)  
      protected void nativeWake​(int ptr)  
      protected static void nativeWake​(long ptr)  
      protected static void nativeWake​(java.lang.Object ptr)  
      void reset()
      Reset the messageQueue state.
      void setHead​(android.os.Message msg)
      Sets the current Message at the top of the queue.
      void setScheduler​(org.robolectric.util.Scheduler scheduler)
      Set this queue's Scheduler.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowPausedMessageQueue

        public ShadowPausedMessageQueue()
    • 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​(java.lang.Object ptr,
                                             java.lang.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​(java.lang.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
      • 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 class ShadowMessageQueue
      • getScheduler

        public org.robolectric.util.Scheduler getScheduler()
        Description copied from class: ShadowMessageQueue
        Return this queue's Scheduler.

        Only supported in LooperMode.Mode.LEGACY.

        Specified by:
        getScheduler in class ShadowMessageQueue
      • setScheduler

        public void setScheduler​(org.robolectric.util.Scheduler scheduler)
        Description copied from class: ShadowMessageQueue
        Set this queue's Scheduler.

        Only supported in LooperMode.Mode.LEGACY.

        Specified by:
        setScheduler in class ShadowMessageQueue
      • getHead

        public android.os.Message 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 class ShadowMessageQueue
      • setHead

        public void setHead​(android.os.Message msg)
        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 class ShadowMessageQueue