Home
last modified time | relevance | path

Searched refs:keyCodes (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/java/android/hardware/input/
DInputManager.java621 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
622 return deviceHasKeys(-1, keyCodes); in deviceHasKeys()
638 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument
639 boolean[] ret = new boolean[keyCodes.length]; in deviceHasKeys()
641 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
DIInputManager.aidl34 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
/frameworks/base/core/java/com/android/internal/widget/
DPasswordEntryKeyboardHelper.java203 public void onKey(int primaryCode, int[] keyCodes) { in onKey() argument
214 handleCharacter(primaryCode, keyCodes); in onKey()
293 private void handleCharacter(int primaryCode, int[] keyCodes) { in handleCharacter() argument
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java710 public static boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
711 return InputManager.getInstance().deviceHasKeys(keyCodes); in deviceHasKeys()
/frameworks/native/services/inputflinger/
DEventHub.h230 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
296 const int32_t* keyCodes, uint8_t* outFlags) const;
DInputReader.h361 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
434 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags);
522 const int32_t* keyCodes, uint8_t* outFlags);
572 const int32_t* keyCodes, uint8_t* outFlags);
972 const int32_t* keyCodes, uint8_t* outFlags);
1057 const int32_t* keyCodes, uint8_t* outFlags);
1191 const int32_t* keyCodes, uint8_t* outFlags);
DInputReader.cpp642 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in hasKeys() argument
646 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
650 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodesLocked() argument
658 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
667 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
1052 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
1058 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
1778 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
2217 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
2218 return getEventHub()->markSupportedKeyCodes(getDeviceId(), numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
[all …]
DEventHub.cpp407 const int32_t* keyCodes, uint8_t* outFlags) const { in markSupportedKeyCodes() argument
417 keyCodes[codeIndex], &scanCodes); in markSupportedKeyCodes()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java172 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
430 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument
431 if (keyCodes == null) { in hasKeys()
434 if (keyExists == null || keyExists.length < keyCodes.length) { in hasKeys()
439 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1080 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument
1083 int32_t* codes = env->GetIntArrayElements(keyCodes, NULL); in nativeHasKeys()
1085 jsize numCodes = env->GetArrayLength(keyCodes); in nativeHasKeys()
1087 if (numCodes == env->GetArrayLength(keyCodes)) { in nativeHasKeys()
1099 env->ReleaseIntArrayElements(keyCodes, codes, 0); in nativeHasKeys()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp622 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
629 if (keyCodes[i] == device->keysByScanCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
635 if (keyCodes[i] == device->keysByUsageCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
900 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
904 if (keyCodes[i] == mSupportedKeyCodes[j]) { in markSupportedKeyCodes()
1133 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; in TEST_F() local
1136 ASSERT_FALSE(mReader->hasKeys(0, AINPUT_SOURCE_ANY, 4, keyCodes, flags)) in TEST_F()
1141 ASSERT_FALSE(mReader->hasKeys(1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F()
1146 …ASSERT_TRUE(mReader->hasKeys(1, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, 4, keyCodes, fla… in TEST_F()
1151 ASSERT_FALSE(mReader->hasKeys(-1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java101 void onKey(int primaryCode, int[] keyCodes); in onKey() argument
1102 public void onKey(int primaryCode, int[] keyCodes) { in onLongPress()
1103 mKeyboardActionListener.onKey(primaryCode, keyCodes); in onLongPress()