Home
last modified time | relevance | path

Searched refs:newMetaState (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/libs/input/
DKeyboard.cpp180 int32_t newMetaState; in setEphemeralMetaState() local
182 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
184 newMetaState = oldMetaState & in setEphemeralMetaState()
188 return normalizeMetaState(newMetaState); in setEphemeralMetaState()
192 int32_t newMetaState = oldMetaState; in normalizeMetaState() local
193 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()
194 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()
197 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()
198 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()
201 if (newMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in normalizeMetaState()
[all …]
DKeyCharacterMap.cpp402 int32_t newMetaState = metaState & ~behavior->metaState; in tryRemapKey() local
405 newMetaState &= ~(AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON); in tryRemapKey()
408 newMetaState &= ~AMETA_ALT_ON; in tryRemapKey()
411 newMetaState &= ~(AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON); in tryRemapKey()
414 newMetaState &= ~AMETA_CTRL_ON; in tryRemapKey()
417 newMetaState &= ~(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON); in tryRemapKey()
420 newMetaState &= ~AMETA_SHIFT_ON; in tryRemapKey()
423 *outMetaState = normalizeMetaState(newMetaState); in tryRemapKey()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp393 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local
394 int32_t metaStateChanged = oldMetaState ^ newMetaState; in updateMetaStateIfNeeded()
396 mMetaState = newMetaState; in updateMetaStateIfNeeded()
400 getContext()->updateLedMetaState(newMetaState & allLedMetaState); in updateMetaStateIfNeeded()