More native input event dispatching.

Added ANRs handling.
Added event injection.
Fixed a NPE ActivityManagerServer writing ANRs to the drop box.
Fixed HOME key interception.
Fixed trackball reporting.
Fixed pointer rotation in landscape mode.

Change-Id: I50340f559f22899ab924e220a78119ffc79469b7
This commit is contained in:
Jeff Brown
2010-06-17 20:52:56 -07:00
parent e47e3f3855
commit 7fbdc84e87
13 changed files with 1238 additions and 504 deletions

View File

@@ -341,11 +341,4 @@ public class MessageQueue {
}
}
*/
void poke()
{
synchronized (this) {
nativeWake();
}
}
}

View File

@@ -26,7 +26,7 @@ import android.util.Slog;
* to the ViewRoot through a Binder transaction as part of registering the Window.
* @hide
*/
public class InputChannel implements Parcelable {
public final class InputChannel implements Parcelable {
private static final String TAG = "InputChannel";
public static final Parcelable.Creator<InputChannel> CREATOR

View File

@@ -25,7 +25,7 @@ package android.view;
* These parameters are used by the native input dispatching code.
* @hide
*/
public class InputTarget {
public final class InputTarget {
public InputChannel mInputChannel;
public int mFlags;
public long mTimeoutNanos;