Publishes input events to an input channel
将一个input事件通过 input channel发给到客户端。
代码位置: frameworks/native/include/input/InputTransport.h
何时创建:
在 frameworks/native/services/inputflinger/dispatcher/Connection.cpp的构造函数中作为一个成员变量被创建。
publishKeyEvent被哪里调用:
InputDispatcher::startDispatchCycleLocked调用 InputPublisher的publishKeyEvent方法。
是在服务端的policy处理完毕之后才发给客户端的。