Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/tests/
DKeyboardInputMapper_test.cpp72 void testPointerVisibilityForKeys(const std::vector<int32_t>& keyCodes, bool expectVisible) { in testPointerVisibilityForKeys() argument
74 .Times(expectVisible ? 0 : keyCodes.size()); in testPointerVisibilityForKeys()
75 for (int32_t keyCode : keyCodes) { in testPointerVisibilityForKeys()
83 void testTouchpadTapStateForKeys(const std::vector<int32_t>& keyCodes, in testTouchpadTapStateForKeys() argument
85 EXPECT_CALL(mMockInputReaderContext, isPreventingTouchpadTaps).Times(keyCodes.size()); in testTouchpadTapStateForKeys()
88 .Times(keyCodes.size()); in testTouchpadTapStateForKeys()
90 for (int32_t keyCode : keyCodes) { in testTouchpadTapStateForKeys()
DInputMapperTest.cpp75 void InputMapperUnitTest::setKeyCodeState(KeyState state, std::set<int> keyCodes) { in setKeyCodeState() argument
76 for (const auto& keyCode : keyCodes) { in setKeyCodeState()
DFakeEventHub.cpp444 bool FakeEventHub::markSupportedKeyCodes(int32_t deviceId, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
450 for (size_t i = 0; i < keyCodes.size(); i++) { in markSupportedKeyCodes()
452 if (keyCodes[i] == device->keysByScanCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
457 if (keyCodes[i] == device->keysByUsageCode.valueAt(j).keyCode) { in markSupportedKeyCodes()
DInputMapperTest.h50 void setKeyCodeState(KeyState state, std::set<int> keyCodes);
DInterfaceMocks.h108 (int32_t deviceId, const std::vector<int32_t>& keyCodes, uint8_t* outFlags),
/frameworks/native/services/inputflinger/tests/fuzzers/
DKeyboardInputFuzzer.cpp97 std::vector<int32_t> keyCodes; in LLVMFuzzerTestOneInput() local
100 keyCodes.push_back(fdp->ConsumeIntegral<int32_t>()); in LLVMFuzzerTestOneInput()
102 mapper.markSupportedKeyCodes(fdp->ConsumeIntegral<uint32_t>(), keyCodes, in LLVMFuzzerTestOneInput()
DMultiTouchInputFuzzer.cpp111 std::vector<int32_t> keyCodes; in LLVMFuzzerTestOneInput() local
114 keyCodes.push_back(fdp->ConsumeIntegral<int32_t>()); in LLVMFuzzerTestOneInput()
116 mapper.markSupportedKeyCodes(fdp->ConsumeIntegral<uint32_t>(), keyCodes, in LLVMFuzzerTestOneInput()
DInputReaderFuzzer.cpp80 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in hasKeys() argument
82 return reader->hasKeys(deviceId, sourceMask, keyCodes, outFlags); in hasKeys()
227 std::vector<int32_t> keyCodes; in LLVMFuzzerTestOneInput() local
229 keyCodes.push_back(fdp->ConsumeIntegral<int32_t>()); in LLVMFuzzerTestOneInput()
232 fdp->ConsumeIntegral<uint32_t>(), keyCodes, outFlags.data()); in LLVMFuzzerTestOneInput()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DShortcutKeyTestBase.java95 void sendKeyCombination(int[] keyCodes, long duration) { in sendKeyCombination() argument
97 final int count = keyCodes.length; in sendKeyCombination()
101 final int keyCode = keyCodes[i]; in sendKeyCombination()
123 final int keyCode = keyCodes[i]; in sendKeyCombination()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java515 IntArray keyCodes = new IntArray(); in runKeyCombination() local
521 keyCodes.add(keyCode); in runKeyCombination()
526 if (keyCodes.size() < 2) { in runKeyCombination()
530 sendKeyCombination(inputSource, keyCodes, displayId, duration); in runKeyCombination()
538 private void sendKeyCombination(int inputSource, IntArray keyCodes, int displayId, in sendKeyCombination() argument
541 final int count = keyCodes.size(); in sendKeyCombination()
545 final int keyCode = keyCodes.get(i); in sendKeyCombination()
DKeyboardMetricsCollector.java366 @Nullable KeyboardLogEvent keyboardSystemEvent, int modifierState, int... keyCodes) { in logKeyboardSystemsEventReportedAtom() argument
375 Slog.w(TAG, "Invalid keyboard event logging, keycode = " + Arrays.toString(keyCodes) in logKeyboardSystemsEventReportedAtom()
380 vendorId, productId, keyboardSystemEvent.getIntValue(), keyCodes, modifierState); in logKeyboardSystemsEventReportedAtom()
DNativeInputManagerService.java53 boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in hasKeys() argument
285 public native boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, 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/mapper/
DKeyboardInputMapper.cpp314 const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
316 return getDeviceContext().markSupportedKeyCodes(keyCodes, outFlags); in markSupportedKeyCodes()
368 const std::vector<int32_t> keyCodes{AKEYCODE_CAPS_LOCK, AKEYCODE_NUM_LOCK, in updateLedState() local
373 bool hasKeyLayout = getDeviceContext().markSupportedKeyCodes(keyCodes, flags.data()); in updateLedState()
DKeyboardInputMapper.h43 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
DInputMapper.cpp69 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
DInputMapper.h89 virtual bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
/frameworks/base/core/java/android/hardware/input/
DInputManager.java888 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
889 return deviceHasKeys(-1, keyCodes); in deviceHasKeys()
904 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument
905 return mGlobal.deviceHasKeys(id, keyCodes); in deviceHasKeys()
DInputManagerGlobal.java1175 public boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
1176 return deviceHasKeys(-1, keyCodes); in deviceHasKeys()
1182 public boolean[] deviceHasKeys(int id, int[] keyCodes) { in deviceHasKeys() argument
1183 boolean[] ret = new boolean[keyCodes.length]; in deviceHasKeys()
1185 mIm.hasKeys(id, InputDevice.SOURCE_ANY, keyCodes, ret); in deviceHasKeys()
DIInputManager.aidl60 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp621 const std::vector<int32_t>& keyCodes, uint8_t* outFlags) { in hasKeys() argument
624 memset(outFlags, 0, keyCodes.size()); in hasKeys()
625 return markSupportedKeyCodesLocked(deviceId, sourceMask, keyCodes, outFlags); in hasKeys()
629 const std::vector<int32_t>& keyCodes, in markSupportedKeyCodesLocked() argument
635 result = device->markSupportedKeyCodes(sourceMask, keyCodes, outFlags); in markSupportedKeyCodesLocked()
641 result |= device->markSupportedKeyCodes(sourceMask, keyCodes, outFlags); in markSupportedKeyCodesLocked()
DInputDevice.cpp528 bool InputDevice::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
531 for_each_mapper([&result, sourceMask, keyCodes, outFlags](InputMapper& mapper) { in markSupportedKeyCodes()
533 result |= mapper.markSupportedKeyCodes(sourceMask, keyCodes, outFlags); in markSupportedKeyCodes()
/frameworks/native/services/inputflinger/reader/include/
DInputDevice.h99 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
352 inline bool markSupportedKeyCodes(const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
354 return mEventHub->markSupportedKeyCodes(mId, keyCodes, outFlags); in markSupportedKeyCodes()
DInputReader.h77 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
259 const std::vector<int32_t>& keyCodes, uint8_t* outFlags)
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java737 public static boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument
738 return InputManagerGlobal.getInstance().deviceHasKeys(keyCodes); in deviceHasKeys()

12