OSDN Git Service

First stab at attaching native event dispatching.
authorDianne Hackborn <hackbod@google.com>
Sat, 19 Jun 2010 01:09:33 +0000 (18:09 -0700)
committerDianne Hackborn <hackbod@google.com>
Tue, 22 Jun 2010 18:21:50 +0000 (11:21 -0700)
commita95e4cb62f3642cb190d032dbf7dc40d9ecc6973
treeae4437444a3d3ebeff48dabfd1e9c11fc14620ac
parentef730e6ececa96a3e0576140eea707f7c48cd66c
First stab at attaching native event dispatching.

Provides the basic infrastructure for a
NativeActivity's native code to get an object representing
its event stream that can be used to read input events.

Still work to do, probably some API changes, and reasonable
default key handling (so that for example back will still
work).

Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
19 files changed:
api/current.xml
core/java/android/app/NativeActivity.java
core/java/android/view/InputChannel.java
core/java/android/view/InputConsumer.java [new file with mode: 0644]
core/java/android/view/ViewRoot.java
core/java/android/view/Window.java
core/java/com/android/internal/view/RootViewSurfaceTaker.java
core/jni/android_app_NativeActivity.cpp
core/jni/android_view_InputChannel.h
include/ui/Input.h
include/ui/InputTransport.h
libs/ui/Input.cpp
libs/ui/InputTransport.cpp
native/android/Android.mk [new file with mode: 0644]
native/android/activity.cpp [new file with mode: 0644]
native/android/input.cpp [new file with mode: 0644]
native/include/android/input.h
native/include/android/native_activity.h
policy/src/com/android/internal/policy/impl/PhoneWindow.java