Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DKeyboard.cpp193 int32_t newMetaState; in setEphemeralMetaState() local
195 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
197 newMetaState = oldMetaState & in setEphemeralMetaState()
201 return normalizeMetaState(newMetaState); in setEphemeralMetaState()
205 int32_t newMetaState = oldMetaState; in normalizeMetaState() local
206 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()
207 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()
210 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()
211 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()
214 if (newMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in normalizeMetaState()
[all …]
DKeyCharacterMap.cpp446 int32_t newMetaState = metaState & ~behavior->metaState; in tryRemapKey() local
449 newMetaState &= ~(AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON); in tryRemapKey()
452 newMetaState &= ~AMETA_ALT_ON; in tryRemapKey()
455 newMetaState &= ~(AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON); in tryRemapKey()
458 newMetaState &= ~AMETA_CTRL_ON; in tryRemapKey()
461 newMetaState &= ~(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON); in tryRemapKey()
464 newMetaState &= ~AMETA_SHIFT_ON; in tryRemapKey()
467 *outMetaState = normalizeMetaState(newMetaState); in tryRemapKey()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp402 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local
403 int32_t metaStateChanged = oldMetaState ^ newMetaState; in updateMetaStateIfNeeded()
405 mMetaState = newMetaState; in updateMetaStateIfNeeded()
409 getContext()->updateLedMetaState(newMetaState & allLedMetaState); in updateMetaStateIfNeeded()