Lines Matching refs:DispatchEntry
1853 DispatchEntry* dispatchEntry = new DispatchEntry(eventEntry, // increments ref
1861 dispatchEntry->resolvedAction = keyEntry->action;
1862 dispatchEntry->resolvedFlags = keyEntry->flags;
1865 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags)) {
1870 delete dispatchEntry;
1879 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_OUTSIDE;
1881 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_EXIT;
1883 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER;
1885 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_CANCEL;
1887 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_DOWN;
1889 dispatchEntry->resolvedAction = motionEntry->action;
1891 if (dispatchEntry->resolvedAction == AMOTION_EVENT_ACTION_HOVER_MOVE
1898 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER;
1901 dispatchEntry->resolvedFlags = motionEntry->flags;
1902 if (dispatchEntry->targetFlags & InputTarget::FLAG_WINDOW_IS_OBSCURED) {
1903 dispatchEntry->resolvedFlags |= AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED;
1907 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags)) {
1912 delete dispatchEntry;
1920 if (dispatchEntry->hasForegroundTarget()) {
1925 connection->outboundQueue.enqueueAtTail(dispatchEntry);
1938 DispatchEntry* dispatchEntry = connection->outboundQueue.head;
1939 dispatchEntry->deliveryTime = currentTime;
1943 EventEntry* eventEntry = dispatchEntry->eventEntry;
1949 status = connection->inputPublisher.publishKeyEvent(dispatchEntry->seq,
1951 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags,
1967 && !(dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS)) {
1968 dispatchEntry->scaleFactor;
1969 xOffset = dispatchEntry->xOffset * scaleFactor;
1970 yOffset = dispatchEntry->yOffset * scaleFactor;
1984 if (dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS) {
1993 status = connection->inputPublisher.publishMotionEvent(dispatchEntry->seq,
1995 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags,
2038 connection->outboundQueue.dequeue(dispatchEntry);
2040 connection->waitQueue.enqueueAtTail(dispatchEntry);
2088 void InputDispatcher::drainDispatchQueueLocked(Queue<DispatchEntry>* queue) {
2090 DispatchEntry* dispatchEntry = queue->dequeueAtHead();
2091 releaseDispatchEntryLocked(dispatchEntry);
2095 void InputDispatcher::releaseDispatchEntryLocked(DispatchEntry* dispatchEntry) {
2096 if (dispatchEntry->hasForegroundTarget()) {
2097 decrementPendingForegroundDispatchesLocked(dispatchEntry->eventEntry);
2099 delete dispatchEntry;
3189 for (DispatchEntry* entry = connection->outboundQueue.head; entry;
3204 for (DispatchEntry* entry = connection->waitQueue.head; entry;
3457 DispatchEntry* dispatchEntry = connection->findWaitQueueEntry(seq);
3458 if (dispatchEntry) {
3459 nsecs_t eventDuration = finishTime - dispatchEntry->deliveryTime;
3464 dispatchEntry->eventEntry->appendDescription(msg);
3469 if (dispatchEntry->eventEntry->type == EventEntry::TYPE_KEY) {
3470 KeyEntry* keyEntry = static_cast<KeyEntry*>(dispatchEntry->eventEntry);
3472 dispatchEntry, keyEntry, handled);
3473 } else if (dispatchEntry->eventEntry->type == EventEntry::TYPE_MOTION) {
3474 MotionEntry* motionEntry = static_cast<MotionEntry*>(dispatchEntry->eventEntry);
3476 dispatchEntry, motionEntry, handled);
3485 if (dispatchEntry == connection->findWaitQueueEntry(seq)) {
3486 connection->waitQueue.dequeue(dispatchEntry);
3489 connection->outboundQueue.enqueueAtHead(dispatchEntry);
3492 releaseDispatchEntryLocked(dispatchEntry);
3502 DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) {
3512 if (handled || !dispatchEntry->hasForegroundTarget()) {
3674 DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) {
3892 // --- InputDispatcher::DispatchEntry ---
3894 volatile int32_t InputDispatcher::DispatchEntry::sNextSeqAtomic;
3896 InputDispatcher::DispatchEntry::DispatchEntry(EventEntry* eventEntry,
3905 InputDispatcher::DispatchEntry::~DispatchEntry() {
3909 uint32_t InputDispatcher::DispatchEntry::nextSeq() {
4289 InputDispatcher::DispatchEntry* InputDispatcher::Connection::findWaitQueueEntry(uint32_t seq) {
4290 for (DispatchEntry* entry = waitQueue.head; entry != NULL; entry = entry->next) {