Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DKeyboard.cpp181 int32_t newMetaState; in setEphemeralMetaState() local
183 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
185 newMetaState = oldMetaState & in setEphemeralMetaState()
189 return normalizeMetaState(newMetaState); in setEphemeralMetaState()
193 int32_t newMetaState = oldMetaState; in normalizeMetaState() local
194 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()
195 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()
198 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()
199 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()
202 if (newMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in normalizeMetaState()
[all …]
DKeyCharacterMap.cpp372 int32_t newMetaState = metaState & ~behavior->metaState; in tryRemapKey() local
375 newMetaState &= ~(AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON); in tryRemapKey()
378 newMetaState &= ~AMETA_ALT_ON; in tryRemapKey()
381 newMetaState &= ~(AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON); in tryRemapKey()
384 newMetaState &= ~AMETA_CTRL_ON; in tryRemapKey()
387 newMetaState &= ~(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON); in tryRemapKey()
390 newMetaState &= ~AMETA_SHIFT_ON; in tryRemapKey()
393 *outMetaState = normalizeMetaState(newMetaState); in tryRemapKey()
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp370 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local
371 bool metaStateChanged = oldMetaState != newMetaState; in updateMetaStateIfNeeded()
373 mMetaState = newMetaState; in updateMetaStateIfNeeded()