Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp591 for (int numEventsSent = 0; numEventsSent < mCacheSize;) { in writeToSocketFromCache() local
592 const int numEventsToWrite = helpers::min(mCacheSize - numEventsSent, maxWriteSize); in writeToSocketFromCache()
596 findWakeUpSensorEventLocked(mEventCache + numEventsSent, numEventsToWrite); in writeToSocketFromCache()
598 mEventCache[index_wake_up_event + numEventsSent].flags |= in writeToSocketFromCache()
608 reinterpret_cast<ASensorEvent const*>(mEventCache + numEventsSent), in writeToSocketFromCache()
613 mEventCache[index_wake_up_event + numEventsSent].flags &= in writeToSocketFromCache()
622 memmove(mEventCache, &mEventCache[numEventsSent], in writeToSocketFromCache()
623 (mCacheSize - numEventsSent) * sizeof(sensors_event_t)); in writeToSocketFromCache()
625 numEventsSent, mCacheSize); in writeToSocketFromCache()
626 mCacheSize -= numEventsSent; in writeToSocketFromCache()
[all …]