Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp465 for (int numEventsSent = 0; numEventsSent < mCacheSize;) { in writeToSocketFromCache() local
466 const int numEventsToWrite = helpers::min(mCacheSize - numEventsSent, maxWriteSize); in writeToSocketFromCache()
470 findWakeUpSensorEventLocked(mEventCache + numEventsSent, numEventsToWrite); in writeToSocketFromCache()
472 mEventCache[index_wake_up_event + numEventsSent].flags |= in writeToSocketFromCache()
482 reinterpret_cast<ASensorEvent const*>(mEventCache + numEventsSent), in writeToSocketFromCache()
487 mEventCache[index_wake_up_event + numEventsSent].flags &= in writeToSocketFromCache()
496 memmove(mEventCache, &mEventCache[numEventsSent], in writeToSocketFromCache()
497 (mCacheSize - numEventsSent) * sizeof(sensors_event_t)); in writeToSocketFromCache()
499 numEventsSent, mCacheSize); in writeToSocketFromCache()
500 mCacheSize -= numEventsSent; in writeToSocketFromCache()
[all …]