Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/input/
DKeyRemapperTests.kt125 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/
DKeyCharacterMap.cpp323 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/
DKeyCharacterMap.h133 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/
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() argument
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.h283 virtual void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
488 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
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() argument
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() argument
653 device->addKeyRemapping(fromKeyCode, toKeyCode); in addKeyRemapping()
DEventHub.cpp1091 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/
DInputReaderBase.h316 virtual void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
/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()