/frameworks/native/services/inputflinger/tests/ |
D | KeyboardInputMapper_test.cpp | 72 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()
|
D | InputMapperTest.cpp | 75 void InputMapperUnitTest::setKeyCodeState(KeyState state, std::set<int> keyCodes) { in setKeyCodeState() argument 76 for (const auto& keyCode : keyCodes) { in setKeyCodeState()
|
D | FakeEventHub.cpp | 444 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()
|
D | InputMapperTest.h | 50 void setKeyCodeState(KeyState state, std::set<int> keyCodes);
|
D | InterfaceMocks.h | 108 (int32_t deviceId, const std::vector<int32_t>& keyCodes, uint8_t* outFlags),
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | KeyboardInputFuzzer.cpp | 97 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()
|
D | MultiTouchInputFuzzer.cpp | 111 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()
|
D | InputReaderFuzzer.cpp | 80 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/ |
D | ShortcutKeyTestBase.java | 95 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/ |
D | InputShellCommand.java | 515 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()
|
D | KeyboardMetricsCollector.java | 366 @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()
|
D | NativeInputManagerService.java | 53 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/ |
D | Interaction.java | 80 public static Interaction newKeyInput(int[] keyCodes) { in newKeyInput() argument 81 return new Interaction(keyCodes); in newKeyInput()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | KeyboardInputMapper.cpp | 314 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()
|
D | KeyboardInputMapper.h | 43 bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
|
D | InputMapper.cpp | 69 bool InputMapper::markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in markSupportedKeyCodes() argument
|
D | InputMapper.h | 89 virtual bool markSupportedKeyCodes(uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputManager.java | 888 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()
|
D | InputManagerGlobal.java | 1175 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()
|
D | IInputManager.aidl | 60 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 621 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()
|
D | InputDevice.cpp | 528 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/ |
D | InputDevice.h | 99 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()
|
D | InputReader.h | 77 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/ |
D | KeyCharacterMap.java | 737 public static boolean[] deviceHasKeys(int[] keyCodes) { in deviceHasKeys() argument 738 return InputManagerGlobal.getInstance().deviceHasKeys(keyCodes); in deviceHasKeys()
|