Home
last modified time | relevance | path

Searched refs:eventsToRead (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/services/sensorservice/
DAidlSensorHalWrapper.cpp189 size_t eventsToRead = std::min({availableEvents, maxNumEventsToRead, mEventBuffer.size()}); in pollFmq() local
190 if (eventsToRead > 0) { in pollFmq()
191 if (mEventQueue->read(mEventBuffer.data(), eventsToRead)) { in pollFmq()
198 for (size_t i = 0; i < eventsToRead; i++) { in pollFmq()
201 eventsRead = eventsToRead; in pollFmq()
203 ALOGW("Failed to read %zu events, currently %zu events available", eventsToRead, in pollFmq()
DHidlSensorHalWrapper.cpp214 size_t eventsToRead = std::min({availableEvents, maxNumEventsToRead, mEventBuffer.size()}); in pollFmq() local
215 if (eventsToRead > 0) { in pollFmq()
216 if (mSensors->getEventQueue()->read(mEventBuffer.data(), eventsToRead)) { in pollFmq()
223 for (size_t i = 0; i < eventsToRead; i++) { in pollFmq()
226 eventsRead = eventsToRead; in pollFmq()
228 ALOGW("Failed to read %zu events, currently %zu events available", eventsToRead, in pollFmq()
DSensorDevice.cpp946 size_t eventsToRead = std::min(mHalBypassInjectedEventQueue.size(), maxNumEventsToRead); in getHalBypassInjectedEvents() local
947 for (size_t i = 0; i < eventsToRead; i++) { in getHalBypassInjectedEvents()
951 return eventsToRead; in getHalBypassInjectedEvents()