/frameworks/base/services/tests/servicestests/src/com/android/server/input/ |
D | KeyRemapperTests.kt | 125 val fromKeyCode = REMAPPABLE_KEYS[i] in createKeyboard() constant 127 mKeyRemapper.remapKey(fromKeyCode, toKeyCode) in createKeyboard() 136 val fromKeyCode = REMAPPABLE_KEYS[i] in createKeyboard() constant 139 "Remapping should include mapping from $fromKeyCode to $toKeyCode", in createKeyboard() 141 remapping.getOrDefault(fromKeyCode, -1) 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() 325 mKeyRemapping.erase(fromKeyCode); in addKeyRemapping() 327 ALOGD("addKeyRemapping: Cleared remapping forKeyCode=%d ~ Result Successful.", fromKeyCode); in addKeyRemapping() 331 mKeyRemapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyRemapping() 333 ALOGD("addKeyRemapping: fromKeyCode=%d, toKeyCode=%d ~ Result Successful.", fromKeyCode, in addKeyRemapping() 369 int32_t KeyCharacterMap::applyKeyRemapping(int32_t fromKeyCode) const { in applyKeyRemapping() 370 int32_t toKeyCode = fromKeyCode; in applyKeyRemapping() 372 const auto it = mKeyRemapping.find(fromKeyCode); in applyKeyRemapping() 377 ALOGD("applyKeyRemapping: keyCode=%d ~ replacement keyCode=%d.", fromKeyCode, toKeyCode); in applyKeyRemapping() [all …]
|
/frameworks/native/include/input/ |
D | KeyCharacterMap.h | 133 void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode); 140 int32_t applyKeyRemapping(int32_t fromKeyCode) const;
|
/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() argument 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 | 283 virtual void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, 488 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
|
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() argument 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() argument 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() argument 1099 kcm->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
|
/frameworks/native/services/inputflinger/include/ |
D | InputReaderBase.h | 316 virtual void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
|
/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()
|