Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp595 for (int numEventsSent = 0; numEventsSent < mCacheSize;) { in writeToSocketFromCache() local
596 const int numEventsToWrite = helpers::min(mCacheSize - numEventsSent, maxWriteSize); in writeToSocketFromCache()
600 findWakeUpSensorEventLocked(mEventCache + numEventsSent, numEventsToWrite); in writeToSocketFromCache()
602 mEventCache[index_wake_up_event + numEventsSent].flags |= in writeToSocketFromCache()
612 reinterpret_cast<ASensorEvent const*>(mEventCache + numEventsSent), in writeToSocketFromCache()
617 mEventCache[index_wake_up_event + numEventsSent].flags &= in writeToSocketFromCache()
626 memmove(mEventCache, &mEventCache[numEventsSent], in writeToSocketFromCache()
627 (mCacheSize - numEventsSent) * sizeof(sensors_event_t)); in writeToSocketFromCache()
629 numEventsSent, mCacheSize); in writeToSocketFromCache()
630 mCacheSize -= numEventsSent; in writeToSocketFromCache()
[all …]