Simplify javadocs of KeyCharacterMap#hasKeys() and InputManager#hasKeys()

Test: only javadocs changed
Bug: -
Change-Id: I47f244790e490b049a9286586c237a3af09f804e
This commit is contained in:
Philip Junker
2021-11-25 11:39:19 +01:00
parent ae23cf10e1
commit ea142b10f1
2 changed files with 9 additions and 12 deletions

View File

@@ -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

View File

@@ -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