void NativeInputEventSender::dispose() { if (kDebugDispatchCycle) { ALOGD("channel '%s' ~ Disposing input event sender.", getInputChannelName()); } mMessageQueue->getLooper()->removeFd(mInputPublisher.getChannel()->getFd()); }
status_t NativeInputEventSender::initialize() { int receiveFd = mInputPublisher.getChannel()->getFd(); mMessageQueue->getLooper()->addFd(receiveFd, 0, ALOOPER_EVENT_INPUT, this, NULL); return OK; }
const char* getInputChannelName() { return mInputPublisher.getChannel()->getName().string(); }