Searched refs:mCache (Results 1 - 25 of 71) 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 DLayerCache.cpp46 return mCache.size();
85 for (auto entry : mCache) {
88 mCache.clear();
95 auto iter = mCache.find(entry);
97 if (iter != mCache.end()) {
99 mCache.erase(iter);
125 for (auto entry : mCache) {
138 Layer* victim = mCache.begin()->mLayer;
140 mCache.erase(mCache
[all...]
H A DFboCache.h72 SortedVector<GLuint> mCache; member in class:android::uirenderer::FboCache
H A DTextureCache.cpp36 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity)
41 mCache.setOnEntryRemovedListener(this);
50 mCache.clear();
92 LruCache<uint32_t, Texture*>::Iterator iter(mCache);
119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID());
130 Texture* oldest = mCache.peekOldestValue();
132 mCache.removeOldest();
150 mCache.put(bitmap->pixelRef()->getStableID(), texture);
199 mCache.remove(pixelRefId);
205 mCache
[all...]
H A DTextDropShadowCache.cpp100 : mCache(LruCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity)
103 mCache.setOnEntryRemovedListener(this);
108 mCache.clear();
145 mCache.clear();
151 ShadowTexture* texture = mCache.get(entry);
176 LOG_ALWAYS_FATAL_IF(!mCache.removeOldest(),
178 PRIu32 ", mCache.size() = %zu", mSize, mCache.size());
196 mCache.put(entry, texture);
/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/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;
77 mCache[index] = (byte)value;
89 mCache[index+256] = (byte)value;
101 mCache[index+512] = (byte)value;
113 mCache[index+768] = (byte)value;
139 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
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/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/volley/src/main/java/com/android/volley/toolbox/
H A DClearCacheRequest.java31 private final Cache mCache; field in class:ClearCacheRequest
42 mCache = cache;
49 mCache.clear();
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTaskKeyLruCache.java43 private final LruCache<Integer, V> mCache; field in class:TaskKeyLruCache
52 mCache = new LruCache<Integer, V>(cacheSize) {
69 return mCache.get(key.id);
89 return mCache.get(key.id);
99 mCache.put(key.id, value);
105 mCache.remove(key.id);
111 mCache.evictAll();
117 mCache.trimToSize(cacheSize);
/frameworks/volley/src/test/java/com/android/volley/
H A DNetworkDispatcherTest.java40 private MockCache mCache; field in class:NetworkDispatcherTest
50 mCache = new MockCache();
52 mDispatcher = new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery);
86 assertFalse(mCache.putCalled);
95 assertTrue(mCache.putCalled);
96 assertNotNull(mCache.entryPut);
97 assertTrue(Arrays.equals(mCache.entryPut.data, CANNED_DATA));
98 assertEquals("bananaphone", mCache.keyPut);
H A DCacheDispatcherTest.java39 private MockCache mCache; field in class:CacheDispatcherTest
48 mCache = new MockCache();
53 mDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery);
67 assertFalse(mCache.getCalled);
84 mCache.setEntryToReturn(entry);
94 mCache.setEntryToReturn(entry);
107 mCache.setEntryToReturn(entry);
/frameworks/minikin/libs/minikin/
H A DHbFontCache.cpp49 HbFontCache() : mCache(kMaxEntries) {
50 mCache.setOnEntryRemovedListener(this);
59 return mCache.get(fontId);
63 mCache.put(fontId, font);
67 mCache.clear();
71 mCache.remove(fontId);
77 LruCache<int32_t, hb_font_t*> mCache; member in class:android::HbFontCache
/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/volley/src/main/java/com/android/volley/
H A DCacheDispatcher.java43 private final Cache mCache; field in class:CacheDispatcher
65 mCache = cache;
84 mCache.initialize();
100 Cache.Entry entry = mCache.get(request.getCacheKey());
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java72 private final Cache mCache = new Cache(); field in class:LockSettingsStorage
124 mCache.putKeyValue(key, value, userId);
133 synchronized (mCache) {
134 if (mCache.hasKeyValue(key, userId)) {
135 return mCache.peekKeyValue(key, defaultValue, userId);
137 version = mCache.getVersion();
152 mCache.putKeyValueIfUnchanged(key, result, userId, version);
158 synchronized (mCache) {
159 if (mCache.isFetched(userId)) {
162 mCache
530 private final ArrayMap<CacheKey, Object> mCache = new ArrayMap<>(); field in class:LockSettingsStorage.Cache
[all...]
/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java82 private final FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter
234 synchronized (adapter.mCache) {
235 adapter.mCache.commitTemporaryMetaData();
292 private final FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter.RemoteViewsFrameLayout
296 mCache = cache;
311 return mCache.getMetaData().createDefaultLoadingView(this);
815 mCache = sCachedRemoteViewsCaches.get(key);
816 synchronized (mCache.mMetaData) {
817 if (mCache.mMetaData.count > 0) {
824 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/base/packages/Osu/src/com/android/hotspot2/osu/
H A DOSUCache.java34 private final Map<OSUProvider, ScanInstance> mCache = new HashMap<>(); field in class:OSUCache
77 mCache.clear();
122 Map<OSUProvider, ScanInstance> aged = new HashMap<>(mCache);
126 mCache.put(entry.getKey(), new ScanInstance(entry.getValue(), mInstant));
145 mCache.remove(entry.getKey());
155 Map<OSUProvider, ScanResult> results = new HashMap<>(mCache.size());
156 for (Map.Entry<OSUProvider, ScanInstance> entry : mCache.entrySet()) {
/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...]

Completed in 8601 milliseconds

123