Lines Matching refs:dispatchEntry
1884 DispatchEntry* dispatchEntry = new DispatchEntry(eventEntry, // increments ref
1892 dispatchEntry->resolvedAction = keyEntry->action;
1893 dispatchEntry->resolvedFlags = keyEntry->flags;
1896 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags)) {
1901 delete dispatchEntry;
1910 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_OUTSIDE;
1912 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_EXIT;
1914 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER;
1916 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_CANCEL;
1918 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_DOWN;
1920 dispatchEntry->resolvedAction = motionEntry->action;
1922 if (dispatchEntry->resolvedAction == AMOTION_EVENT_ACTION_HOVER_MOVE
1929 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER;
1932 dispatchEntry->resolvedFlags = motionEntry->flags;
1933 if (dispatchEntry->targetFlags & InputTarget::FLAG_WINDOW_IS_OBSCURED) {
1934 dispatchEntry->resolvedFlags |= AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED;
1936 if (dispatchEntry->targetFlags & InputTarget::FLAG_WINDOW_IS_PARTIALLY_OBSCURED) {
1937 dispatchEntry->resolvedFlags |= AMOTION_EVENT_FLAG_WINDOW_IS_PARTIALLY_OBSCURED;
1941 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags)) {
1946 delete dispatchEntry;
1954 if (dispatchEntry->hasForegroundTarget()) {
1959 connection->outboundQueue.enqueueAtTail(dispatchEntry);
1972 DispatchEntry* dispatchEntry
1973 dispatchEntry->deliveryTime = currentTime;
1977 EventEntry* eventEntry = dispatchEntry->eventEntry;
1983 status = connection->inputPublisher.publishKeyEvent(dispatchEntry->seq,
1985 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags,
2001 && !(dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS)) {
2002 scaleFactor = dispatchEntry->scaleFactor;
2003 xOffset = dispatchEntry->xOffset * scaleFactor;
2004 yOffset = dispatchEntry->yOffset * scaleFactor;
2018 if (dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS) {
2027 status = connection->inputPublisher.publishMotionEvent(dispatchEntry->seq,
2029 dispatchEntry->resolvedAction, motionEntry->actionButton,
2030 dispatchEntry->resolvedFlags, motionEntry->edgeFlags,
2072 connection->outboundQueue.dequeue(dispatchEntry);
2074 connection->waitQueue.enqueueAtTail(dispatchEntry);
2122 void InputDispatcher::drainDispatchQueueLocked(Queue<DispatchEntry>* queue) {
2124 DispatchEntry* dispatchEntry = queue->dequeueAtHead();
2125 releaseDispatchEntryLocked(dispatchEntry);
2129 void InputDispatcher::releaseDispatchEntryLocked(DispatchEntry* dispatchEntry) {
2130 if (dispatchEntry->hasForegroundTarget()) {
2131 decrementPendingForegroundDispatchesLocked(dispatchEntry->eventEntry);
2133 delete dispatchEntry;
3295 for (DispatchEntry* entry = connection->outboundQueue.head; entry;
3310 for (DispatchEntry* entry = connection->waitQueue.head; entry;
3565 DispatchEntry* dispatchEntry = connection->findWaitQueueEntry(seq);
3566 if (dispatchEntry) {
3567 nsecs_t eventDuration = finishTime - dispatchEntry->deliveryTime;
3572 dispatchEntry->eventEntry->appendDescription(msg);
3577 if (dispatchEntry->eventEntry->type == EventEntry::TYPE_KEY) {
3578 KeyEntry* keyEntry = static_cast<KeyEntry*>(dispatchEntry->eventEntry);
3580 dispatchEntry, keyEntry, handled);
3581 } else if (dispatchEntry->eventEntry->type == EventEntry::TYPE_MOTION) {
3582 MotionEntry* motionEntry = static_cast<MotionEntry*>(dispatchEntry->eventEntry);
3584 dispatchEntry, motionEntry, handled);
3593 if (dispatchEntry == connection->findWaitQueueEntry(seq)) {
3594 connection->waitQueue.dequeue(dispatchEntry);
3597 connection->outboundQueue.enqueueAtHead(dispatchEntry);
3600 releaseDispatchEntryLocked(dispatchEntry);
3610 DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) {
3620 if (handled || !dispatchEntry->hasForegroundTarget()) {
3782 DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) {
4008 // --- InputDispatcher::DispatchEntry ---
4010 volatile int32_t InputDispatcher::DispatchEntry::sNextSeqAtomic;
4012 InputDispatcher::DispatchEntry::DispatchEntry(EventEntry* eventEntry,
4021 InputDispatcher::DispatchEntry::~DispatchEntry() {
4025 uint32_t InputDispatcher::DispatchEntry::nextSeq() {
4427 InputDispatcher::DispatchEntry* InputDispatcher::Connection::findWaitQueueEntry(uint32_t seq) {
4428 for (DispatchEntry* entry = waitQueue.head; entry != NULL; entry = entry->next) {