Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/input/
DInputManager.java841 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()
DIInputManager.aidl43 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/
DInteraction.java80 public static Interaction newKeyInput(int[] keyCodes) { in newKeyInput() argument
81 return new Interaction(keyCodes); in newKeyInput()
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h72 const int32_t* keyCodes, uint8_t* outFlags);
172 const int32_t* keyCodes, uint8_t* outFlags);
DInputDevice.h79 bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes,
DEventHub.h219 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/
DInputReader.cpp523 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()
DInputDevice.cpp269 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
273 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
DEventHub.cpp496 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/
DKeyboardInputMapper.h39 const int32_t* keyCodes, uint8_t* outFlags);
DInputMapper.h65 const int32_t* keyCodes, uint8_t* outFlags);
DInputMapper.cpp55 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
DKeyboardInputMapper.cpp356 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
357 return getEventHub()->markSupportedKeyCodes(getDeviceId(), numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
DTouchInputMapper.h210 const int32_t* keyCodes, uint8_t* outFlags);
DTouchInputMapper.cpp3904 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
3907 if (virtualKey.keyCode == keyCodes[i]) { in markSupportedKeyCodes()
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java714 public static boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
715 return InputManager.getInstance().deviceHasKeys(keyCodes); in deviceHasKeys()
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h92 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1352 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/
DInputManagerService.java209 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/
DInputReader_test.cpp691 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/
DKeyboardView.java107 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()