Home | History | Annotate | Download | only in os

Lines Matching defs:Looper

20  * Handy class for starting a new thread that has a looper. The looper can then be 
26 private Looper mLooper;
46 * setup before Looper loops.
53 Looper.prepare();
55 mLooper = Looper.myLooper();
60 Looper.loop();
65 * This method returns the Looper associated with this thread. If this thread not been started
67 * has been started, this method will block until the looper has been initialized.
68 * @return The looper.
70 public Looper getLooper() {
75 // If the thread has been started, wait until the looper has been created.
88 * Ask the currently running looper to quit. If the thread has not
90 * null), then false is returned. Otherwise the looper is asked to
94 Looper looper = getLooper();
95 if (looper != null) {
96 looper.quit();