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

12

/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DMultiUserAvatarCache.java25 private final HashMap<Integer, Drawable> mCache; field in class:MultiUserAvatarCache
28 mCache = new HashMap<Integer, Drawable>();
32 mCache.remove(userId);
36 return mCache.get(userId);
40 mCache.put(userId, image);
/frameworks/native/opengl/tests/EGLTest/
H A Degl_cache_test.cpp32 mCache = egl_cache_t::get();
36 mCache->setCacheFilename("");
37 mCache->terminate();
40 egl_cache_t* mCache; member in class:android::EGLCacheTest
45 mCache->setBlob("abcd", 4, "efgh", 4);
46 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4));
55 mCache->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY));
56 mCache->setBlob("abcd", 4, "efgh", 4);
57 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4));
66 mCache
[all...]
/frameworks/base/libs/hwui/
H A DFboCache.cpp51 return mCache.size();
63 for (size_t i = 0; i < mCache.size(); i++) {
64 const GLuint fbo = mCache.itemAt(i);
67 mCache.clear();
72 if (mCache.size() > 0) {
73 fbo = mCache.itemAt(mCache.size() - 1);
74 mCache.removeAt(mCache.size() - 1);
82 if (mCache
[all...]
H A DRenderBufferCache.cpp103 size_t count = mCache.size();
105 deleteBuffer(mCache.itemAt(i).mBuffer);
107 mCache.clear();
114 ssize_t index = mCache.indexOf(entry);
117 entry = mCache.itemAt(index);
118 mCache.removeAt(index);
146 RenderBuffer* victim = mCache.itemAt(position).mBuffer;
148 mCache.removeAt(position);
153 mCache.add(entry);
H A DResourceCache.cpp32 for (size_t i = 0; i < mCache->size(); ++i) {
33 ResourceReference* ref = mCache->valueAt(i);
34 ALOGD(" ResourceCache: mCache(%d): resource, ref = 0x%p, 0x%p",
35 i, mCache->keyAt(i), mCache->valueAt(i));
36 ALOGD(" ResourceCache: mCache(%d): refCount, recycled, destroyed, type = %d, %d, %d, %d",
43 mCache = new KeyedVector<void*, ResourceReference*>();
48 delete mCache;
93 ssize_t index = mCache->indexOfKey(resource);
94 ResourceReference* ref = index >= 0 ? mCache
[all...]
H A DLayerCache.cpp87 size_t count = mCache.size();
89 deleteLayer(mCache.itemAt(i).mLayer);
91 mCache.clear();
98 ssize_t index = mCache.indexOf(entry);
101 entry = mCache.itemAt(index);
102 mCache.removeAt(index);
131 size_t size = mCache.size();
133 const LayerEntry& entry = mCache.itemAt(i);
148 position = mCache.size() - 1;
150 Layer* victim = mCache
[all...]
H A DFboCache.h72 SortedVector<GLuint> mCache; member in class:android::uirenderer::FboCache
H A DTextureCache.cpp37 mCache(LruCache<SkBitmap*, Texture*>::kUnlimitedCapacity),
61 mCache(LruCache<SkBitmap*, Texture*>::kUnlimitedCapacity),
67 mCache.clear();
71 mCache.setOnEntryRemovedListener(this);
94 mCache.removeOldest();
125 Texture* texture = mCache.get(bitmap);
138 mCache.removeOldest();
153 mCache.put(bitmap, texture);
175 mCache.remove(bitmap);
187 mCache
[all...]
H A DTextDropShadowCache.cpp98 mCache(LruCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity),
113 mCache(LruCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity),
119 mCache.clear();
123 mCache.setOnEntryRemovedListener(this);
142 mCache.removeOldest();
168 mCache.clear();
174 ShadowTexture* texture = mCache.get(entry);
202 mCache.removeOldest();
226 mCache.put(entry, texture);
H A DGradientCache.cpp66 mCache(LruCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity),
78 mCache.setOnEntryRemovedListener(this);
86 mCache(LruCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity),
88 mCache.setOnEntryRemovedListener(this);
92 mCache.clear();
110 mCache.removeOldest();
134 Texture* texture = mCache.get(gradient);
144 mCache.clear();
185 mCache.removeOldest();
191 mCache
[all...]
H A DPatchCache.cpp34 mSize(0), mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity),
95 LruCache<PatchDescription, Patch*>::Iterator i(mCache);
99 mCache.clear();
111 LruCache<PatchDescription, Patch*>::Iterator i(mCache);
150 mCache.remove(*pair.getFirst());
229 const Patch* mesh = mCache.get(description);
252 mCache.put(description, newMesh);
H A DPathCache.cpp157 mCache(LruCache<PathDescription, PathTexture*>::kUnlimitedCapacity),
170 mCache.clear();
174 mCache.setOnEntryRemovedListener(this);
198 mCache.removeOldest();
252 mCache.removeOldest();
259 mCache.removeOldest();
298 mCache.put(entry, texture);
311 mCache.clear();
374 LruCache<PathDescription, PathTexture*>::Iterator i(mCache);
404 mCache
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DScriptIntrinsicLUT.java30 private final byte mCache[] = new byte[1024]; field in class:ScriptIntrinsicLUT
37 mCache[ct] = (byte)ct;
38 mCache[ct + 256] = (byte)ct;
39 mCache[ct + 512] = (byte)ct;
40 mCache[ct + 768] = (byte)ct;
79 mCache[index] = (byte)value;
91 mCache[index+256] = (byte)value;
103 mCache[index+512] = (byte)value;
115 mCache[index+768] = (byte)value;
130 mTables.copyFromUnchecked(mCache);
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicLUT.java30 private final byte mCache[] = new byte[1024]; field in class:ScriptIntrinsicLUT
58 si.mCache[ct] = (byte)ct;
59 si.mCache[ct + 256] = (byte)ct;
60 si.mCache[ct + 512] = (byte)ct;
61 si.mCache[ct + 768] = (byte)ct;
85 mCache[index] = (byte)value;
97 mCache[index+256] = (byte)value;
109 mCache[index+512] = (byte)value;
121 mCache[index+768] = (byte)value;
136 mTables.copyFromUnchecked(mCache);
[all...]
/frameworks/volley/src/com/android/volley/toolbox/
H A DClearCacheRequest.java31 private final Cache mCache; field in class:ClearCacheRequest
42 mCache = cache;
49 mCache.clear();
/frameworks/volley/tests/src/com/android/volley/
H A DNetworkDispatcherTest.java37 private MockCache mCache; field in class:NetworkDispatcherTest
50 mCache = new MockCache();
52 mDispatcher = new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery);
88 assertFalse(mCache.putCalled);
97 assertTrue(mCache.putCalled);
98 assertNotNull(mCache.entryPut);
99 assertTrue(Arrays.equals(mCache.entryPut.data, CANNED_DATA));
100 assertEquals("bananaphone", mCache.keyPut);
H A DCacheDispatcherTest.java35 private MockCache mCache; field in class:CacheDispatcherTest
47 mCache = new MockCache();
52 mDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery);
68 assertFalse(mCache.getCalled);
85 mCache.setEntryToReturn(entry);
95 mCache.setEntryToReturn(entry);
108 mCache.setEntryToReturn(entry);
/frameworks/volley/src/com/android/volley/
H A DCacheDispatcher.java44 private final Cache mCache; field in class:CacheDispatcher
66 mCache = cache;
85 mCache.initialize();
101 Cache.Entry entry = mCache.get(request.getCacheKey());
H A DNetworkDispatcher.java40 private final Cache mCache; field in class:NetworkDispatcher
60 mCache = cache;
122 mCache.put(request.getCacheKey(), response.cacheEntry);
H A DRequestQueue.java76 private final Cache mCache; field in class:RequestQueue
100 mCache = cache;
134 mCacheDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery);
140 mCache, mDelivery);
171 return mCache;
/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java81 private FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter
241 synchronized (adapter.mCache) {
242 adapter.mCache.commitTemporaryMetaData();
864 mCache = sCachedRemoteViewsCaches.get(key);
865 synchronized (mCache.mMetaData) {
866 if (mCache.mMetaData.count > 0) {
873 mCache = new FixedSizeRemoteViewsCache(sDefaultCacheSize);
922 synchronized (mCache.mMetaData) {
923 metaDataCount = mCache.mMetaData.count;
925 synchronized (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.cpp187 mCache(new PageCache(kPageSize)),
226 delete mCache;
227 mCache = NULL;
297 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize());
314 PageCache::Page *page = mCache->acquirePage();
317 mCacheOffset + mCache->totalSize(), page->mData, kPageSize);
330 mCache->releasePage(page);
337 mCache->releasePage(page);
346 mCache->appendPage(page);
373 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/base/core/java/android/emoji/
H A DEmojiFactory.java60 private Map<Integer, WeakReference<Bitmap>> mCache; field in class:EmojiFactory
74 mCache = new CustomLinkedHashMap<Integer, WeakReference<Bitmap>>();
102 WeakReference<Bitmap> cache = mCache.get(pua);
109 mCache.put(pua, new WeakReference<Bitmap>(ret));
116 mCache.put(pua, new WeakReference<Bitmap>(ret));

Completed in 449 milliseconds

12