Searched refs:eventsToRead (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/services/sensorservice/ |
D | AidlSensorHalWrapper.cpp | 189 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()
|
D | HidlSensorHalWrapper.cpp | 214 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()
|
D | SensorDevice.cpp | 946 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()
|