Lines Matching refs:events
446 std::vector<Event> events(numToRead); in stopThreads() local
447 mEventQueue->read(events.data(), numToRead); in stopThreads()
570 void HalProxy::postEventsToMessageQueue(const std::vector<Event>& events, size_t numWakeupEvents, in postEventsToMessageQueue() argument
578 numToWrite = std::min(events.size(), mEventQueue->availableToWrite()); in postEventsToMessageQueue()
580 if (mEventQueue->write(events.data(), numToWrite)) { in postEventsToMessageQueue()
589 size_t numLeft = events.size() - numToWrite; in postEventsToMessageQueue()
590 if (numToWrite < events.size() && in postEventsToMessageQueue()
592 std::vector<Event> eventsLeft(events.begin() + numToWrite, events.end()); in postEventsToMessageQueue()
651 size_t HalProxy::countNumWakeupEvents(const std::vector<Event>& events, size_t n) { in countNumWakeupEvents() argument
654 int32_t sensorHandle = events[i].sensorHandle; in countNumWakeupEvents()
670 void HalProxyCallback::postEvents(const std::vector<Event>& events, ScopedWakelock wakelock) { in postEvents() argument
671 if (events.empty() || !mHalProxy->areThreadsRunning()) return; in postEvents()
673 std::vector<Event> processedEvents = processEvents(events, &numWakeupEvents); in postEvents()
693 std::vector<Event> HalProxyCallback::processEvents(const std::vector<Event>& events, in processEvents() argument
697 for (Event event : events) { in processEvents()