Lines Matching defs:Handler

25  * A Handler allows you to send and process {@link Message} and Runnable
26 * objects associated with a thread's {@link MessageQueue}. Each Handler
28 * queue. When you create a new Handler, it is bound to the thread /
33 * <p>There are two main uses for a Handler: (1) to schedule messages and
45 * processed by the Handler's {@link #handleMessage} method (requiring that
46 * you implement a subclass of Handler).
48 * <p>When posting or sending to a Handler, you can either
59 * the main application thread through a Handler. This is done by calling
62 * in the Handler's message queue and processed when appropriate.
64 public class Handler {
67 * that extend this Handler class and that are not static. These kind
71 private static final String TAG = "Handler";
74 * Callback interface you can use when instantiating a Handler to avoid
75 * having to implement your own subclass of Handler.
110 public Handler() {
124 public Handler(Callback callback) {
133 public Handler(Looper looper) {
144 public Handler(Looper looper, Callback callback) {
164 public Handler(boolean async) {
185 public Handler(Callback callback, boolean async) {
187 final Class<? extends Handler> klass = getClass();
190 Log.w(TAG, "The following Handler class should be static or leaks might occur: " +
224 public Handler(Looper looper, Callback callback, boolean async) {
431 * set up a Handler thread and need to perform some initialization steps on
690 return "Handler (" + getClass().getName() + ") {"
707 Handler.this.sendMessage(msg);
754 public boolean postAndWait(Handler handler, long timeout) {