Home
last modified time | relevance | path

Searched refs:keyCodes (Results 1 – 22 of 22) 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.java846 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
847 return deviceHasKeys(-1, keyCodes); in deviceHasKeys()
863 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument
864 boolean[] ret = new boolean[keyCodes.length]; in deviceHasKeys()
866 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
DIInputManager.aidl44 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h76 const int32_t* keyCodes, uint8_t* outFlags) override;
191 const int32_t* keyCodes, uint8_t* outFlags);
DInputDevice.h82 bool markSupportedKeyCodes(uint32_t sourceMask, size_t numCodes, const int32_t* keyCodes,
247 inline bool markSupportedKeyCodes(size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
249 return mEventHub->markSupportedKeyCodes(mId, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
DEventHub.h218 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
293 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes,
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp521 const int32_t* keyCodes, uint8_t* outFlags) { in hasKeys() argument
525 return markSupportedKeyCodesLocked(deviceId, sourceMask, numCodes, keyCodes, outFlags); in hasKeys()
529 size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodesLocked() argument
535 result = device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
541 result |= device->markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodesLocked()
DInputDevice.cpp417 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
419 for_each_mapper([&result, sourceMask, numCodes, keyCodes, outFlags](InputMapper& mapper) { in markSupportedKeyCodes()
421 result |= mapper.markSupportedKeyCodes(sourceMask, numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
DEventHub.cpp518 bool EventHub::markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
528 status_t err = device->keyMap.keyLayoutMap->findScanCodesForKey(keyCodes[codeIndex], in markSupportedKeyCodes()
/frameworks/native/services/inputflinger/reader/mapper/
DInputMapper.h64 const int32_t* keyCodes, uint8_t* outFlags);
DInputMapper.cpp55 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
DKeyboardInputMapper.h40 const int32_t* keyCodes, uint8_t* outFlags) override;
DKeyboardInputMapper.cpp376 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
377 return getDeviceContext().markSupportedKeyCodes(numCodes, keyCodes, outFlags); in markSupportedKeyCodes()
DTouchInputMapper.h149 const int32_t* keyCodes, uint8_t* outFlags) override;
DTouchInputMapper.cpp3896 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
3899 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.h99 size_t numCodes, const int32_t* keyCodes, uint8_t* outFlags) = 0;
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1315 jlong ptr, jint deviceId, jint sourceMask, jintArray keyCodes, jbooleanArray outFlags) { in nativeHasKeys() argument
1318 int32_t* codes = env->GetIntArrayElements(keyCodes, nullptr); in nativeHasKeys()
1320 jsize numCodes = env->GetArrayLength(keyCodes); in nativeHasKeys()
1322 if (numCodes == env->GetArrayLength(keyCodes)) { in nativeHasKeys()
1334 env->ReleaseIntArrayElements(keyCodes, codes, 0); in nativeHasKeys()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java210 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
487 public boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists) { in hasKeys() argument
488 if (keyCodes == null) { in hasKeys()
491 if (keyExists == null || keyExists.length < keyCodes.length) { in hasKeys()
496 return nativeHasKeys(mPtr, deviceId, sourceMask, keyCodes, keyExists); in hasKeys()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp747 virtual bool markSupportedKeyCodes(int32_t deviceId, size_t numCodes, const int32_t* keyCodes, in markSupportedKeyCodes() argument
754 if (keyCodes[i] == device->keysByScanCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
760 if (keyCodes[i] == device->keysByUsageCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
1100 const int32_t* keyCodes, uint8_t* outFlags) { in markSupportedKeyCodes() argument
1104 if (keyCodes[i] == mSupportedKeyCodes[j]) { in markSupportedKeyCodes()
1583 const int32_t keyCodes[4] = { AKEYCODE_A, AKEYCODE_B, AKEYCODE_1, AKEYCODE_2 }; in TEST_F() local
1586 ASSERT_FALSE(mReader->hasKeys(0, AINPUT_SOURCE_ANY, 4, keyCodes, flags)) in TEST_F()
1591 ASSERT_FALSE(mReader->hasKeys(deviceId, AINPUT_SOURCE_TRACKBALL, 4, keyCodes, flags)) in TEST_F()
1598 keyCodes, flags)) in TEST_F()
1604 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()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...