四,InputDispatch怎么处理事件的?InputDispatch的循环同样是通过InputDispatchThread的ThreadLoop调用dispatchOnce实现的。在分发事件的处理中,如果事件类型是TYPE_KEY,将分发给dispatchKeyLocked。InputDispatcher.cpp voidInputDispatcher::dispatchOnceInnerLo
1. 对象的创建2. 事件的传递上图中有标示出来,RawEvent是待发出去的事件,InputReader经由QueueInputListener就可以关联到InputDispatch,最后由InputDispatch将事件处理或分发出去。InputManager::InputManager( const sp<EventHubInterface>& event
转载 2023-06-16 20:00:33
249阅读
正在学习《android内核剖析》,总结一下,用户从点击界面上的图标,到对应的应用程序起来的过程。由于有很多细节还不太了解其用法,包括ipc的调用机制还有不明白的地方,暂时先记着先。    点击的事件由InputReader捕获,交由InputDispatch处理。最终会到ActivityManagerService里决定启动一个activity。看类图: 每个应