/frameworks/base/tests/Input/src/com/android/server/input/ |
D | KeyRemapperTests.kt | 129 val toKeyCode = REMAPPABLE_KEYS[(i + 1) % REMAPPABLE_KEYS.size] in createKeyboard() constant 130 mKeyRemapper.remapKey(fromKeyCode, toKeyCode) in createKeyboard() 140 val toKeyCode = REMAPPABLE_KEYS[(i + 1) % REMAPPABLE_KEYS.size] in createKeyboard() constant 142 "Remapping should include mapping from $fromKeyCode to $toKeyCode", in createKeyboard() 143 toKeyCode, in createKeyboard()
|
/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 320 void KeyCharacterMap::addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyRemapping() argument 321 if (fromKeyCode == toKeyCode) { in addKeyRemapping() 328 mKeyRemapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyRemapping() 331 toKeyCode); in addKeyRemapping() 367 int32_t toKeyCode = fromKeyCode; in applyKeyRemapping() local 371 toKeyCode = it->second; in applyKeyRemapping() 374 ALOGD("applyKeyRemapping: keyCode=%d ~ replacement keyCode=%d.", fromKeyCode, toKeyCode); in applyKeyRemapping() 376 return toKeyCode; in applyKeyRemapping() 381 int32_t toKeyCode = fromKeyCode; in applyKeyBehavior() local 387 toKeyCode = behavior->replacementKeyCode; in applyKeyBehavior() [all …]
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | NativeInputManagerService.java | 51 void addKeyRemapping(int deviceId, int fromKeyCode, int toKeyCode); in addKeyRemapping() argument 309 public native void addKeyRemapping(int deviceId, int fromKeyCode, int toKeyCode); in addKeyRemapping() argument
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeEventHub.cpp | 153 void FakeEventHub::addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) { in addKeyCodeMapping() argument 154 getDevice(deviceId)->keyCodeMapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyCodeMapping() 157 void FakeEventHub::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() 159 device->keyRemapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyRemapping()
|
D | FakeEventHub.h | 133 void addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode); 134 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const;
|
D | InterfaceMocks.h | 99 MOCK_METHOD(void, addKeyRemapping, (int32_t deviceId, int fromKeyCode, int toKeyCode), (const));
|
D | InputReader_test.cpp | 275 void addKeyCodeMapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyCodeMapping() argument 276 mKeyCodeMapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyCodeMapping()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputDevice.h | 127 void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode); 331 inline void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() argument 332 mEventHub->addKeyRemapping(mId, fromKeyCode, toKeyCode); in addKeyRemapping()
|
D | InputReader.h | 68 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override;
|
D | EventHub.h | 291 int32_t toKeyCode) const = 0; 524 int32_t toKeyCode) const override final;
|
/frameworks/native/services/inputflinger/tests/fuzzers/ |
D | InputReaderFuzzer.cpp | 154 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() 155 reader->addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in addKeyRemapping()
|
D | MapperHelpers.h | 196 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override {} in addKeyRemapping() argument
|
/frameworks/native/services/inputflinger/reader/ |
D | InputDevice.cpp | 692 void InputDevice::addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyRemapping() argument 693 for_each_subdevice([fromKeyCode, toKeyCode](auto& context) { in addKeyRemapping() 694 context.addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
|
D | InputReader.cpp | 635 void InputReader::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() 640 device->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
|
D | EventHub.cpp | 1183 void EventHub::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() 1191 kcm->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 131 void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode);
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 331 int32_t toKeyCode) const = 0;
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1813 jint fromKeyCode, jint toKeyCode) { in nativeAddKeyRemapping() argument 1815 im->getInputManager()->getReader().addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in nativeAddKeyRemapping()
|