Home
last modified time | relevance | path

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

/aosp12/frameworks/native/services/sensorservice/
H A DSensorEventConnection.cpp44 mCacheSize(0), mMaxCacheSize(0), mTimeOfLastEventDrop(0), mEventsDropped(0), in SensorEventConnection()
95 mMaxCacheSize); in dump()
139 proto->write(MAX_CACHE_SIZE, int32_t(mMaxCacheSize)); in dump()
419 mMaxCacheSize = computeMaxCacheSizeLocked(); in sendEvents()
420 mEventCache = new sensors_event_t[mMaxCacheSize]; in sendEvents()
493 mMaxCacheSize = new_cache_size; in reAllocateCacheLocked()
500 } else if (mCacheSize + count <= mMaxCacheSize) { in appendEventsToCacheLocked()
509 int freeSpace = mMaxCacheSize - mCacheSize; in appendEventsToCacheLocked()
515 int newEventsToDrop = std::max(0, count - mMaxCacheSize); in appendEventsToCacheLocked()
518 int eventsToCopy = std::min(mMaxCacheSize, count); in appendEventsToCacheLocked()
[all …]
H A DSensorEventConnection.h183 int mCacheSize, mMaxCacheSize; variable
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
H A DClientCompositionRequestCache.h42 explicit ClientCompositionRequestCache(uint32_t cacheSize) : mMaxCacheSize(cacheSize){}; in ClientCompositionRequestCache()
51 uint32_t mMaxCacheSize;
/aosp12/frameworks/layoutlib/bridge/src/android/util/imagepool/
H A DBucket.java64 public final long mMaxCacheSize; field in Bucket.BucketCreationMetaData
73 mMaxCacheSize = maxCacheSize; in BucketCreationMetaData()
H A DImagePoolHelper.java114 metaData.mWidth, metaData.mHeight, metaData.mMaxCacheSize)) { in populateBucket()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DClientCompositionRequestCache.cpp111 if (mCache.size() >= mMaxCacheSize) { in add()