Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DKeyboard.cpp190 int32_t newMetaState; in setEphemeralMetaState() local
192 newMetaState = oldMetaState | mask; in setEphemeralMetaState()
194 newMetaState = oldMetaState & in setEphemeralMetaState()
198 return normalizeMetaState(newMetaState); in setEphemeralMetaState()
202 int32_t newMetaState = oldMetaState; in normalizeMetaState() local
203 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()
204 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()
207 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()
208 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()
211 if (newMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in normalizeMetaState()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DKeyboardInputMapper.cpp404 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local
405 int32_t metaStateChanged = oldMetaState ^ newMetaState; in updateMetaStateIfNeeded()
407 mMetaState = newMetaState; in updateMetaStateIfNeeded()
411 getContext()->updateLedMetaState(newMetaState & allLedMetaState); in updateMetaStateIfNeeded()