Home
last modified time | relevance | path

Searched refs:toKeyCode (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/input/
DKeyRemapperTests.kt126 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/
DKeyCharacterMap.cpp323 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/
DNativeInputManagerService.java51 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/
DFakeEventHub.cpp153 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()
DFakeEventHub.h132 void addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode);
133 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const;
DInterfaceMocks.h68 MOCK_METHOD(void, addKeyRemapping, (int32_t deviceId, int fromKeyCode, int toKeyCode), (const));
DInputReader_test.cpp255 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/
DInputDevice.h122 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()
DEventHub.h284 int32_t toKeyCode) const = 0;
489 int32_t toKeyCode) const override final;
DInputReader.h71 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override;
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp156 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping()
157 reader->addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in addKeyRemapping()
DMapperHelpers.h178 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override {} in addKeyRemapping() argument
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp647 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()
DInputReader.cpp648 void InputReader::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping()
653 device->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
DEventHub.cpp1091 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/
DKeyCharacterMap.h133 void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode);
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h317 int32_t toKeyCode) const = 0;
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1748 jint fromKeyCode, jint toKeyCode) { in nativeAddKeyRemapping() argument
1750 im->getInputManager()->getReader().addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in nativeAddKeyRemapping()