/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 581 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument 582 return deviceHasKeys(-1, keyCodes); in deviceHasKeys() 598 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument 599 boolean[] ret = new boolean[keyCodes.length]; in deviceHasKeys() 601 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
|
D | IInputManager.aidl | 32 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 | 205 public void onKey(int primaryCode, int[] keyCodes) { in onKey() argument 216 handleCharacter(primaryCode, keyCodes); in onKey() 295 private void handleCharacter(int primaryCode, int[] keyCodes) { in handleCharacter() argument
|
/frameworks/base/services/input/ |
D | EventHub.h | 230 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, 294 const int32_t* keyCodes, uint8_t* outFlags) const;
|
D | InputReader.h | 329 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0; 402 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags); 490 const int32_t* keyCodes, uint8_t* outFlags); 539 const int32_t* keyCodes, uint8_t* outFlags); 939 const int32_t* keyCodes, uint8_t* outFlags); 1023 const int32_t* keyCodes, uint8_t* outFlags); 1156 const int32_t* keyCodes, uint8_t* outFlags);
|
D | InputReader.cpp | 631 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in hasKeys() argument 635 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys() 639 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodesLocked() argument 647 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked() 656 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked() 1041 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 1047 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes() 1767 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 2191 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 2192 return getEventHub()->markSupportedKeyCodes(getDeviceId(), numCodes, keyCodes, outFlags); in markSupportedKeyCodes() [all …]
|
D | EventHub.cpp | 422 const int32_t* keyCodes, uint8_t* outFlags) const { in markSupportedKeyCodes() argument 432 keyCodes[codeIndex], &scanCodes); in markSupportedKeyCodes()
|
/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/base/services/java/com/android/server/input/ |
D | InputManagerService.java | 165 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument 408 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument 409 if (keyCodes == null) { in hasKeys() 412 if (keyExists == null || keyExists.length < keyCodes.length) { in hasKeys() 417 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
|
/frameworks/base/services/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1051 jint ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument 1054 int32_t* codes = env->GetIntArrayElements(keyCodes, NULL); in nativeHasKeys() 1056 jsize numCodes = env->GetArrayLength(keyCodes); in nativeHasKeys() 1058 if (numCodes == env->GetArrayLength(keyCodes)) { in nativeHasKeys() 1066 env->ReleaseIntArrayElements(keyCodes, codes, 0); in nativeHasKeys()
|
/frameworks/base/services/input/tests/ |
D | InputReader_test.cpp | 612 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument 619 if (keyCodes[i] == device->keysByScanCode.valueAt(j).keyCode) { in markSupportedKeyCodes() 625 if (keyCodes[i] == device->keysByUsageCode.valueAt(j).keyCode) { in markSupportedKeyCodes() 890 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 894 if (keyCodes[i] == mSupportedKeyCodes[j]) { in markSupportedKeyCodes() 1123 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; in TEST_F() local 1126 ASSERT_FALSE(mReader->hasKeys(0, AINPUT_SOURCE_ANY, 4, keyCodes, flags)) in TEST_F() 1131 ASSERT_FALSE(mReader->hasKeys(1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F() 1136 …ASSERT_TRUE(mReader->hasKeys(1, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, 4, keyCodes, fla… in TEST_F() 1141 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 1099 public void onKey(int primaryCode, int[] keyCodes) { in onLongPress() 1100 mKeyboardActionListener.onKey(primaryCode, keyCodes); in onLongPress()
|