Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp513 for (int numEventsSent = 0; numEventsSent < mCacheSize;) { in writeToSocketFromCache() local
514 const int numEventsToWrite = helpers::min(mCacheSize - numEventsSent, maxWriteSize); in writeToSocketFromCache()
518 findWakeUpSensorEventLocked(mEventCache + numEventsSent, numEventsToWrite); in writeToSocketFromCache()
520 mEventCache[index_wake_up_event + numEventsSent].flags |= in writeToSocketFromCache()
530 reinterpret_cast<ASensorEvent const*>(mEventCache + numEventsSent), in writeToSocketFromCache()
535 mEventCache[index_wake_up_event + numEventsSent].flags &= in writeToSocketFromCache()
544 memmove(mEventCache, &mEventCache[numEventsSent], in writeToSocketFromCache()
545 (mCacheSize - numEventsSent) * sizeof(sensors_event_t)); in writeToSocketFromCache()
547 numEventsSent, mCacheSize); in writeToSocketFromCache()
548 mCacheSize -= numEventsSent; in writeToSocketFromCache()
[all …]