Home | History | Annotate | Download | only in os

Lines Matching defs:Looper

23  * Handy class for starting a new thread that has a looper. The looper can then be 
29 Looper mLooper;
50 * setup before Looper loops.
58 Looper.prepare();
60 mLooper = Looper.myLooper();
65 Looper.loop();
70 * This method returns the Looper associated with this thread. If this thread not been started
72 * has been started, this method will block until the looper has been initialized.
73 * @return The looper.
75 public Looper getLooper() {
80 // If the thread has been started, wait until the looper has been created.
105 * Quits the handler thread's looper.
107 * Causes the handler thread's looper to terminate without processing any
110 * Any attempt to post messages to the queue after the looper is asked to quit will fail.
114 * before the looper terminates. Consider using {@link #quitSafely} instead to ensure
118 * @return True if the looper looper has been asked to quit or false if the
124 Looper looper = getLooper();
125 if (looper != null) {
126 looper.quit();
133 * Quits the handler thread's looper safely.
135 * Causes the handler thread's looper to terminate as soon as all remaining messages
139 * Any attempt to post messages to the queue after the looper is asked to quit will fail.
144 * Otherwise the looper is asked to quit and true is returned.
147 * @return True if the looper looper has been asked to quit or false if the
151 Looper looper = getLooper();
152 if (looper != null) {
153 looper.quitSafely();