/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 841 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument 842 return deviceHasKeys(-1, keyCodes); in deviceHasKeys() 858 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument 859 boolean[] ret = new boolean[keyCodes.length]; in deviceHasKeys() 861 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
|
D | IInputManager.aidl | 43 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 80 public static Interaction newKeyInput(int[] keyCodes) { in newKeyInput() argument 81 return new Interaction(keyCodes); in newKeyInput()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReader.h | 72 const int32_t* keyCodes, uint8_t* outFlags); 172 const int32_t* keyCodes, uint8_t* outFlags);
|
D | InputDevice.h | 79 bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes,
|
D | EventHub.h | 219 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, 292 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 523 const int32_t* keyCodes, uint8_t* outFlags) { in hasKeys() argument 527 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys() 531 size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodesLocked() argument 539 result = device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked() 547 result |= device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
|
D | InputDevice.cpp | 269 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 273 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
|
D | EventHub.cpp | 496 bool EventHub::markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument 506 status_t err = device->keyMap.keyLayoutMap->findScanCodesForKey(keyCodes[codeIndex], in markSupportedKeyCodes()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | KeyboardInputMapper.h | 39 const int32_t* keyCodes, uint8_t* outFlags);
|
D | InputMapper.h | 65 const int32_t* keyCodes, uint8_t* outFlags);
|
D | InputMapper.cpp | 55 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
|
D | KeyboardInputMapper.cpp | 356 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 357 return getEventHub()->markSupportedKeyCodes(getDeviceId(), numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
|
D | TouchInputMapper.h | 210 const int32_t* keyCodes, uint8_t* outFlags);
|
D | TouchInputMapper.cpp | 3904 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 3907 if (virtualKey.keyCode == keyCodes[i]) { in markSupportedKeyCodes()
|
/frameworks/base/core/java/android/view/ |
D | KeyCharacterMap.java | 714 public static boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument 715 return InputManager.getInstance().deviceHasKeys(keyCodes); in deviceHasKeys()
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 92 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1352 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument 1355 int32_t* codes = env->GetIntArrayElements(keyCodes, nullptr); in nativeHasKeys() 1357 jsize numCodes = env->GetArrayLength(keyCodes); in nativeHasKeys() 1359 if (numCodes == env->GetArrayLength(keyCodes)) { in nativeHasKeys() 1371 env->ReleaseIntArrayElements(keyCodes, codes, 0); in nativeHasKeys()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 209 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument 484 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument 485 if (keyCodes == null) { in hasKeys() 488 if (keyExists == null || keyExists.length < keyCodes.length) { in hasKeys() 493 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 691 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument 698 if (keyCodes[i] == device->keysByScanCode.valueAt(j).keyCode) { in markSupportedKeyCodes() 704 if (keyCodes[i] == device->keysByUsageCode.valueAt(j).keyCode) { in markSupportedKeyCodes() 991 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument 995 if (keyCodes[i] == mSupportedKeyCodes[j]) { in markSupportedKeyCodes() 1473 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; in TEST_F() local 1476 ASSERT_FALSE(mReader->hasKeys(0, AINPUT_SOURCE_ANY, 4, keyCodes, flags)) in TEST_F() 1481 ASSERT_FALSE(mReader->hasKeys(1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F() 1486 …ASSERT_TRUE(mReader->hasKeys(1, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, 4, keyCodes, fla… in TEST_F() 1491 ASSERT_FALSE(mReader->hasKeys(-1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F() [all …]
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | KeyboardView.java | 107 void onKey(int primaryCode, int[] keyCodes); in onKey() argument 1107 public void onKey(int primaryCode, int[] keyCodes) { in onLongPress() 1108 mKeyboardActionListener.onKey(primaryCode, keyCodes); in onLongPress()
|