参考
http://gityuan.com/2019/04/06/android-anr/
http://gityuan.com/2017/01/01/input-anr/
整体架构
触摸屏幕的时候,Linux内核往设备节点写数据
EventHub会监听设备节点文件
InputReader无限循环,从EventHub中读取事件,加工后把事件放入InputDispatcher队列
InputDispatcher无限循环,从InputDispatcher中取出事件,找到合适的Window,把事件写入这个Window的InputChannel
随后串口端的Looper会被唤醒
派发架构
以下是3个队列的流转流程,简单记为A、B、C队列