Searched refs:newMetaState (Results 1 – 3 of 3) sorted by relevance
181 int32_t newMetaState; in setEphemeralMetaState() local183 newMetaState = oldMetaState | mask; in setEphemeralMetaState()185 newMetaState = oldMetaState & in setEphemeralMetaState()189 return normalizeMetaState(newMetaState); in setEphemeralMetaState()193 int32_t newMetaState = oldMetaState; in normalizeMetaState() local194 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 …]
372 int32_t newMetaState = metaState & ~behavior->metaState; in tryRemapKey() local375 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()
2478 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local2479 bool metaStateChanged = oldMetaState != newMetaState; in updateMetaStateIfNeeded()2481 mMetaState = newMetaState; in updateMetaStateIfNeeded()