| /frameworks/base/services/tests/servicestests/src/com/android/server/input/ |
| D | KeyRemapperTests.kt | 126 val toKeyCode = REMAPPABLE_KEYS[(i + 1) % REMAPPABLE_KEYS.size] in createKeyboard() constant 127 mKeyRemapper.remapKey(fromKeyCode, toKeyCode) in createKeyboard() 137 val toKeyCode = REMAPPABLE_KEYS[(i + 1) % REMAPPABLE_KEYS.size] in createKeyboard() constant 139 "Remapping should include mapping from $fromKeyCode to $toKeyCode", in createKeyboard() 140 toKeyCode, in createKeyboard()
|
| /frameworks/native/libs/input/ |
| D | KeyCharacterMap.cpp | 323 void KeyCharacterMap::addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyRemapping() argument 324 if (fromKeyCode == toKeyCode) { in addKeyRemapping() 331 mKeyRemapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyRemapping() 334 toKeyCode); in addKeyRemapping() 370 int32_t toKeyCode = fromKeyCode; in applyKeyRemapping() local 374 toKeyCode = it->second; in applyKeyRemapping() 377 ALOGD("applyKeyRemapping: keyCode=%d ~ replacement keyCode=%d.", fromKeyCode, toKeyCode); in applyKeyRemapping() 379 return toKeyCode; in applyKeyRemapping() 384 int32_t toKeyCode = fromKeyCode; in applyKeyBehavior() local 390 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 282 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 | 132 void addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode); 133 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const;
|
| D | InterfaceMocks.h | 68 MOCK_METHOD(void, addKeyRemapping, (int32_t deviceId, int fromKeyCode, int toKeyCode), (const));
|
| D | InputReader_test.cpp | 255 void addKeyCodeMapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyCodeMapping() argument 256 mKeyCodeMapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyCodeMapping()
|
| /frameworks/native/services/inputflinger/reader/include/ |
| D | InputDevice.h | 122 void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode); 298 inline void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() argument 299 mEventHub->addKeyRemapping(mId, fromKeyCode, toKeyCode); in addKeyRemapping()
|
| D | EventHub.h | 284 int32_t toKeyCode) const = 0; 489 int32_t toKeyCode) const override final;
|
| D | InputReader.h | 71 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override;
|
| /frameworks/native/services/inputflinger/tests/fuzzers/ |
| D | InputReaderFuzzer.cpp | 156 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() 157 reader->addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in addKeyRemapping()
|
| D | MapperHelpers.h | 178 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override {} in addKeyRemapping() argument
|
| /frameworks/native/services/inputflinger/reader/ |
| D | InputDevice.cpp | 647 void InputDevice::addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyRemapping() argument 648 for_each_subdevice([fromKeyCode, toKeyCode](auto& context) { in addKeyRemapping() 649 context.addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
|
| D | InputReader.cpp | 648 void InputReader::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() 653 device->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
|
| D | EventHub.cpp | 1091 void EventHub::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping() 1099 kcm->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
|
| /frameworks/native/include/input/ |
| D | KeyCharacterMap.h | 133 void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode);
|
| /frameworks/native/services/inputflinger/include/ |
| D | InputReaderBase.h | 317 int32_t toKeyCode) const = 0;
|
| /frameworks/base/services/core/jni/ |
| D | com_android_server_input_InputManagerService.cpp | 1748 jint fromKeyCode, jint toKeyCode) { in nativeAddKeyRemapping() argument 1750 im->getInputManager()->getReader().addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in nativeAddKeyRemapping()
|