Lines Matching refs:event

120       Event *event = mEvents.pop();  in run()  local
124 distributeEvent(event); in run()
281 Event *event = in postSystemEvent() local
284 if (event == nullptr || !mEvents.push(event)) { in postSystemEvent()
383 Event *event = in allocateAndPostEvent() local
386 if (event != nullptr) { in allocateAndPostEvent()
387 success = mEvents.push(event); in allocateAndPostEvent()
410 Event *event = app->processNextEvent(); in deliverNextEvent() local
413 if (event->isUnreferenced()) { in deliverNextEvent()
414 freeEvent(event); in deliverNextEvent()
420 void EventLoop::distributeEvent(Event *event) { in distributeEvent() argument
422 if ((event->targetInstanceId == chre::kBroadcastInstanceId && in distributeEvent()
423 app->isRegisteredForBroadcastEvent(event->eventType, in distributeEvent()
424 event->targetAppGroupMask)) || in distributeEvent()
425 event->targetInstanceId == app->getInstanceId()) { in distributeEvent()
426 app->postEvent(event); in distributeEvent()
430 if (event->isUnreferenced()) { in distributeEvent()
436 if (event->targetInstanceId != kBroadcastInstanceId && in distributeEvent()
437 event->targetInstanceId != kSystemInstanceId) { in distributeEvent()
439 event->eventType, event->senderInstanceId, event->targetInstanceId); in distributeEvent()
441 freeEvent(event); in distributeEvent()
456 void EventLoop::freeEvent(Event *event) { in freeEvent() argument
457 if (event->hasFreeCallback()) { in freeEvent()
459 mCurrentApp = lookupAppByInstanceId(event->senderInstanceId); in freeEvent()
460 event->invokeFreeCallback(); in freeEvent()
464 mEventPool.deallocate(event); in freeEvent()