diff --git a/core/java/android/hardware/input/InputManager.java b/core/java/android/hardware/input/InputManager.java index e5d86204077b5..6f0c944b76ff3 100644 --- a/core/java/android/hardware/input/InputManager.java +++ b/core/java/android/hardware/input/InputManager.java @@ -1016,9 +1016,8 @@ public final class InputManager { } /** - * Queries the framework about whether any physical keys exist on the - * any keyboard attached to the device that are capable of producing the given - * array of key codes. + * Queries the framework about whether any physical keys exist on any currently attached input + * devices that are capable of producing the given array of key codes. * * @param keyCodes The array of key codes to query. * @return A new array of the same size as the key codes array whose elements @@ -1032,11 +1031,10 @@ public final class InputManager { } /** - * Queries the framework about whether any physical keys exist on the - * any keyboard attached to the device that are capable of producing the given - * array of key codes. + * Queries the framework about whether any physical keys exist on the specified input device + * that are capable of producing the given array of key codes. * - * @param id The id of the device to query. + * @param id The id of the input device to query or -1 to consult all devices. * @param keyCodes The array of key codes to query. * @return A new array of the same size as the key codes array whose elements are set to true * if the given device could produce the corresponding key code at the same index in the key diff --git a/core/java/android/view/KeyCharacterMap.java b/core/java/android/view/KeyCharacterMap.java index aa1acc1217df7..a6f88a7410c29 100644 --- a/core/java/android/view/KeyCharacterMap.java +++ b/core/java/android/view/KeyCharacterMap.java @@ -709,8 +709,8 @@ public class KeyCharacterMap implements Parcelable { } /** - * Queries the framework about whether any physical keys exist on the - * any keyboard attached to the device that are capable of producing the given key code. + * Queries the framework about whether any physical keys exist on any currently attached input + * devices that are capable of producing the given key code. * * @param keyCode The key code to query. * @return True if at least one attached keyboard supports the specified key code. @@ -720,9 +720,8 @@ public class KeyCharacterMap implements Parcelable { } /** - * Queries the framework about whether any physical keys exist on the - * any keyboard attached to the device that are capable of producing the given - * array of key codes. + * Queries the framework about whether any physical keys exist on any currently attached input + * devices that are capable of producing the given array of key codes. * * @param keyCodes The array of key codes to query. * @return A new array of the same size as the key codes array whose elements