InputManagerServer调用流程

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

 

posted @ 2021-11-29 18:10  M-kobe  阅读(41)  评论(0)    收藏  举报