Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp423 for (int numEventsSent = 0; numEventsSent < mCacheSize;) { in writeToSocketFromCache() local
424 const int numEventsToWrite = helpers::min(mCacheSize - numEventsSent, maxWriteSize); in writeToSocketFromCache()
426 findWakeUpSensorEventLocked(mEventCache + numEventsSent, numEventsToWrite); in writeToSocketFromCache()
428 mEventCache[index_wake_up_event + numEventsSent].flags |= in writeToSocketFromCache()
437 reinterpret_cast<ASensorEvent const*>(mEventCache + numEventsSent), in writeToSocketFromCache()
442 mEventCache[index_wake_up_event + numEventsSent].flags &= in writeToSocketFromCache()
451 memmove(mEventCache, &mEventCache[numEventsSent], in writeToSocketFromCache()
452 (mCacheSize - numEventsSent) * sizeof(sensors_event_t)); in writeToSocketFromCache()
454 numEventsSent, mCacheSize); in writeToSocketFromCache()
455 mCacheSize -= numEventsSent; in writeToSocketFromCache()
[all …]