Lines Matching refs:keyEntry
432 KeyEntry* keyEntry = static_cast<KeyEntry*>(entry); in enqueueInboundEventLocked() local
433 if (isAppSwitchKeyEvent(keyEntry)) { in enqueueInboundEventLocked()
434 if (keyEntry->action == AKEY_EVENT_ACTION_DOWN) { in enqueueInboundEventLocked()
436 } else if (keyEntry->action == AKEY_EVENT_ACTION_UP) { in enqueueInboundEventLocked()
441 mAppSwitchDueTime = keyEntry->eventTime + APP_SWITCH_TIMEOUT; in enqueueInboundEventLocked()
619 bool InputDispatcher::isAppSwitchKeyEvent(KeyEntry* keyEntry) { in isAppSwitchKeyEvent() argument
620 return !(keyEntry->flags & AKEY_EVENT_FLAG_CANCELED) && isAppSwitchKeyCode(keyEntry->keyCode) && in isAppSwitchKeyEvent()
621 (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) && in isAppSwitchKeyEvent()
622 (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); in isAppSwitchKeyEvent()
831 commandEntry->keyEntry = entry; in dispatchKeyLocked()
1919 const KeyEntry* keyEntry = static_cast<const KeyEntry*>(eventEntry); in pokeUserActivityLocked() local
1920 if (keyEntry->flags & AKEY_EVENT_FLAG_CANCELED) { in pokeUserActivityLocked()
2049 KeyEntry* keyEntry = static_cast<KeyEntry*>(eventEntry); in enqueueDispatchEntryLocked() local
2050 dispatchEntry->resolvedAction = keyEntry->action; in enqueueDispatchEntryLocked()
2051 dispatchEntry->resolvedFlags = keyEntry->flags; in enqueueDispatchEntryLocked()
2053 if (!connection->inputState.trackKey(keyEntry, dispatchEntry->resolvedAction, in enqueueDispatchEntryLocked()
2175 KeyEntry* keyEntry = static_cast<KeyEntry*>(eventEntry); in startDispatchCycleLocked() local
2179 .publishKeyEvent(dispatchEntry->seq, keyEntry->deviceId, in startDispatchCycleLocked()
2180 keyEntry->source, keyEntry->displayId, in startDispatchCycleLocked()
2182 dispatchEntry->resolvedFlags, keyEntry->keyCode, in startDispatchCycleLocked()
2183 keyEntry->scanCode, keyEntry->metaState, in startDispatchCycleLocked()
2184 keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked()
2185 keyEntry->eventTime); in startDispatchCycleLocked()
4141 KeyEntry* entry = commandEntry->keyEntry; in doInterceptKeyBeforeDispatchingLockedInterruptible()
4197 KeyEntry* keyEntry = static_cast<KeyEntry*>(dispatchEntry->eventEntry); in doDispatchCycleFinishedLockedInterruptible() local
4199 afterKeyEventLockedInterruptible(connection, dispatchEntry, keyEntry, handled); in doDispatchCycleFinishedLockedInterruptible()
4230 KeyEntry* keyEntry, bool handled) { in afterKeyEventLockedInterruptible() argument
4231 if (keyEntry->flags & AKEY_EVENT_FLAG_FALLBACK) { in afterKeyEventLockedInterruptible()
4234 mReporter->reportUnhandledKey(keyEntry->sequenceNum); in afterKeyEventLockedInterruptible()
4241 int32_t originalKeyCode = keyEntry->keyCode; in afterKeyEventLockedInterruptible()
4243 if (keyEntry->action == AKEY_EVENT_ACTION_UP) { in afterKeyEventLockedInterruptible()
4256 keyEntry->keyCode, keyEntry->action, keyEntry->repeatCount, in afterKeyEventLockedInterruptible()
4257 keyEntry->policyFlags); in afterKeyEventLockedInterruptible()
4260 initializeKeyEvent(&event, keyEntry); in afterKeyEventLockedInterruptible()
4266 keyEntry->policyFlags, &event); in afterKeyEventLockedInterruptible()
4285 bool initialDown = keyEntry->action == AKEY_EVENT_ACTION_DOWN && keyEntry->repeatCount == 0; in afterKeyEventLockedInterruptible()
4291 originalKeyCode, keyEntry->action, keyEntry->repeatCount, keyEntry->policyFlags); in afterKeyEventLockedInterruptible()
4300 keyEntry->keyCode, keyEntry->action, keyEntry->repeatCount, keyEntry->policyFlags); in afterKeyEventLockedInterruptible()
4303 initializeKeyEvent(&event, keyEntry); in afterKeyEventLockedInterruptible()
4308 keyEntry->policyFlags, &event); in afterKeyEventLockedInterruptible()
4356 if (keyEntry->action != AKEY_EVENT_ACTION_UP) { in afterKeyEventLockedInterruptible()
4376 keyEntry->eventTime = event.getEventTime(); in afterKeyEventLockedInterruptible()
4377 keyEntry->deviceId = event.getDeviceId(); in afterKeyEventLockedInterruptible()
4378 keyEntry->source = event.getSource(); in afterKeyEventLockedInterruptible()
4379 keyEntry->displayId = event.getDisplayId(); in afterKeyEventLockedInterruptible()
4380 keyEntry->flags = event.getFlags() | AKEY_EVENT_FLAG_FALLBACK; in afterKeyEventLockedInterruptible()
4381 keyEntry->keyCode = fallbackKeyCode; in afterKeyEventLockedInterruptible()
4382 keyEntry->scanCode = event.getScanCode(); in afterKeyEventLockedInterruptible()
4383 keyEntry->metaState = event.getMetaState(); in afterKeyEventLockedInterruptible()
4384 keyEntry->repeatCount = event.getRepeatCount(); in afterKeyEventLockedInterruptible()
4385 keyEntry->downTime = event.getDownTime(); in afterKeyEventLockedInterruptible()
4386 keyEntry->syntheticRepeat = false; in afterKeyEventLockedInterruptible()
4391 originalKeyCode, fallbackKeyCode, keyEntry->metaState); in afterKeyEventLockedInterruptible()
4400 mReporter->reportUnhandledKey(keyEntry->sequenceNum); in afterKeyEventLockedInterruptible()