/frameworks/base/libs/hwui/ |
H A D | FboCache.cpp | 51 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 D | ResourceCache.cpp | 35 for (size_t i = 0; i < mCache->size(); ++i) { 36 ResourceReference* ref = mCache->valueAt(i); 37 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p", 38 i, mCache->keyAt(i), mCache->valueAt(i)); 39 ALOGD(" ResourceCache: mCache(%zu): refCount, destroyed, type = %d, %d, %d", 46 mCache = new KeyedVector<const void*, ResourceReference*>(); 51 delete mCache; 72 ssize_t index = mCache->indexOfKey(resource); 73 ResourceReference* ref = index >= 0 ? mCache [all...] |
H A D | LayerCache.cpp | 53 return mCache.size(); 92 size_t count = mCache.size(); 94 deleteLayer(mCache.itemAt(i).mLayer); 96 mCache.clear(); 103 ssize_t index = mCache.indexOf(entry); 106 entry = mCache.itemAt(index); 107 mCache.removeAt(index); 134 size_t size = mCache.size(); 136 const LayerEntry& entry = mCache.itemAt(i); 151 position = mCache [all...] |
H A D | RenderBufferCache.cpp | 103 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 D | FboCache.h | 72 SortedVector<GLuint> mCache; member in class:android::uirenderer::FboCache
|
H A D | TextureCache.cpp | 42 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity) 64 mCache.setOnEntryRemovedListener(this); 73 mCache.clear(); 91 mCache.removeOldest(); 126 LruCache<uint32_t, Texture*>::Iterator iter(mCache); 153 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); 164 Texture* oldest = mCache.peekOldestValue(); 166 mCache.removeOldest(); 183 mCache.put(bitmap->pixelRef()->getStableID(), texture); 230 mCache [all...] |
H A D | TextDropShadowCache.cpp | 100 mCache(LruCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity), 115 mCache(LruCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity), 121 mCache.clear(); 125 mCache.setOnEntryRemovedListener(this); 144 mCache.removeOldest(); 170 mCache.clear(); 176 ShadowTexture* texture = mCache.get(entry); 204 mCache.removeOldest(); 228 mCache.put(entry, texture);
|
H A D | PatchCache.cpp | 38 , mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity) 101 LruCache<PatchDescription, Patch*>::Iterator i(mCache); 105 mCache.clear(); 117 LruCache<PatchDescription, Patch*>::Iterator i(mCache); 171 mCache.remove(*pair.getFirst()); 254 const Patch* mesh = mCache.get(description); 269 mCache.put(description, newMesh);
|
/frameworks/native/opengl/tests/EGLTest/ |
H A D | egl_cache_test.cpp | 32 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/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | KeyStoreLruCache.java | 34 LruCache<Integer, V> mCache; field in class:KeyStoreLruCache 37 mCache = new LruCache<Integer, V>(cacheSize) { 48 return mCache.get(key.id); 64 return mCache.get(key.id); 69 mCache.put(key.id, value); 75 mCache.remove(key.id); 81 mCache.evictAll(); 87 return mCache.size(); 92 mCache.resize(cacheSize);
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptIntrinsicLUT.java | 28 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 D | ScriptIntrinsicLUT.java | 30 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 D | ConfigurationBoundResourceCacheTest.java | 30 ConfigurationBoundResourceCache<Float> mCache; field in class:ConfigurationBoundResourceCacheTest 41 mCache = new ConfigurationBoundResourceCache<Float>(getActivity().getResources()); 45 assertNull(mCache.get(-1, null)); 49 mCache.put(1, null, new DummyFloatConstantState(5f)); 50 assertEquals(5f, mCache.get(1, null)); 51 assertNotSame(5f, mCache.get(1, null)); 52 assertEquals(null, mCache.get(1, getActivity().getTheme())); 56 mCache.put(1, getActivity().getTheme(), new DummyFloatConstantState(5f)); 57 assertEquals(null, mCache.get(1, null)); 58 assertEquals(5f, mCache [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiCecMessageCache.java | 39 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 D | ClearCacheRequest.java | 31 private final Cache mCache; field in class:ClearCacheRequest 42 mCache = cache; 49 mCache.clear();
|
/frameworks/volley/src/test/java/com/android/volley/ |
H A D | NetworkDispatcherTest.java | 40 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 D | CacheDispatcherTest.java | 39 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/opt/bitmap/src/com/android/bitmap/ |
H A D | UnrefedPooledCache.java | 46 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 D | CacheDispatcher.java | 43 private final Cache mCache; field in class:CacheDispatcher 65 mCache = cache; 84 mCache.initialize(); 100 Cache.Entry entry = mCache.get(request.getCacheKey());
|
/frameworks/base/core/java/android/widget/ |
H A D | RemoteViewsAdapter.java | 77 private FixedSizeRemoteViewsCache mCache; field in class:RemoteViewsAdapter 232 synchronized (adapter.mCache) { 233 adapter.mCache.commitTemporaryMetaData(); 860 mCache = sCachedRemoteViewsCaches.get(key); 861 synchronized (mCache.mMetaData) { 862 if (mCache.mMetaData.count > 0) { 869 mCache = new FixedSizeRemoteViewsCache(sDefaultCacheSize); 909 synchronized (mCache.mMetaData) { 910 metaDataCount = mCache.mMetaData.count; 912 synchronized (mCache) { [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | LockSettingsStorage.java | 69 private final Cache mCache = new Cache(); field in class:LockSettingsStorage 120 mCache.putKeyValue(key, value, userId); 129 synchronized (mCache) { 130 if (mCache.hasKeyValue(key, userId)) { 131 return mCache.peekKeyValue(key, defaultValue, userId); 133 version = mCache.getVersion(); 148 mCache.putKeyValueIfUnchanged(key, result, userId, version); 154 synchronized (mCache) { 155 if (mCache.isFetched(userId)) { 158 mCache 505 private final ArrayMap<CacheKey, Object> mCache = new ArrayMap<>(); field in class:LockSettingsStorage.Cache [all...] |
/frameworks/native/libs/binder/ |
H A D | PermissionCache.cpp | 43 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 D | NuCachedSource2.cpp | 189 mCache(new PageCache(kPageSize)), 236 delete mCache; 237 mCache = NULL; 328 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize()); 349 PageCache::Page *page = mCache->acquirePage(); 352 mCacheOffset + mCache->totalSize(), page->mData, kPageSize); 362 mCache->releasePage(page); 372 mCache->releasePage(page); 381 mCache->appendPage(page); 408 if (mFetching && mCache [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameManager.java | 58 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 D | EmojiFactory.java | 60 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));
|