android - Tracing Input/Event Flow from Driver to APP -
i creating driver custom piece of input hardware attempt pass data kernel input, kernel pass through os , expose app level via motionevent. looking @ other device drivers, looks setting input events via of functions exposed in input.h of android 2.2 kernel (2.6.32) might trick, i'd love confirm this. before starting down path trying better understanding of how existing inputs, screen, trackball, etc passed through os. ultimate goal ensure can pass data device app-level before investing time going down path.
input header of linux kernal 2.6.32
http://lxr.free-electrons.com/source/include/linux/input.h?v=2.6.32
i've browsed through android class sources, not sure see how os instatiates motionevent class can accessed via ontouchevent() method of view class. can point me in right direction in terms of how motionevent populated os , how os gets data kernel?
thanks,
paul
the first place @ in in frameworks/base/libs/ui/eventhub.cpp, go through /dev/input find different input devices on platform , "kind" of input are.
more...
next step in frameworks/base/services/jni/com_android_server_keyinputqueue.cpp , frameworks/base/services/java/com/android/server/keyinputqueue.java.
if doing implementing input interface new piece of hardware, don't think need further that...
Comments
Post a Comment