Home
last modified time | relevance | path

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

/frameworks/base/tests/Input/src/com/android/server/input/
DKeyRemapperTests.kt117 val fromKeyCode = REMAPPABLE_KEYS[i] in createKeyboard() constant
119 mKeyRemapper.remapKey(fromKeyCode, toKeyCode) in createKeyboard()
128 val fromKeyCode = REMAPPABLE_KEYS[i] in createKeyboard() constant
131 "Remapping should include mapping from $fromKeyCode to $toKeyCode", in createKeyboard()
133 remapping.getOrDefault(fromKeyCode, -1), in createKeyboard()
/frameworks/native/libs/input/
DKeyCharacterMap.cpp355 int32_t KeyCharacterMap::applyKeyRemapping(int32_t fromKeyCode) const { in applyKeyRemapping()
356 int32_t toKeyCode = fromKeyCode; in applyKeyRemapping()
358 const auto it = mKeyRemapping.find(fromKeyCode); in applyKeyRemapping()
363 ALOGD("applyKeyRemapping: keyCode=%d ~ replacement keyCode=%d.", fromKeyCode, toKeyCode); in applyKeyRemapping()
379 std::pair<int32_t, int32_t> KeyCharacterMap::applyKeyBehavior(int32_t fromKeyCode, in applyKeyBehavior() argument
381 int32_t toKeyCode = fromKeyCode; in applyKeyBehavior()
384 const Behavior* behavior = getKeyBehavior(fromKeyCode, fromMetaState); in applyKeyBehavior()
416 fromKeyCode, fromMetaState, toKeyCode, toMetaState); in applyKeyBehavior()
/frameworks/native/include/input/
DKeyCharacterMap.h138 int32_t applyKeyRemapping(int32_t fromKeyCode) const;
/frameworks/native/services/inputflinger/tests/
DFakeEventHub.cpp150 void FakeEventHub::addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) { in addKeyCodeMapping() argument
151 getDevice(deviceId)->keyCodeMapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyCodeMapping()
DFakeEventHub.h133 void addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode);
DInputReader_test.cpp274 void addKeyCodeMapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyCodeMapping() argument
275 mKeyCodeMapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyCodeMapping()