/**@class android.os.HandlerThread @extends java.lang.Thread Handy class for starting a new thread that has a looper. The looper can then be used to create handler classes. Note that start() must still be called. */ var HandlerThread = { /** */ run : function( ) {}, /**This method returns the Looper associated with this thread. If this thread not been started or for any reason is isAlive() returns false, this method will return null. If this thread has been started, this method will block until the looper has been initialized. @return {Object {android.os.Looper}} The looper. */ getLooper : function( ) {}, /**Quits the handler thread's looper. <p> Causes the handler thread's looper to terminate without processing any more messages in the message queue. </p><p> Any attempt to post messages to the queue after the looper is asked to quit will fail. For example, the {@link android.os.Handler#sendMessage(Message)} method will return false. </p><p class="note"> Using this method may be unsafe because some messages may not be delivered before the looper terminates. Consider using {@link #quitSafely} instead to ensure that all pending work is completed in an orderly manner. </p> @return {Boolean} True if the looper looper has been asked to quit or false if the thread had not yet started running. @see #quitSafely */ quit : function( ) {}, /**Quits the handler thread's looper safely. <p> Causes the handler thread's looper to terminate as soon as all remaining messages in the message queue that are already due to be delivered have been handled. Pending delayed messages with due times in the future will not be delivered. </p><p> Any attempt to post messages to the queue after the looper is asked to quit will fail. For example, the {@link android.os.Handler#sendMessage(Message)} method will return false. </p><p> If the thread has not been started or has finished (that is if {@link #getLooper} returns null), then false is returned. Otherwise the looper is asked to quit and true is returned. </p> @return {Boolean} True if the looper looper has been asked to quit or false if the thread had not yet started running. */ quitSafely : function( ) {}, /**Returns the identifier of this thread. See Process.myTid(). */ getThreadId : function( ) {}, };