Home
last modified time | relevance | path

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

/frameworks/base/tests/Input/src/com/android/server/input/
DKeyRemapperTests.kt129 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/
DKeyCharacterMap.cpp320 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/
DNativeInputManagerService.java51 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/
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.h133 void addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode);
134 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const;
DInterfaceMocks.h99 MOCK_METHOD(void, addKeyRemapping, (int32_t deviceId, int fromKeyCode, int toKeyCode), (const));
DInputReader_test.cpp275 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/
DInputDevice.h127 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()
DInputReader.h68 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override;
DEventHub.h291 int32_t toKeyCode) const = 0;
524 int32_t toKeyCode) const override final;
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp154 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping()
155 reader->addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in addKeyRemapping()
DMapperHelpers.h196 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override {} in addKeyRemapping() argument
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp692 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()
DInputReader.cpp635 void InputReader::addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const { in addKeyRemapping()
640 device->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
DEventHub.cpp1183 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/
DKeyCharacterMap.h131 void addKeyRemapping(int32_t fromKeyCode, int32_t toKeyCode);
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h331 int32_t toKeyCode) const = 0;
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp1813 jint fromKeyCode, jint toKeyCode) { in nativeAddKeyRemapping() argument
1815 im->getInputManager()->getReader().addKeyRemapping(deviceId, fromKeyCode, toKeyCode); in nativeAddKeyRemapping()