/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 621 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()
|
D | IInputManager.aidl | 34 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PasswordEntryKeyboardHelper.java | 203 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/ |
D | KeyCharacterMap.java | 710 public static boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument 711 return InputManager.getInstance().deviceHasKeys(keyCodes); in deviceHasKeys()
|
/frameworks/native/services/inputflinger/ |
D | EventHub.h | 230 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, 296 const int32_t* keyCodes, uint8_t* outFlags) const;
|
D | InputReader.h | 361 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);
|
D | InputReader.cpp | 642 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 …]
|
D | EventHub.cpp | 407 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/ |
D | InputManagerService.java | 172 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/ |
D | com_android_server_input_InputManagerService.cpp | 1080 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/ |
D | InputReader_test.cpp | 622 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/ |
D | KeyboardView.java | 101 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()
|