Home
last modified time | relevance | path

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

/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/hardware/input/
DInputManager.java805 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
806 return deviceHasKeys(-1, keyCodes); in deviceHasKeys()
822 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument
823 boolean[] ret = new boolean[keyCodes.length]; in deviceHasKeys()
825 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
DIInputManager.aidl38 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
/frameworks/native/services/inputflinger/
DEventHub.h240 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
307 const int32_t* keyCodes, uint8_t* outFlags) const;
DInputReader.h367 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
470 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags);
564 const int32_t* keyCodes, uint8_t* outFlags);
618 const int32_t* keyCodes, uint8_t* outFlags);
1033 const int32_t* keyCodes, uint8_t* outFlags);
1123 const int32_t* keyCodes, uint8_t* outFlags);
1280 const int32_t* keyCodes, uint8_t* outFlags);
DInputReader.cpp724 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in hasKeys() argument
728 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
732 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodesLocked() argument
740 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
749 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
1151 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
1157 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
1895 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
2353 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
2354 return getEventHub()->markSupportedKeyCodes(getDeviceId(), numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
[all …]
DEventHub.cpp414 const int32_t* keyCodes, uint8_t* outFlags) const { in markSupportedKeyCodes() argument
424 keyCodes[codeIndex], &scanCodes); in markSupportedKeyCodes()
/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/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1180 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument
1183 int32_t* codes = env->GetIntArrayElements(keyCodes, NULL); in nativeHasKeys()
1185 jsize numCodes = env->GetArrayLength(keyCodes); in nativeHasKeys()
1187 if (numCodes == env->GetArrayLength(keyCodes)) { in nativeHasKeys()
1199 env->ReleaseIntArrayElements(keyCodes, codes, 0); in nativeHasKeys()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp624 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
631 if (keyCodes[i] == device->keysByScanCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
637 if (keyCodes[i] == device->keysByUsageCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
908 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
912 if (keyCodes[i] == mSupportedKeyCodes[j]) { in markSupportedKeyCodes()
1141 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; in TEST_F() local
1144 ASSERT_FALSE(mReader->hasKeys(0, AINPUT_SOURCE_ANY, 4, keyCodes, flags)) in TEST_F()
1149 ASSERT_FALSE(mReader->hasKeys(1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F()
1154 …ASSERT_TRUE(mReader->hasKeys(1, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, 4, keyCodes, fla… in TEST_F()
1159 ASSERT_FALSE(mReader->hasKeys(-1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java203 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
479 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument
480 if (keyCodes == null) { in hasKeys()
483 if (keyExists == null || keyExists.length < keyCodes.length) { in hasKeys()
488 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboardView.java102 void onKey(int primaryCode, int[] keyCodes); in onKey() argument
1113 public void onKey(int primaryCode, int[] keyCodes) { in onLongPress()
1114 mKeyboardActionListener.onKey(primaryCode, keyCodes); in onLongPress()