Lines Matching refs:mEventCache
34 mDead(false), mDataInjectionMode(isDataInjectionMode), mEventCache(NULL), in SensorEventConnection()
58 if (mEventCache != NULL) { in destroy()
59 delete mEventCache; in destroy()
319 memcpy(&mEventCache[mCacheSize], scratch, count * sizeof(sensors_event_t)); in sendEvents()
332 memcpy(&mEventCache[mCacheSize], scratch, in sendEvents()
336 countFlushCompleteEventsLocked(mEventCache, numEventsDropped); in sendEvents()
338 memmove(mEventCache, &mEventCache[numEventsDropped], in sendEvents()
342 memcpy(&mEventCache[mCacheSize - numEventsDropped], scratch + remaningCacheSize, in sendEvents()
376 if (mEventCache == NULL) { in sendEvents()
378 mEventCache = new sensors_event_t[mMaxCacheSize]; in sendEvents()
381 memcpy(&mEventCache[mCacheSize], scratch, count * sizeof(sensors_event_t)); in sendEvents()
412 memcpy(eventCache_new, mEventCache, mCacheSize * sizeof(sensors_event_t)); in reAllocateCacheLocked()
418 delete mEventCache; in reAllocateCacheLocked()
419 mEventCache = eventCache_new; in reAllocateCacheLocked()
470 findWakeUpSensorEventLocked(mEventCache + numEventsSent, numEventsToWrite); in writeToSocketFromCache()
472 mEventCache[index_wake_up_event + numEventsSent].flags |= in writeToSocketFromCache()
482 reinterpret_cast<ASensorEvent const*>(mEventCache + numEventsSent), in writeToSocketFromCache()
487 mEventCache[index_wake_up_event + numEventsSent].flags &= in writeToSocketFromCache()
496 memmove(mEventCache, &mEventCache[numEventsSent], in writeToSocketFromCache()