Searched refs:newMetaState (Results 1 – 3 of 3) sorted by relevance
180 int32_t newMetaState; in setEphemeralMetaState() local182 newMetaState = oldMetaState | mask; in setEphemeralMetaState()184 newMetaState = oldMetaState & in setEphemeralMetaState()188 return normalizeMetaState(newMetaState); in setEphemeralMetaState()192 int32_t newMetaState = oldMetaState; in normalizeMetaState() local193 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 …]
402 int32_t newMetaState = metaState & ~behavior->metaState; in tryRemapKey() local405 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()
393 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local394 int32_t metaStateChanged = oldMetaState ^ newMetaState; in updateMetaStateIfNeeded()396 mMetaState = newMetaState; in updateMetaStateIfNeeded()400 getContext()->updateLedMetaState(newMetaState & allLedMetaState); in updateMetaStateIfNeeded()