summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-04-12 18:55:57 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-12 18:55:57 -0700
commit882735972e9e7ee52a3116a3aba0440968b2da1a (patch)
treebe12d9a5d1f8608629d74382f6f1927eadcbbdb8 /api
parentd4fecc2567ca54427b9c86900bccbc7103ea8fde (diff)
parentaf9e8d38184c6ba4d2d3eb5bde7014a66dd8a78b (diff)
downloadframeworks_base-882735972e9e7ee52a3116a3aba0440968b2da1a.zip
frameworks_base-882735972e9e7ee52a3116a3aba0440968b2da1a.tar.gz
frameworks_base-882735972e9e7ee52a3116a3aba0440968b2da1a.tar.bz2
Merge "Notify applications when input devices change."
Diffstat (limited to 'api')
-rw-r--r--api/current.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index b2a8b2d..c62a2c3 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -9822,10 +9822,20 @@ package android.hardware {
package android.hardware.input {
public final class InputManager {
+ method public android.view.InputDevice getInputDevice(int);
+ method public int[] getInputDeviceIds();
+ method public void registerInputDeviceListener(android.hardware.input.InputManager.InputDeviceListener, android.os.Handler);
+ method public void unregisterInputDeviceListener(android.hardware.input.InputManager.InputDeviceListener);
field public static final java.lang.String ACTION_QUERY_KEYBOARD_LAYOUTS = "android.hardware.input.action.QUERY_KEYBOARD_LAYOUTS";
field public static final java.lang.String META_DATA_KEYBOARD_LAYOUTS = "android.hardware.input.metadata.KEYBOARD_LAYOUTS";
}
+ public static abstract interface InputManager.InputDeviceListener {
+ method public abstract void onInputDeviceAdded(int);
+ method public abstract void onInputDeviceChanged(int);
+ method public abstract void onInputDeviceRemoved(int);
+ }
+
}
package android.hardware.usb {