Lines Matching defs:handler
30 import android.os.Handler;
458 * registered to receive the updates on the handler thread so it can call
505 private class EventHandler extends Handler {
535 Handler handler = null;
537 handler = new Handler(Looper.getMainLooper());
540 UserHandle.myUserId(), handler);
567 private static void sendMsg(Handler handler, int msg, int existingMsgPolicy,
569 if (handler == null) {
570 Log.e(TAG, "null event handler, will not deliver message " + msg);
574 handler.removeMessages(msg);
575 } else if (existingMsgPolicy == SENDMSG_NOOP && handler.hasMessages(msg)) {
578 handler.sendMessageDelayed(handler.obtainMessage(msg, arg1, arg2, obj), delayMs);