Searched refs:newMetaState (Results 1 – 3 of 3) sorted by relevance
193 int32_t newMetaState; in setEphemeralMetaState() local195 newMetaState = oldMetaState | mask; in setEphemeralMetaState()197 newMetaState = oldMetaState & in setEphemeralMetaState()201 return normalizeMetaState(newMetaState); in setEphemeralMetaState()205 int32_t newMetaState = oldMetaState; in normalizeMetaState() local206 if (newMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in normalizeMetaState()207 newMetaState |= AMETA_ALT_ON; in normalizeMetaState()210 if (newMetaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in normalizeMetaState()211 newMetaState |= AMETA_SHIFT_ON; in normalizeMetaState()214 if (newMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in normalizeMetaState()[all …]
446 int32_t newMetaState = metaState & ~behavior->metaState; in tryRemapKey() local449 newMetaState &= ~(AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON); in tryRemapKey()452 newMetaState &= ~AMETA_ALT_ON; in tryRemapKey()455 newMetaState &= ~(AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON); in tryRemapKey()458 newMetaState &= ~AMETA_CTRL_ON; in tryRemapKey()461 newMetaState &= ~(AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON); in tryRemapKey()464 newMetaState &= ~AMETA_SHIFT_ON; in tryRemapKey()467 *outMetaState = normalizeMetaState(newMetaState); in tryRemapKey()
402 int32_t newMetaState = android::updateMetaState(keyCode, down, oldMetaState); in updateMetaStateIfNeeded() local403 int32_t metaStateChanged = oldMetaState ^ newMetaState; in updateMetaStateIfNeeded()405 mMetaState = newMetaState; in updateMetaStateIfNeeded()409 getContext()->updateLedMetaState(newMetaState & allLedMetaState); in updateMetaStateIfNeeded()