Lines Matching refs:handler
39 WeakMessageHandler::WeakMessageHandler(const wp<MessageHandler>& handler) : in WeakMessageHandler() argument
40 mHandler(handler) { in WeakMessageHandler()
47 sp<MessageHandler> handler = mHandler.promote(); in handleMessage() local
48 if (handler != nullptr) { in handleMessage()
49 handler->handleMessage(message); in handleMessage()
327 sp<MessageHandler> handler = messageEnvelope.handler; in pollInner() local
335 this, handler.get(), message.what); in pollInner()
337 handler->handleMessage(message); in pollInner()
583 void Looper::sendMessage(const sp<MessageHandler>& handler, const Message& message) { in sendMessage() argument
585 sendMessageAtTime(now, handler, message); in sendMessage()
588 void Looper::sendMessageDelayed(nsecs_t uptimeDelay, const sp<MessageHandler>& handler, in sendMessageDelayed() argument
591 sendMessageAtTime(now + uptimeDelay, handler, message); in sendMessageDelayed()
594 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime() argument
598 this, uptime, handler.get(), message.what); in sendMessageAtTime()
610 MessageEnvelope messageEnvelope(uptime, handler, message); in sendMessageAtTime()
628 void Looper::removeMessages(const sp<MessageHandler>& handler) { in removeMessages() argument
630 ALOGD("%p ~ removeMessages - handler=%p", this, handler.get()); in removeMessages()
638 if (messageEnvelope.handler == handler) { in removeMessages()
645 void Looper::removeMessages(const sp<MessageHandler>& handler, int what) { in removeMessages() argument
647 ALOGD("%p ~ removeMessages - handler=%p, what=%d", this, handler.get(), what); in removeMessages()
655 if (messageEnvelope.handler == handler in removeMessages()