Home
last modified time | relevance | path

Searched refs:availableEvents (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/sensorservice/
DHidlSensorHalWrapper.cpp187 size_t availableEvents = mSensors->getEventQueue()->availableToRead(); in pollFmq() local
189 if (availableEvents == 0) { in pollFmq()
201 availableEvents = mSensors->getEventQueue()->availableToRead(); in pollFmq()
209 size_t eventsToRead = std::min({availableEvents, maxNumEventsToRead, mEventBuffer.size()}); in pollFmq()
224 availableEvents); in pollFmq()
DAidlSensorHalWrapper.cpp614 size_t availableEvents = mEventQueue->availableToRead(); in pollFmq() local
616 if (availableEvents == 0) { in pollFmq()
628 availableEvents = mEventQueue->availableToRead(); in pollFmq()
636 size_t eventsToRead = std::min({availableEvents, maxNumEventsToRead, mEventBuffer.size()}); in pollFmq()
651 availableEvents); in pollFmq()