Touchscreen Input event processing in Android

299 views
Skip to first unread message

Leo

unread,
Oct 12, 2009, 1:10:36 PM10/12/09
to Android Linux Kernel Development
Hi Guys,

I'll be grateful if someone can explain that how the JNI layer (Native
layer) gets notified by the touchscreen driver when a touchscreen
event occurs? Any documentation or API flow chart on this will be of
great help.


Thanks in advance

Leo


Dianne Hackborn

unread,
Oct 12, 2009, 2:25:33 PM10/12/09
to android...@googlegroups.com
EventHub.cpp and KeyInputQueue.java are the main participants.
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

Leo

unread,
Oct 12, 2009, 2:42:11 PM10/12/09
to Android Linux Kernel Development
Hi Dianne,

Thanks for your reply. Can you please describe how events are passed
from touch screen DRIVER to EventHub.cpp (JNI layer) when a touch
screen event gets generated?

Regards
Leo




On Oct 12, 7:25 pm, Dianne Hackborn <hack...@android.com> wrote:
> EventHub.cpp and KeyInputQueue.java are the main participants.
>
>
>
> On Mon, Oct 12, 2009 at 10:10 AM, Leo <sajidh...@gmail.com> wrote:
>
> > Hi Guys,
>
> > I'll be grateful if someone can explain that how the JNI layer (Native
> > layer) gets notified by the touchscreen driver when a touchscreen
> > event occurs? Any documentation or API flow chart on this will be of
> > great help.
>
> > Thanks in advance
>
> > Leo
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com

Dianne Hackborn

unread,
Oct 12, 2009, 3:44:17 PM10/12/09
to android...@googlegroups.com
Um.  EventHub.cpp reads the data from the driver.  You can look at EventHub to see how it reads it.  There isn't anything more to say about I don't think -- it reads the next event from the driver, and the driver provides it.  (I can't really help you with details in the kernel, I work in the user space.)
hac...@android.com

DineshG

unread,
Oct 12, 2009, 5:54:57 PM10/12/09
to Android Linux Kernel Development
and why do you really bother about the flow from driver to EventHub .
Its reaching instantaneously to EvetHub and no filtering in the path.
So all your analysis for any means ca start from EventHub unless you
are facing any weired problem of not all data reaching to Eventhub ?
Reply all
Reply to author
Forward
0 new messages