Lines Matching refs:deviceId
297 bool KeyCharacterMap::getEvents(int32_t deviceId, const char16_t* chars, size_t numChars,
306 ALOGD("getEvents: deviceId=%d, chars=[%s] ~ Failed to find mapping for character %d.",
307 deviceId, toString(chars, numChars).string(), ch);
313 addMetaKeys(outEvents, deviceId, metaState, true, now, ¤tMetaState);
314 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now);
315 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now);
316 addMetaKeys(outEvents, deviceId, metaState, false, now, ¤tMetaState);
319 ALOGD("getEvents: deviceId=%d, chars=[%s] ~ Generated %d events.",
320 deviceId, toString(chars, numChars).string(), int32_t(outEvents.size()));
444 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) {
447 event.initialize(deviceId, AINPUT_SOURCE_KEYBOARD,
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 deviceId, 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,
523 addKey(outEvents, deviceId, keyCode, *currentMetaState, down, time);
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,
553 addKey(outEvents, deviceId, keyCode, *currentMetaState, true, time);
555 addKey(outEvents, deviceId, keyCode, *currentMetaState, false, time);