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

123

/frameworks/base/libs/hwui/
H A DFboCache.cpp41 return mCache.size();
53 for (size_t i = 0; i < mCache.size(); i++) {
54 const GLuint fbo = mCache.itemAt(i);
57 mCache.clear();
62 if (mCache.size() > 0) {
63 fbo = mCache.itemAt(mCache.size() - 1);
64 mCache.removeAt(mCache.size() - 1);
72 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", i, mCache->keyAt(i),
36 mCache->valueAt(i));
37 ALOGD(" ResourceCache: mCache(%zu): refCount, destroyed, type = %d, %d, %d", i,
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.cpp96 for (auto entry : mCache) {
99 mCache.clear();
106 auto iter = mCache.find(entry);
108 if (iter != mCache.end()) {
110 mCache.erase(iter);
136 RenderBuffer* victim = mCache.begin()->mBuffer;
138 mCache.erase(mCache.begin());
143 mCache.insert(entry);
H A DTextureCache.cpp37 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity)
41 mCache.setOnEntryRemovedListener(this);
85 LruCache<uint32_t, Texture*>::Iterator iter(mCache);
127 Texture* texture = mCache.get(bitmap->getStableID());
138 Texture* oldest = mCache.peekOldestValue();
140 mCache.removeOldest();
154 mCache.put(bitmap->getStableID(), texture);
199 return mCache.remove(pixelRefStableID);
203 mCache.clear();
212 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/utils/
H A DRotationCacheTest.java45 private RotationCache<Object, Pair<Object, Integer>> mCache; field in class:RotationCacheTest
51 mCache = new RotationCache<>((o, rot) -> {
59 assertThat(mCache.getOrCompute("hello", 0), equalTo(create("hello", 0)));
60 assertThat(mCache.getOrCompute("hello", 1), equalTo(create("hello", 1)));
61 assertThat(mCache.getOrCompute("hello", 2), equalTo(create("hello", 2)));
62 assertThat(mCache.getOrCompute("hello", 3), equalTo(create("hello", 3)));
67 assertNotNull(mCache.getOrCompute("hello", 1));
70 assertThat(mCache.getOrCompute("hello", 1), equalTo(create("hello", 1)));
76 assertNotNull(mCache.getOrCompute("hello", 3));
77 assertNotNull(mCache
[all...]
/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/ml/nn/driver/cache/nnCache/
H A DnnCache_test.cpp43 mCache = NNCache::get();
47 mCache->setCacheFilename("");
48 mCache->terminate();
51 NNCache* mCache; member in class:android::NNCacheTest
66 mCache->setBlob("abcd", 4, "efgh", 4);
67 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4));
76 mCache->initialize(maxKeySize, maxValueSize, maxTotalSize, GetParam());
77 mCache->setBlob("abcd", 4, "efgh", 4);
78 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4));
87 mCache
[all...]
/frameworks/base/services/core/java/com/android/server/wm/utils/
H A DRotationCache.java34 private final SparseArray<R> mCache = new SparseArray<>(4); field in class:RotationCache
50 mCache.clear();
53 final int idx = mCache.indexOfKey(rotation);
55 return mCache.valueAt(idx);
58 mCache.put(rotation, result);
/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/shared/src/com/android/systemui/shared/recents/model/
H A DTaskKeyStrongCache.java32 private final ArrayMap<Integer, V> mCache = new ArrayMap<>(); field in class:TaskKeyStrongCache
37 put(key, other.mCache.get(key.id));
54 return mCache.get(id);
59 mCache.put(id, value);
64 mCache.remove(id);
69 mCache.clear();
H A DTaskKeyLruCache.java39 private final LruCache<Integer, V> mCache; field in class:TaskKeyLruCache
48 mCache = new LruCache<Integer, V>(cacheSize) {
62 mCache.trimToSize(cacheSize);
79 return mCache.get(id);
84 mCache.put(id, value);
89 mCache.remove(id);
94 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/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DAlbumArtCache.java50 private final LruCache<String, Bitmap[]> mCache; field in class:AlbumArtCache
63 mCache = new LruCache<String, Bitmap[]>(maxSize) {
73 Bitmap[] result = mCache.get(artUrl);
78 Bitmap[] result = mCache.get(artUrl);
87 Bitmap[] bitmap = mCache.get(artUrl);
105 mCache.put(artUrl, bitmaps);
109 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DAlbumArtCache.java50 private final LruCache<String, Bitmap[]> mCache; field in class:AlbumArtCache
63 mCache = new LruCache<String, Bitmap[]>(maxSize) {
73 Bitmap[] result = mCache.get(artUrl);
78 Bitmap[] result = mCache.get(artUrl);
87 Bitmap[] bitmap = mCache.get(artUrl);
105 mCache.put(artUrl, bitmaps);
109 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());
/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/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/core/java/android/widget/
H A DRemoteViewsAdapter.java102 private final FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter
268 synchronized (adapter.mCache) {
269 adapter.mCache.reset();
276 synchronized (adapter.mCache.getTemporaryMetaData()) {
277 newCount = adapter.mCache.getTemporaryMetaData().count;
306 final int position = adapter.mCache.getNextIndexToLoad();
357 private final FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter.RemoteViewsFrameLayout
363 mCache = cache;
386 int viewHeight = mCache.getMetaData().getLoadingTemplate(getContext()).defaultHeight;
845 mCache
[all...]
/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/base/services/core/java/com/android/server/locksettings/
H A DLockSettingsStorage.java89 private final Cache mCache = new Cache(); field in class:LockSettingsStorage
205 mCache.putKeyValue(key, value, userId);
214 synchronized (mCache) {
215 if (mCache.hasKeyValue(key, userId)) {
216 return mCache.peekKeyValue(key, defaultValue, userId);
218 version = mCache.getVersion();
233 mCache.putKeyValueIfUnchanged(key, result, userId, version);
239 synchronized (mCache) {
240 if (mCache.isFetched(userId)) {
243 mCache
789 private final ArrayMap<CacheKey, Object> mCache = new ArrayMap<>(); field in class:LockSettingsStorage.Cache
[all...]

Completed in 4505 milliseconds

123