Lines Matching refs:metaState
53 int32_t metaState; member
231 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const { in getCharacter()
235 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) { in getCharacter()
239 ALOGD("getCharacter: keyCode=%d, metaState=0x%08x ~ Result %d.", keyCode, metaState, result); in getCharacter()
244 bool KeyCharacterMap::getFallbackAction(int32_t keyCode, int32_t metaState, in getFallbackAction() argument
247 outFallbackAction->metaState = 0; in getFallbackAction()
252 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) { in getFallbackAction()
255 outFallbackAction->metaState = metaState & ~behavior->metaState; in getFallbackAction()
262 keyCode, metaState, result ? "true" : "false", in getFallbackAction()
263 outFallbackAction->keyCode, outFallbackAction->metaState); in getFallbackAction()
269 int32_t metaState) const { in getMatch()
281 if ((behavior->metaState & metaState) == behavior->metaState) { in getMatch()
293 keyCode, toString(chars, numChars).string(), metaState, result); in getMatch()
303 int32_t keyCode, metaState; in getEvents() local
305 if (!findKey(ch, &keyCode, &metaState)) { in getEvents()
314 addMetaKeys(outEvents, deviceId, metaState, true, now, ¤tMetaState); in getEvents()
317 addMetaKeys(outEvents, deviceId, metaState, false, now, ¤tMetaState); in getEvents()
362 void KeyCharacterMap::tryRemapKey(int32_t keyCode, int32_t metaState, in tryRemapKey() argument
365 *outMetaState = metaState; in tryRemapKey()
369 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) { in tryRemapKey()
372 int32_t newMetaState = metaState & ~behavior->metaState; in tryRemapKey()
374 if (behavior->metaState & AMETA_ALT_ON) { in tryRemapKey()
377 if (behavior->metaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { in tryRemapKey()
380 if (behavior->metaState & AMETA_CTRL_ON) { in tryRemapKey()
383 if (behavior->metaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { in tryRemapKey()
386 if (behavior->metaState & AMETA_SHIFT_ON) { in tryRemapKey()
389 if (behavior->metaState & (AMETA_SHIFT_LEFT_ON | AMETA_SHIFT_RIGHT_ON)) { in tryRemapKey()
400 keyCode, metaState, *outKeyCode, *outMetaState); in tryRemapKey()
413 bool KeyCharacterMap::getKeyBehavior(int32_t keyCode, int32_t metaState, in getKeyBehavior() argument
419 if (matchesMetaState(metaState, behavior->metaState)) { in getKeyBehavior()
479 *outMetaState = found->metaState; in findKey()
487 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { in addKey() argument
492 0, keyCode, 0, metaState, 0, time, time); in addKey()
496 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument
500 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
502 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
504 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
507 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
511 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
515 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
519 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
524 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
526 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, in addMetaKeys()
529 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
531 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
534 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
538 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
542 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
546 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time, in addMetaKeys()
551 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
553 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
555 addLockedMetaKey(outEvents, deviceId, metaState, time, in addMetaKeys()
561 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addSingleEphemeralMetaKey() argument
564 if ((metaState & keyMetaState) == keyMetaState) { in addSingleEphemeralMetaKey()
573 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addDoubleEphemeralMetaKey() argument
579 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
581 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
585 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time, in addDoubleEphemeralMetaKey()
591 int32_t deviceId, int32_t metaState, nsecs_t time, in addLockedMetaKey() argument
594 if ((metaState & keyMetaState) == keyMetaState) { in addLockedMetaKey()
630 int32_t metaState = parcel->readInt32(); in readFromParcel() local
639 behavior->metaState = metaState; in readFromParcel()
672 parcel->writeInt32(behavior->metaState); in writeToParcel()
707 next(nullptr), metaState(0), character(0), fallbackKeyCode(0), replacementKeyCode(0) { in Behavior()
712 metaState(other.metaState), character(other.character), in Behavior()
946 int32_t metaState; in parseKeyProperty() local
947 status_t status = parseModifier(token.string(), &metaState); in parseKeyProperty()
953 properties.add(Property(PROPERTY_META, metaState)); in parseKeyProperty()
1095 if (b->metaState == property.metaState) { in parseKeyProperty()
1102 newBehavior->metaState = property.metaState; in parseKeyProperty()
1108 newBehavior->metaState, newBehavior->character, in parseKeyProperty()
1154 int32_t metaState = 0; in parseModifier() local
1158 metaState = modifiers[i].metaState; in parseModifier()
1162 if (!metaState) { in parseModifier()
1165 if (combinedMeta & metaState) { in parseModifier()
1171 combinedMeta |= metaState; in parseModifier()