Searched refs:numEventsSent (Results 1 – 1 of 1) sorted by relevance
513 for (int numEventsSent = 0; numEventsSent < mCacheSize;) { in writeToSocketFromCache() local514 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 …]