Home | History | Annotate | Download | only in input

Lines Matching refs:DispatchEntry

1852     DispatchEntry* dispatchEntry = new DispatchEntry(eventEntry, // increments ref
1860 dispatchEntry->resolvedAction = keyEntry->action;
1861 dispatchEntry->resolvedFlags = keyEntry->flags;
1864 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags)) {
1869 delete dispatchEntry;
1878 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_OUTSIDE;
1880 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_EXIT;
1882 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER;
1884 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_CANCEL;
1886 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_DOWN;
1888 dispatchEntry->resolvedAction = motionEntry->action;
1890 if (dispatchEntry->resolvedAction == AMOTION_EVENT_ACTION_HOVER_MOVE
1897 dispatchEntry->resolvedAction = AMOTION_EVENT_ACTION_HOVER_ENTER;
1900 dispatchEntry->resolvedFlags = motionEntry->flags;
1901 if (dispatchEntry->targetFlags & InputTarget::FLAG_WINDOW_IS_OBSCURED) {
1902 dispatchEntry->resolvedFlags |= AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED;
1906 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags)) {
1911 delete dispatchEntry;
1919 if (dispatchEntry->hasForegroundTarget()) {
1924 connection->outboundQueue.enqueueAtTail(dispatchEntry);
1937 DispatchEntry* dispatchEntry = connection->outboundQueue.head;
1938 dispatchEntry->deliveryTime = currentTime;
1942 EventEntry* eventEntry = dispatchEntry->eventEntry;
1948 status = connection->inputPublisher.publishKeyEvent(dispatchEntry->seq,
1950 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags,
1966 && !(dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS)) {
1967 scaleFactor = dispatchEntry->scaleFactor;
1968 xOffset = dispatchEntry->xOffset * scaleFactor;
1969 yOffset = dispatchEntry->yOffset * scaleFactor;
1983 if (dispatchEntry->targetFlags & InputTarget::FLAG_ZERO_COORDS) {
1992 status = connection->inputPublisher.publishMotionEvent(dispatchEntry->seq,
1994 dispatchEntry->resolvedAction, dispatchEntry->resolvedFlags,
2037 connection->outboundQueue.dequeue(dispatchEntry);
2039 connection->waitQueue.enqueueAtTail(dispatchEntry);
2087 void InputDispatcher::drainDispatchQueueLocked(Queue<DispatchEntry>* queue) {
2089 DispatchEntry* dispatchEntry = queue->dequeueAtHead();
2090 releaseDispatchEntryLocked(dispatchEntry);
2094 void InputDispatcher::releaseDispatchEntryLocked(DispatchEntry* dispatchEntry) {
2095 if (dispatchEntry->hasForegroundTarget()) {
2096 decrementPendingForegroundDispatchesLocked(dispatchEntry->eventEntry);
2098 delete dispatchEntry;
3213 for (DispatchEntry* entry = connection->outboundQueue.head; entry;
3228 for (DispatchEntry* entry = connection->waitQueue.head; entry;
3483 DispatchEntry* dispatchEntry = connection->findWaitQueueEntry(seq);
3484 if (dispatchEntry) {
3485 nsecs_t eventDuration = finishTime - dispatchEntry->deliveryTime;
3490 dispatchEntry->eventEntry->appendDescription(msg);
3495 if (dispatchEntry->eventEntry->type == EventEntry::TYPE_KEY) {
3496 KeyEntry* keyEntry = static_cast<KeyEntry*>(dispatchEntry->eventEntry);
3498 dispatchEntry, keyEntry, handled);
3499 } else if (dispatchEntry->eventEntry->type == EventEntry::TYPE_MOTION) {
3500 MotionEntry* motionEntry = static_cast<MotionEntry*>(dispatchEntry->eventEntry);
3502 dispatchEntry, motionEntry, handled);
3511 if (dispatchEntry == connection->findWaitQueueEntry(seq)) {
3512 connection->waitQueue.dequeue(dispatchEntry);
3515 connection->outboundQueue.enqueueAtHead(dispatchEntry);
3518 releaseDispatchEntryLocked(dispatchEntry);
3528 DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) {
3538 if (handled || !dispatchEntry->hasForegroundTarget()) {
3700 DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) {
3934 // --- InputDispatcher::DispatchEntry ---
3936 volatile int32_t InputDispatcher::DispatchEntry::sNextSeqAtomic;
3938 InputDispatcher::DispatchEntry::DispatchEntry(EventEntry* eventEntry,
3947 InputDispatcher::DispatchEntry::~DispatchEntry() {
3951 uint32_t InputDispatcher::DispatchEntry::nextSeq() {
4331 InputDispatcher::DispatchEntry* InputDispatcher::Connection::findWaitQueueEntry(uint32_t seq) {
4332 for (DispatchEntry* entry = waitQueue.head; entry != NULL; entry = entry->next) {