Lines Matching refs:fromKeyCode
323 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()
382 std::pair<int32_t, int32_t> KeyCharacterMap::applyKeyBehavior(int32_t fromKeyCode, in applyKeyBehavior() argument
384 int32_t toKeyCode = fromKeyCode; in applyKeyBehavior()
387 const Behavior* behavior = getKeyBehavior(fromKeyCode, fromMetaState); in applyKeyBehavior()
419 fromKeyCode, fromMetaState, toKeyCode, toMetaState); in applyKeyBehavior()