Searched refs:mCache (Results 1 - 25 of 72) sorted by relevance

123

/frameworks/base/libs/hwui/
H A DFboCache.cpp42 return mCache.size();
54 for (size_t i = 0; i < mCache.size(); i++) {
55 const GLuint fbo = mCache.itemAt(i);
58 mCache.clear();
63 if (mCache.size() > 0) {
64 fbo = mCache.itemAt(mCache.size() - 1);
65 mCache.removeAt(mCache.size() - 1);
73 if (mCache
[all...]
H A DResourceCache.cpp33 for (size_t i = 0; i < mCache->size(); ++i) {
34 ResourceReference* ref = mCache->valueAt(i);
35 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p",
36 i, mCache->keyAt(i), mCache->valueAt(i));
37 ALOGD(" ResourceCache: mCache(%zu): refCount, destroyed, type = %d, %d, %d",
44 mCache = new KeyedVector<const void*, ResourceReference*>();
49 delete mCache;
70 ssize_t index = mCache->indexOfKey(resource);
71 ResourceReference* ref = index >= 0 ? mCache
[all...]
H A DRenderBufferCache.cpp91 for (auto entry : mCache) {
94 mCache.clear();
101 auto iter = mCache.find(entry);
103 if (iter != mCache.end()) {
105 mCache.erase(iter);
131 RenderBuffer* victim = mCache.begin()->mBuffer;
133 mCache.erase(mCache.begin());
138 mCache.insert(entry);
H A DTextureCache.cpp36 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity)
40 mCache.setOnEntryRemovedListener(this);
87 LruCache<uint32_t, Texture*>::Iterator iter(mCache);
129 Texture* texture = mCache.get(bitmap->getStableID());
140 Texture* oldest = mCache.peekOldestValue();
142 mCache.removeOldest();
156 mCache.put(bitmap->getStableID(), texture);
201 return mCache.remove(pixelRefStableID);
205 mCache.clear();
214 if (mFlushRate >= 1.0f || mCache
[all...]
H A DFboCache.h72 SortedVector<GLuint> mCache; member in class:android::uirenderer::FboCache
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DTaskSnapshotCacheTest.java41 private TaskSnapshotCache mCache; field in class:TaskSnapshotCacheTest
46 mCache = new TaskSnapshotCache(sWm, mLoader);
52 mCache.putSnapshot(window.getTask(), createSnapshot());
53 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */,
55 mCache.onAppRemoved(window.mAppToken);
56 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */,
63 mCache.putSnapshot(window.getTask(), createSnapshot());
64 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */,
66 mCache.onAppDied(window.mAppToken);
67 assertNull(mCache
[all...]
/frameworks/native/opengl/tests/EGLTest/
H A Degl_cache_test.cpp36 mCache = egl_cache_t::get();
40 mCache->setCacheFilename("");
41 mCache->terminate();
44 egl_cache_t* mCache; member in class:android::EGLCacheTest
49 mCache->setBlob("abcd", 4, "efgh", 4);
50 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4));
59 mCache->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY));
60 mCache->setBlob("abcd", 4, "efgh", 4);
61 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4));
70 mCache
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicLUT.java28 private final byte mCache[] = new byte[1024]; field in class:ScriptIntrinsicLUT
35 mCache[ct] = (byte)ct;
36 mCache[ct + 256] = (byte)ct;
37 mCache[ct + 512] = (byte)ct;
38 mCache[ct + 768] = (byte)ct;
81 mCache[index] = (byte)value;
93 mCache[index+256] = (byte)value;
105 mCache[index+512] = (byte)value;
117 mCache[index+768] = (byte)value;
143 mTables.copyFromUnchecked(mCache);
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
H A DAnqpCacheTest.java46 AnqpCache mCache; field in class:AnqpCacheTest
56 mCache = new AnqpCache(mClock);
66 mCache.addEntry(ENTRY_KEY, null);
67 ANQPData data = mCache.getEntry(ENTRY_KEY);
79 assertNull(mCache.getEntry(ENTRY_KEY));
89 mCache.addEntry(ENTRY_KEY, null);
94 mCache.sweep();
95 assertNotNull(mCache.getEntry(ENTRY_KEY));
99 mCache.sweep();
100 assertNull(mCache
[all...]
/frameworks/rs/support/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicLUT.java30 private final byte mCache[] = new byte[1024]; field in class:ScriptIntrinsicLUT
60 si.mCache[ct] = (byte)ct;
61 si.mCache[ct + 256] = (byte)ct;
62 si.mCache[ct + 512] = (byte)ct;
63 si.mCache[ct + 768] = (byte)ct;
87 mCache[index] = (byte)value;
99 mCache[index+256] = (byte)value;
111 mCache[index+512] = (byte)value;
123 mCache[index+768] = (byte)value;
138 mTables.copyFromUnchecked(mCache);
[all...]
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DConfigurationBoundResourceCacheTest.java30 ConfigurationBoundResourceCache<Float> mCache; field in class:ConfigurationBoundResourceCacheTest
39 mCache = new ConfigurationBoundResourceCache<>();
45 assertNull(mCache.getInstance(-1, res, null));
50 mCache.put(1, null, new DummyFloatConstantState(5f));
52 assertEquals(5f, mCache.getInstance(1, res, null));
53 assertNotSame(5f, mCache.getInstance(1, res, null));
54 assertEquals(null, mCache.getInstance(1, res, getActivity().getTheme()));
59 mCache.put(1, getActivity().getTheme(), new DummyFloatConstantState(5f));
61 assertEquals(null, mCache.getInstance(1, res, null));
62 assertEquals(5f, mCache
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTaskKeyStrongCache.java34 private final ArrayMap<Integer, V> mCache = new ArrayMap<>(); field in class:TaskKeyStrongCache
39 put(key, other.mCache.get(key.id));
56 return mCache.get(id);
61 mCache.put(id, value);
66 mCache.remove(id);
71 mCache.clear();
H A DTaskKeyLruCache.java37 private final LruCache<Integer, V> mCache; field in class:TaskKeyLruCache
46 mCache = new LruCache<Integer, V>(cacheSize) {
60 mCache.trimToSize(cacheSize);
77 return mCache.get(id);
82 mCache.put(id, value);
87 mCache.remove(id);
92 mCache.evictAll();
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecMessageCache.java39 private final SparseArray<SparseArray<HdmiCecMessage>> mCache = new SparseArray<>(); field in class:HdmiCecMessageCache
54 SparseArray<HdmiCecMessage> messages = mCache.get(address);
68 mCache.remove(address);
75 mCache.clear();
91 SparseArray<HdmiCecMessage> messages = mCache.get(source);
94 mCache.put(source, messages);
/frameworks/minikin/libs/minikin/
H A DHbFontCache.cpp34 HbFontCache() : mCache(kMaxEntries) {
35 mCache.setOnEntryRemovedListener(this);
44 return mCache.get(fontId);
48 mCache.put(fontId, font);
52 mCache.clear();
56 mCache.remove(fontId);
62 android::LruCache<int32_t, hb_font_t*> mCache; member in class:minikin::HbFontCache
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DAlbumArtCache.java49 private final LruCache<String, Bitmap[]> mCache; field in class:AlbumArtCache
62 mCache = new LruCache<String, Bitmap[]>(maxSize) {
72 Bitmap[] result = mCache.get(artUrl);
77 Bitmap[] result = mCache.get(artUrl);
86 Bitmap[] bitmap = mCache.get(artUrl);
104 mCache.put(artUrl, bitmaps);
108 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
H A DAlbumArtCache.java49 private final LruCache<String, Bitmap[]> mCache; field in class:AlbumArtCache
62 mCache = new LruCache<String, Bitmap[]>(maxSize) {
72 Bitmap[] result = mCache.get(artUrl);
77 Bitmap[] result = mCache.get(artUrl);
86 Bitmap[] bitmap = mCache.get(artUrl);
104 mCache.put(artUrl, bitmaps);
108 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java76 private final Cache mCache = new Cache(); field in class:LockSettingsStorage
150 mCache.putKeyValue(key, value, userId);
159 synchronized (mCache) {
160 if (mCache.hasKeyValue(key, userId)) {
161 return mCache.peekKeyValue(key, defaultValue, userId);
163 version = mCache.getVersion();
178 mCache.putKeyValueIfUnchanged(key, result, userId, version);
184 synchronized (mCache) {
185 if (mCache.isFetched(userId)) {
188 mCache
589 private final ArrayMap<CacheKey, Object> mCache = new ArrayMap<>(); field in class:LockSettingsStorage.Cache
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DUnrefedPooledCache.java46 private final LinkedHashMap<K, V> mCache; field in class:UnrefedPooledCache
60 mCache = new LinkedHashMap<K, V>(0, 0.75f, true);
74 synchronized (mCache) {
75 V result = mCache.get(key);
95 synchronized (mCache) {
98 prev = mCache.put(key, value);
129 synchronized (mCache) {
132 for (Map.Entry<K, V> entry : mCache.entrySet()) {
155 mCache.remove(eldestUnref.getKey());
175 synchronized (mCache) {
[all...]
/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java82 private final FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter
252 synchronized (adapter.mCache) {
253 adapter.mCache.commitTemporaryMetaData();
310 private final FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter.RemoteViewsFrameLayout
314 mCache = cache;
337 int viewHeight = mCache.getMetaData().getLoadingTemplate(getContext()).defaultHeight;
813 mCache = sCachedRemoteViewsCaches.get(key);
814 synchronized (mCache.mMetaData) {
815 if (mCache.mMetaData.count > 0) {
822 mCache
[all...]
/frameworks/native/libs/binder/
H A DPermissionCache.cpp43 ssize_t index = mCache.indexOf(e);
45 *granted = mCache.itemAt(index).granted;
66 index = mCache.indexOf(e);
68 mCache.add(e);
74 mCache.clear();
/frameworks/av/media/libstagefright/
H A DNuCachedSource2.cpp189 mCache(new PageCache(kPageSize)),
235 delete mCache;
236 mCache = NULL;
339 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize());
360 PageCache::Page *page = mCache->acquirePage();
363 mCacheOffset + mCache->totalSize(), page->mData, kPageSize);
373 mCache->releasePage(page);
383 mCache->releasePage(page);
392 mCache->appendPage(page);
419 if (mFetching && mCache
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameManager.java58 private BackingCache mCache; field in class:FrameManager
294 mCache.setSize(bytes);
303 return mCache.getSize();
380 mCache.clear();
396 mCache = new BackingCacheNone();
399 mCache = new BackingCacheLru();
402 mCache = new BackingCacheLfu();
410 return mCache.fetchBacking(mode, access, dimensions, elemSize);
421 if (!backing.shouldCache() || !mCache.cacheBacking(backing)) {
424 //Log.i("FrameManager", "RM: Now have " + mBackings.size() + " backings (" + mCache
[all...]
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekAsyncDataProvider.java39 // mCache is for the bitmap requested by user
40 final LruCache<Integer, Bitmap> mCache; field in class:PlaybackSeekAsyncDataProvider
42 // estimation. We use a different LruCache so that items in mCache will not be evicted by
75 mCache.put(mIndex, bitmap);
89 mCache = new LruCache<Integer, Bitmap>(cacheSize);
105 Bitmap bitmap = mCache.get(key);
111 mCache.put(key, bitmap);
148 if (mCache.get(key) == null && mPrefetchCache.get(key) == null) {
166 mCache.evictAll();
180 for (Iterator<Integer> it = mCache
[all...]
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DPlaybackSeekAsyncDataProvider.java39 // mCache is for the bitmap requested by user
40 final LruCache<Integer, Bitmap> mCache; field in class:PlaybackSeekAsyncDataProvider
42 // estimation. We use a different LruCache so that items in mCache will not be evicted by
75 mCache.put(mIndex, bitmap);
89 mCache = new LruCache<Integer, Bitmap>(cacheSize);
105 Bitmap bitmap = mCache.get(key);
111 mCache.put(key, bitmap);
148 if (mCache.get(key) == null && mPrefetchCache.get(key) == null) {
166 mCache.evictAll();
180 for (Iterator<Integer> it = mCache
[all...]

Completed in 637 milliseconds

123