Home
last modified time | relevance | path

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

/frameworks/native/services/sensorservice/
DSensorEventConnection.cpp34 mDead(false), mDataInjectionMode(isDataInjectionMode), mEventCache(nullptr), in SensorEventConnection()
59 if (mEventCache != nullptr) { in destroy()
60 delete[] mEventCache; in destroy()
358 if (mEventCache == nullptr) { in sendEvents()
360 mEventCache = new sensors_event_t[mMaxCacheSize]; in sendEvents()
406 memcpy(eventCache_new, mEventCache, mCacheSize * sizeof(sensors_event_t)); in reAllocateCacheLocked()
412 delete[] mEventCache; in reAllocateCacheLocked()
413 mEventCache = eventCache_new; in reAllocateCacheLocked()
424 memcpy(&mEventCache[mCacheSize], events, count * sizeof(sensors_event_t)); in appendEventsToCacheLocked()
455 countFlushCompleteEventsLocked(mEventCache, cachedEventsToDrop); in appendEventsToCacheLocked()
[all …]
DSensorEventConnection.h174 sensors_event_t *mEventCache; variable