Lines Matching refs:metaState

50     int32_t metaState;  member
226 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const { in getCharacter()
228 const Behavior* behavior = getKeyBehavior(keyCode, metaState); in getCharacter()
233 ALOGD("getCharacter: keyCode=%d, metaState=0x%08x ~ Result %d.", keyCode, metaState, result); in getCharacter()
238 bool KeyCharacterMap::getFallbackAction(int32_t keyCode, int32_t metaState, in getFallbackAction() argument
241 outFallbackAction->metaState = 0; in getFallbackAction()
244 const Behavior* behavior = getKeyBehavior(keyCode, metaState); in getFallbackAction()
248 outFallbackAction->metaState = metaState & ~behavior->metaState; in getFallbackAction()
255 keyCode, metaState, result ? "true" : "false", in getFallbackAction()
256 outFallbackAction->keyCode, outFallbackAction->metaState); in getFallbackAction()
262 int32_t metaState) const { in getMatch()
274 if ((behavior.metaState & metaState) == behavior.metaState) { in getMatch()
292 int32_t keyCode, metaState; in getEvents() local
294 if (!findKey(ch, &keyCode, &metaState)) { in getEvents()
303 addMetaKeys(outEvents, deviceId, metaState, true, now, &currentMetaState); in getEvents()
306 addMetaKeys(outEvents, deviceId, metaState, false, now, &currentMetaState); in getEvents()
388 toMetaState = fromMetaState & ~behavior->metaState; in applyKeyBehavior()
390 if (behavior->metaState & AMETA_ALT_ON) { in applyKeyBehavior()
393 if (behavior->metaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in applyKeyBehavior()
396 if (behavior->metaState & AMETA_CTRL_ON) { in applyKeyBehavior()
399 if (behavior->metaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in applyKeyBehavior()
402 if (behavior->metaState & AMETA_SHIFT_ON) { in applyKeyBehavior()
405 if (behavior->metaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in applyKeyBehavior()
430 int32_t metaState) const { in getKeyBehavior()
434 if (matchesMetaState(metaState, behavior.metaState)) { in getKeyBehavior()
489 *outMetaState = found->metaState; in findKey()
497 int32_t metaState, bool down, nsecs_t time) { in addKey() argument
502 down ? AKEY_EVENT_ACTION_DOWN : AKEY_EVENT_ACTION_UP, 0, keyCode, 0, metaState, in addKey()
507 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument
511 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
513 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
515 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
518 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
522 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
526 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
530 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
535 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
537 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
540 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
542 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
545 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
549 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
553 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
557 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
562 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
564 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
566 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
572 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addSingleEphemeralMetaKey() argument
575 if ((metaState & keyMetaState) == keyMetaState) { in addSingleEphemeralMetaKey()
584 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addDoubleEphemeralMetaKey() argument
590 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
592 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
596 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
602 int32_t deviceId, int32_t metaState, nsecs_t time, in addLockedMetaKey() argument
605 if ((metaState & keyMetaState) == keyMetaState) { in addLockedMetaKey()
642 int32_t metaState = parcel->readInt32(); in readFromParcel() local
651 .metaState = metaState, in readFromParcel()
719 parcel->writeInt32(behavior.metaState); in writeToParcel()
967 int32_t metaState; in parseKeyProperty() local
968 status_t status = parseModifier(token.c_str(), &metaState); in parseKeyProperty()
974 properties.emplace_back(PROPERTY_META, metaState); in parseKeyProperty()
1108 if (b.metaState == property.metaState) { in parseKeyProperty()
1115 newBehavior.metaState = property.metaState; in parseKeyProperty()
1119 mKeyCode, key.behaviors.front().metaState, key.behaviors.front().character, in parseKeyProperty()
1165 int32_t metaState = 0; in parseModifier() local
1169 metaState = modifiers[i].metaState; in parseModifier()
1173 if (!metaState) { in parseModifier()
1176 if (combinedMeta & metaState) { in parseModifier()
1182 combinedMeta |= metaState; in parseModifier()