Searched refs:fromKeyCode (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | KeyRemapperTests.kt | 117 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/ |
D | KeyCharacterMap.cpp | 355 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/ |
D | KeyCharacterMap.h | 138 int32_t applyKeyRemapping(int32_t fromKeyCode) const;
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeEventHub.cpp | 150 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()
|
D | FakeEventHub.h | 133 void addKeyCodeMapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode);
|
D | InputReader_test.cpp | 274 void addKeyCodeMapping(int32_t fromKeyCode, int32_t toKeyCode) { in addKeyCodeMapping() argument 275 mKeyCodeMapping.insert_or_assign(fromKeyCode, toKeyCode); in addKeyCodeMapping()
|