Lines Matching refs:mEventCache
44 mDead(false), mDataInjectionMode(isDataInjectionMode), mEventCache(nullptr), in SensorEventConnection()
59 delete[] mEventCache; in ~SensorEventConnection()
420 if (mEventCache == nullptr) { in sendEvents()
422 mEventCache = new sensors_event_t[mMaxCacheSize]; in sendEvents()
488 memcpy(eventCache_new, mEventCache, mCacheSize * sizeof(sensors_event_t)); in reAllocateCacheLocked()
494 delete[] mEventCache; in reAllocateCacheLocked()
495 mEventCache = eventCache_new; in reAllocateCacheLocked()
506 memcpy(&mEventCache[mCacheSize], events, count * sizeof(sensors_event_t)); in appendEventsToCacheLocked()
537 countFlushCompleteEventsLocked(mEventCache, cachedEventsToDrop); in appendEventsToCacheLocked()
542 memmove(mEventCache, &mEventCache[cachedEventsToDrop], in appendEventsToCacheLocked()
548 memcpy(&mEventCache[mCacheSize], &events[newEventsToDrop], in appendEventsToCacheLocked()
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()