Home | History | Annotate | Download | only in input

Lines Matching refs:keyEntry

348         KeyEntry* typedEntry = static_cast<KeyEntry*>(mPendingEvent);
410 KeyEntry* keyEntry = static_cast<KeyEntry*>(entry);
411 if (isAppSwitchKeyEventLocked(keyEntry)) {
412 if (keyEntry->action == AKEY_EVENT_ACTION_DOWN) {
414 } else if (keyEntry->action == AKEY_EVENT_ACTION_UP) {
419 mAppSwitchDueTime = keyEntry->eventTime + APP_SWITCH_TIMEOUT;
557 bool InputDispatcher::isAppSwitchKeyEventLocked(KeyEntry* keyEntry) {
558 return ! (keyEntry->flags & AKEY_EVENT_FLAG_CANCELED)
559 && isAppSwitchKeyCode(keyEntry->keyCode)
560 && (keyEntry->policyFlags & POLICY_FLAG_TRUSTED)
561 && (keyEntry->policyFlags & POLICY_FLAG_PASS_TO_USER);
649 InputDispatcher::KeyEntry* InputDispatcher::synthesizeKeyRepeatLocked(nsecs_t currentTime) {
650 KeyEntry* entry = mKeyRepeatState.lastKeyEntry;
661 KeyEntry* newEntry = new KeyEntry(currentTime,
710 bool InputDispatcher::dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry,
750 if (entry->interceptKeyResult == KeyEntry::INTERCEPT_KEY_RESULT_TRY_AGAIN_LATER) {
757 entry->interceptKeyResult = KeyEntry::INTERCEPT_KEY_RESULT_UNKNOWN;
762 if (entry->interceptKeyResult == KeyEntry::INTERCEPT_KEY_RESULT_UNKNOWN) {
769 commandEntry->keyEntry = entry;
773 entry->interceptKeyResult = KeyEntry::INTERCEPT_KEY_RESULT_CONTINUE;
775 } else if (entry->interceptKeyResult == KeyEntry::INTERCEPT_KEY_RESULT_SKIP) {
808 void InputDispatcher::logOutboundKeyDetailsLocked(const char* prefix, const KeyEntry* entry) {
1754 const KeyEntry* keyEntry = static_cast<const KeyEntry*>(eventEntry);
1755 if (keyEntry->flags & AKEY_EVENT_FLAG_CANCELED) {
1859 KeyEntry* keyEntry = static_cast<KeyEntry*>(eventEntry);
1860 dispatchEntry->resolvedAction = keyEntry->action;
1861 dispatchEntry->resolvedFlags = keyEntry->flags;
1863 if (!connection->inputState.trackKey(keyEntry,
1945 KeyEntry* keyEntry = static_cast<KeyEntry*>(eventEntry);
1949 keyEntry->deviceId, keyEntry->source,
1951 keyEntry->keyCode, keyEntry->scanCode,
1952 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime,
1953 keyEntry->eventTime);
2206 static_cast<KeyEntry*>(cancelationEventEntry));
2411 KeyEntry* newEntry = new KeyEntry(args->eventTime,
2579 firstInjectedEntry = new KeyEntry(keyEvent->getEventTime(),
3452 KeyEntry* entry = commandEntry->keyEntry;
3465 entry->interceptKeyResult = KeyEntry::INTERCEPT_KEY_RESULT_SKIP;
3467 entry->interceptKeyResult = KeyEntry::INTERCEPT_KEY_RESULT_CONTINUE;
3469 entry->interceptKeyResult = KeyEntry::INTERCEPT_KEY_RESULT_TRY_AGAIN_LATER;
3496 KeyEntry* keyEntry = static_cast<KeyEntry*>(dispatchEntry->eventEntry);
3498 dispatchEntry, keyEntry, handled);
3528 DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) {
3529 if (!(keyEntry->flags & AKEY_EVENT_FLAG_FALLBACK)) {
3532 int32_t originalKeyCode = keyEntry->keyCode;
3534 if (keyEntry->action == AKEY_EVENT_ACTION_UP) {
3547 keyEntry->keyCode, keyEntry->action, keyEntry->repeatCount,
3548 keyEntry->policyFlags);
3551 initializeKeyEvent(&event, keyEntry);
3557 &event, keyEntry->policyFlags, &event);
3576 bool initialDown = keyEntry->action == AKEY_EVENT_ACTION_DOWN
3577 && keyEntry->repeatCount == 0;
3583 originalKeyCode, keyEntry->action, keyEntry->repeatCount,
3584 keyEntry->policyFlags);
3593 keyEntry->keyCode, keyEntry->action, keyEntry->repeatCount,
3594 keyEntry->policyFlags);
3597 initializeKeyEvent(&event, keyEntry);
3602 &event, keyEntry->policyFlags, &event);
3650 if (keyEntry->action != AKEY_EVENT_ACTION_UP) {
3672 keyEntry->eventTime = event.getEventTime();
3673 keyEntry->deviceId = event.getDeviceId();
3674 keyEntry->source = event.getSource();
3675 keyEntry->flags = event.getFlags() | AKEY_EVENT_FLAG_FALLBACK;
3676 keyEntry->keyCode = fallbackKeyCode;
3677 keyEntry->scanCode = event.getScanCode();
3678 keyEntry->metaState = event.getMetaState();
3679 keyEntry->repeatCount = event.getRepeatCount();
3680 keyEntry->downTime = event.getDownTime();
3681 keyEntry->syntheticRepeat = false;
3686 originalKeyCode, fallbackKeyCode, keyEntry->metaState);
3712 void InputDispatcher::initializeKeyEvent(KeyEvent* event, const KeyEntry* entry) {
3859 // --- InputDispatcher::KeyEntry ---
3861 InputDispatcher::KeyEntry::KeyEntry(nsecs_t eventTime,
3869 syntheticRepeat(false), interceptKeyResult(KeyEntry::INTERCEPT_KEY_RESULT_UNKNOWN),
3873 InputDispatcher::KeyEntry::~KeyEntry() {
3876 void InputDispatcher::KeyEntry::appendDescription(String8& msg) const {
3884 void InputDispatcher::KeyEntry::recycle() {
3889 interceptKeyResult = KeyEntry::INTERCEPT_KEY_RESULT_UNKNOWN;
3987 bool InputDispatcher::InputState::trackKey(const KeyEntry* entry,
4117 ssize_t InputDispatcher::InputState::findKeyMemento(const KeyEntry* entry) const {
4144 void InputDispatcher::InputState::addKeyMemento(const KeyEntry* entry, int32_t flags) {
4186 outEvents.push(new KeyEntry(currentTime,
4344 command(command), eventTime(0), keyEntry(NULL), userActivityEventType(0),