Home | History | Annotate | Download | only in input

Lines Matching full:metastate

52     int32_t metaState;
230 char16_t KeyCharacterMap::getCharacter(int32_t keyCode, int32_t metaState) const {
234 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
238 ALOGD("getCharacter: keyCode=%d, metaState=0x%08x ~ Result %d.", keyCode, metaState, result);
243 bool KeyCharacterMap::getFallbackAction(int32_t keyCode, int32_t metaState,
246 outFallbackAction->metaState = 0;
251 if (getKeyBehavior(keyCode, metaState, &key, &behavior)) {
254 outFallbackAction->metaState = metaState & ~behavior->metaState;
259 ALOGD("getFallbackKeyCode: keyCode=%d, metaState=0x%08x ~ Result %s, "
260 "fallback keyCode=%d, fallback metaState=0x%08x.",
261 keyCode, metaState, result ? "true" : "false",
262 outFallbackAction->keyCode, outFallbackAction->metaState);
268 int32_t metaState) const {
280 if ((behavior->metaState & metaState) == behavior->metaState) {
291 ALOGD("getMatch: keyCode=%d, chars=[%s], metaState=0x%08x ~ Result %d.",
292 keyCode, toString(chars, numChars).string(), metaState, result);
302 int32_t keyCode, metaState;
304 if (!findKey(ch, &keyCode, &metaState)) {
313 addMetaKeys(outEvents, deviceId, metaState, true, now, &currentMetaState);
316 addMetaKeys(outEvents, deviceId, metaState, false, now, &currentMetaState);
322 ALOGD(" Key: keyCode=%d, metaState=0x%08x, %s.",
370 bool KeyCharacterMap::getKeyBehavior(int32_t keyCode, int32_t metaState,
376 if (matchesMetaState(metaState, behavior->metaState)) {
436 *outMetaState = found->metaState;
444 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) {
449 0, keyCode, 0, metaState, 0, time, time);
453 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
457 addLockedMetaKey(outEvents, deviceId, metaState, time,
459 addLockedMetaKey(outEvents, deviceId, metaState, time,
461 addLockedMetaKey(outEvents, deviceId, metaState, time,
464 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
468 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
472 metaState, true, time,
476 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
481 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
483 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
486 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, false, time,
488 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, false, time,
491 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time,
495 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time,
499 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time,
503 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, false, time,
508 addLockedMetaKey(outEvents, deviceId, metaState, time,
510 addLockedMetaKey(outEvents, deviceId, metaState, time,
512 addLockedMetaKey(outEvents, deviceId, metaState, time,
518 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
521 if ((metaState & keyMetaState) == keyMetaState) {
530 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
536 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time,
538 specific |= addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time,
542 addSingleEphemeralMetaKey(outEvents, deviceId, metaState, down, time,
548 int32_t deviceId, int32_t metaState, nsecs_t time,
551 if ((metaState & keyMetaState) == keyMetaState) {
583 int32_t metaState = parcel->readInt32();
591 behavior->metaState = metaState;
623 parcel->writeInt32(behavior->metaState);
657 next(NULL), metaState(0), character(0), fallbackKeyCode(0) {
662 metaState(other.metaState), character(other.character),
892 int32_t metaState;
893 status_t status = parseModifier(token, &metaState);
899 properties.add(Property(PROPERTY_META, metaState));
1007 if (b->metaState == property.metaState) {
1014 newBehavior->metaState = property.metaState;
1019 newBehavior->metaState, newBehavior->character, newBehavior->fallbackKeyCode);
1064 int32_t metaState = 0;
1068 metaState = modifiers[i].metaState;
1072 if (!metaState) {
1075 if (combinedMeta & metaState) {
1081 combinedMeta |= metaState;