Home
last modified time | relevance | path

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

/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/base/core/java/android/hardware/input/
DInputManager.java825 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
826 return deviceHasKeys(-1, keyCodes); in deviceHasKeys()
842 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument
843 boolean[] ret = new boolean[keyCodes.length]; in deviceHasKeys()
845 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/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/
DEventHub.h221 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
297 const int32_t* keyCodes, uint8_t* outFlags) const;
DInputReader.h141 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags);
240 const int32_t* keyCodes, uint8_t* outFlags);
287 const int32_t* keyCodes, uint8_t* outFlags);
771 const int32_t* keyCodes, uint8_t* outFlags);
863 const int32_t* keyCodes, uint8_t* outFlags);
1027 const int32_t* keyCodes, uint8_t* outFlags);
DInputReader.cpp732 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in hasKeys() argument
736 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
740 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodesLocked() argument
748 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
757 numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
1219 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
1223 result |= mapper->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
1963 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
2464 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
2465 return getEventHub()->markSupportedKeyCodes(getDeviceId(), numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
[all …]
DEventHub.cpp483 const int32_t* keyCodes, uint8_t* outFlags) const { in markSupportedKeyCodes() argument
493 keyCodes[codeIndex], &scanCodes); in markSupportedKeyCodes()
/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.cpp1371 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument
1374 int32_t* codes = env->GetIntArrayElements(keyCodes, nullptr); in nativeHasKeys()
1376 jsize numCodes = env->GetArrayLength(keyCodes); in nativeHasKeys()
1378 if (numCodes == env->GetArrayLength(keyCodes)) { in nativeHasKeys()
1390 env->ReleaseIntArrayElements(keyCodes, codes, 0); in nativeHasKeys()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java204 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
469 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument
470 if (keyCodes == null) { in hasKeys()
473 if (keyExists == null || keyExists.length < keyCodes.length) { in hasKeys()
478 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp679 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
686 if (keyCodes[i] == device->keysByScanCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
692 if (keyCodes[i] == device->keysByUsageCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
979 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
983 if (keyCodes[i] == mSupportedKeyCodes[j]) { in markSupportedKeyCodes()
1461 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; in TEST_F() local
1464 ASSERT_FALSE(mReader->hasKeys(0, AINPUT_SOURCE_ANY, 4, keyCodes, flags)) in TEST_F()
1469 ASSERT_FALSE(mReader->hasKeys(1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F()
1474 …ASSERT_TRUE(mReader->hasKeys(1, AINPUT_SOURCE_KEYBOARD | AINPUT_SOURCE_TRACKBALL, 4, keyCodes, fla… in TEST_F()
1479 ASSERT_FALSE(mReader->hasKeys(-1, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F()
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...