Searched refs:newMetaState (Results 1 – 3 of 3) sorted by relevance
171 int32_t newMetaState; in setEphemeralMetaState() local173 newMetaState = oldMetaState | mask; in setEphemeralMetaState()175 newMetaState = oldMetaState & in setEphemeralMetaState()179 return normalizeMetaState(newMetaState); in setEphemeralMetaState()183 int32_t newMetaState = oldMetaState; in normalizeMetaState() local184 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()185 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()188 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()189 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()192 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()
2359 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local2360 bool metaStateChanged = oldMetaState != newMetaState; in updateMetaStateIfNeeded()2362 mMetaState = newMetaState; in updateMetaStateIfNeeded()