Searched refs:keyCodes (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
H A DPasswordEntryKeyboardHelper.java135 public void onKey(int primaryCode, int[] keyCodes) { argument
146 handleCharacter(primaryCode, keyCodes);
224 private void handleCharacter(int primaryCode, int[] keyCodes) { argument
/frameworks/base/include/ui/
H A DEventHub.h187 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
217 const int32_t* keyCodes, uint8_t* outFlags) const;
258 const int32_t* keyCodes, uint8_t* outFlags) const;
H A DInputReader.h171 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
229 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags);
287 const int32_t* keyCodes, uint8_t* outFlags);
328 const int32_t* keyCodes, uint8_t* outFlags);
380 const int32_t* keyCodes, uint8_t* outFlags);
420 const int32_t* keyCodes, uint8_t* outFlags);
522 const int32_t* keyCodes, uint8_t* outFlags);
/frameworks/base/services/java/com/android/server/
H A DInputManager.java70 int[] keyCodes, boolean[] keyExists);
204 * @param keyCodes The array of key codes to check.
205 * @param keyExists An array at least as large as keyCodes whose entries will be set
210 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { argument
211 if (keyCodes == null) {
212 throw new IllegalArgumentException("keyCodes must not be null.");
214 if (keyExists == null || keyExists.length < keyCodes.length) {
216 + "least as large as keyCodes.");
219 return nativeHasKeys(deviceId, sourceMask, keyCodes, keyExists);
69 nativeHasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) argument
/frameworks/base/core/java/android/view/
H A DKeyCharacterMap.java374 public static boolean[] deviceHasKeys(int[] keyCodes) { argument
375 boolean[] ret = new boolean[keyCodes.length];
378 wm.hasKeys(keyCodes, ret);
/frameworks/base/libs/ui/tests/
H A DInputReader_test.cpp567 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, argument
574 if (keyCodes[i] == device->keys.valueAt(j).keyCode) {
762 const int32_t* keyCodes, uint8_t* outFlags) {
766 if (keyCodes[i] == mSupportedKeyCodes[j]) {
1051 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; local
1054 ASSERT_FALSE(mReader->hasKeys(0, AINPUT_SOURCE_ANY, 4, keyCodes, flags))
1059 ASSERT_FALSE(mReader->hasKeys(1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags))
1064 ASSERT_TRUE(mReader->hasKeys(1, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags))
1069 ASSERT_FALSE(mReader->hasKeys(-1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags))
1074 ASSERT_TRUE(mReader->hasKeys(-1, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flag
761 markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) argument
1174 const int32_t keyCodes[2] = { AKEYCODE_A, AKEYCODE_B }; local
1246 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; local
1698 const int32_t keyCodes[2] = { AKEYCODE_A, AKEYCODE_B }; local
[all...]
/frameworks/base/libs/ui/
H A DEventHub.cpp256 const int32_t* keyCodes, uint8_t* outFlags) const {
261 return markSupportedKeyCodesLocked(device, numCodes, keyCodes, outFlags);
267 const int32_t* keyCodes, uint8_t* outFlags) const {
276 status_t err = device->layoutMap->findScancodes(keyCodes[codeIndex], &scanCodes);
255 markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) const argument
266 markSupportedKeyCodesLocked(device_t* device, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) const argument
H A DInputReader.cpp562 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) {
564 return markSupportedKeyCodes(deviceId, sourceMask, numCodes, keyCodes, outFlags);
568 const int32_t* keyCodes, uint8_t* outFlags) {
578 numCodes, keyCodes, outFlags);
587 numCodes, keyCodes, outFlags);
750 const int32_t* keyCodes, uint8_t* outFlags) {
756 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags);
808 const int32_t* keyCodes, uint8_t* outFlags) {
1024 const int32_t* keyCodes, uint8_t* outFlags) {
1025 return getEventHub()->markSupportedKeyCodes(getDeviceId(), numCodes, keyCodes, outFlag
561 hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) argument
567 markSupportedKeyCodes(int32_t deviceId, uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) argument
749 markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) argument
807 markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) argument
1023 markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) argument
3160 markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) argument
[all...]
/frameworks/base/services/jni/
H A Dcom_android_server_InputManager.cpp1062 jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) {
1067 int32_t* codes = env->GetIntArrayElements(keyCodes, NULL);
1069 jsize numCodes = env->GetArrayLength(keyCodes);
1071 if (numCodes == env->GetArrayLength(keyCodes)) {
1079 env->ReleaseIntArrayElements(keyCodes, codes, 0);
1061 android_server_InputManager_nativeHasKeys(JNIEnv* env, jclass clazz, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) argument
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboardView.java90 * @param keyCodes the codes for all the possible alternative keys
97 void onKey(int primaryCode, int[] keyCodes); argument
1020 public void onKey(int primaryCode, int[] keyCodes) {
1021 mKeyboardActionListener.onKey(primaryCode, keyCodes);

Completed in 144 milliseconds