Lines Matching refs:keyEntry

457         KeyEntry* keyEntry = static_cast<KeyEntry*>(entry);  in enqueueInboundEventLocked()  local
458 if (isAppSwitchKeyEventLocked(keyEntry)) { in enqueueInboundEventLocked()
459 if (keyEntry->action == AKEY_EVENT_ACTION_DOWN) { in enqueueInboundEventLocked()
461 } else if (keyEntry->action == AKEY_EVENT_ACTION_UP) { in enqueueInboundEventLocked()
466 mAppSwitchDueTime = keyEntry->eventTime + APP_SWITCH_TIMEOUT; in enqueueInboundEventLocked()
600 bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) { in isAppSwitchKeyEventLocked() argument
601 return ! (keyEntry->flags & AKEY_EVENT_FLAG_CANCELED) in isAppSwitchKeyEventLocked()
602 && isAppSwitchKeyCode(keyEntry->keyCode) in isAppSwitchKeyEventLocked()
603 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED) in isAppSwitchKeyEventLocked()
604 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER); in isAppSwitchKeyEventLocked()
813 commandEntry->keyEntry = entry; in dispatchKeyLocked()
1822 const KeyEntry* keyEntry = static_cast<const KeyEntry*>(eventEntry); in pokeUserActivityLocked() local
1823 if (keyEntry->flags & AKEY_EVENT_FLAG_CANCELED) { in pokeUserActivityLocked()
1927 KeyEntry* keyEntry = static_cast<KeyEntry*>(eventEntry); in enqueueDispatchEntryLocked() local
1928 dispatchEntry->resolvedAction = keyEntry->action; in enqueueDispatchEntryLocked()
1929 dispatchEntry->resolvedFlags = keyEntry->flags; in enqueueDispatchEntryLocked()
1931 if (!connection->inputState.trackKey(keyEntry, in enqueueDispatchEntryLocked()
2016 KeyEntry* keyEntry = static_cast<KeyEntry*>(eventEntry); in startDispatchCycleLocked() local
2020 keyEntry->deviceId, keyEntry->source, in startDispatchCycleLocked()
2022 keyEntry->keyCode, keyEntry->scanCode, in startDispatchCycleLocked()
2023 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked()
2024 keyEntry->eventTime); in startDispatchCycleLocked()
3592 KeyEntry* entry = commandEntry->keyEntry; in doInterceptKeyBeforeDispatchingLockedInterruptible()
3641 KeyEntry* keyEntry = static_cast<KeyEntry*>(dispatchEntry->eventEntry); in doDispatchCycleFinishedLockedInterruptible() local
3643 dispatchEntry, keyEntry, handled); in doDispatchCycleFinishedLockedInterruptible()
3673 DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) { in afterKeyEventLockedInterruptible() argument
3674 if (!(keyEntry->flags & AKEY_EVENT_FLAG_FALLBACK)) { in afterKeyEventLockedInterruptible()
3677 int32_t originalKeyCode = keyEntry->keyCode; in afterKeyEventLockedInterruptible()
3679 if (keyEntry->action == AKEY_EVENT_ACTION_UP) { in afterKeyEventLockedInterruptible()
3692 keyEntry->keyCode, keyEntry->action, keyEntry->repeatCount, in afterKeyEventLockedInterruptible()
3693 keyEntry->policyFlags); in afterKeyEventLockedInterruptible()
3696 initializeKeyEvent(&event, keyEntry); in afterKeyEventLockedInterruptible()
3702 &event, keyEntry->policyFlags, &event); in afterKeyEventLockedInterruptible()
3721 bool initialDown = keyEntry->action == AKEY_EVENT_ACTION_DOWN in afterKeyEventLockedInterruptible()
3722 && keyEntry->repeatCount == 0; in afterKeyEventLockedInterruptible()
3728 originalKeyCode, keyEntry->action, keyEntry->repeatCount, in afterKeyEventLockedInterruptible()
3729 keyEntry->policyFlags); in afterKeyEventLockedInterruptible()
3738 keyEntry->keyCode, keyEntry->action, keyEntry->repeatCount, in afterKeyEventLockedInterruptible()
3739 keyEntry->policyFlags); in afterKeyEventLockedInterruptible()
3742 initializeKeyEvent(&event, keyEntry); in afterKeyEventLockedInterruptible()
3747 &event, keyEntry->policyFlags, &event); in afterKeyEventLockedInterruptible()
3795 if (keyEntry->action != AKEY_EVENT_ACTION_UP) { in afterKeyEventLockedInterruptible()
3817 keyEntry->eventTime = event.getEventTime(); in afterKeyEventLockedInterruptible()
3818 keyEntry->deviceId = event.getDeviceId(); in afterKeyEventLockedInterruptible()
3819 keyEntry->source = event.getSource(); in afterKeyEventLockedInterruptible()
3820 keyEntry->flags = event.getFlags() | AKEY_EVENT_FLAG_FALLBACK; in afterKeyEventLockedInterruptible()
3821 keyEntry->keyCode = fallbackKeyCode; in afterKeyEventLockedInterruptible()
3822 keyEntry->scanCode = event.getScanCode(); in afterKeyEventLockedInterruptible()
3823 keyEntry->metaState = event.getMetaState(); in afterKeyEventLockedInterruptible()
3824 keyEntry->repeatCount = event.getRepeatCount(); in afterKeyEventLockedInterruptible()
3825 keyEntry->downTime = event.getDownTime(); in afterKeyEventLockedInterruptible()
3826 keyEntry->syntheticRepeat = false; in afterKeyEventLockedInterruptible()
3831 originalKeyCode, fallbackKeyCode, keyEntry->metaState); in afterKeyEventLockedInterruptible()
4502 command(command), eventTime(0), keyEntry(NULL), userActivityEventType(0), in CommandEntry()