frameworks/base/services/java/com/android/server/SystemServer.java
main()-->run()
-->startOtherServices()
|-->new InputManagerService() //services/core/java/com/android/server/input/InputManagerService.java
| -->InputManagerService()
| -->nativeInit() //调用jni接口
| -->native //Initservices/core/jni/com_android_server_input_InputManagerService.cpp
| -->NativeInputManager()
| //调用Native层
| |-->EventHub() //frameworks/native/services/inputflinger/EventHub.cpp
| |-->InputManager() //frameworks/native/services/inputflinger/InputManager.cpp
|
|
|-->inputManager.start() //services/core/java/com/android/server/input/InputManagerService.java
-->start()
-->nativeStart() //调用jni接口
-->nativeStart //Initservices/core/jni/com_android_server_input_InputManagerService.cpp
-->getInputManager()->start()
-->InputManager::start() //frameworks/native/services/inputflinger/InputManager.cpp
//调用Native层
|-->InputReader //frameworks/native/services/inputflinger/InputReader.cpp
|
|-->InputDispatcher //frameworks/native/services/inputflinger/InputDispatcher.cpp