/frameworks/native/opengl/tests/EGLTest/ |
D | egl_cache_test.cpp | 32 mCache = egl_cache_t::get(); in SetUp() 36 mCache->setCacheFilename(""); in TearDown() 37 mCache->terminate(); in TearDown() 40 egl_cache_t* mCache; member in android::EGLCacheTest 45 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_F() 46 ASSERT_EQ(0, mCache->getBlob("abcd", 4, buf, 4)); in TEST_F() 55 mCache->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY)); in TEST_F() 56 mCache->setBlob("abcd", 4, "efgh", 4); in TEST_F() 57 ASSERT_EQ(4, mCache->getBlob("abcd", 4, buf, 4)); in TEST_F() 66 mCache->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY)); in TEST_F() [all …]
|
/frameworks/base/libs/hwui/ |
D | ResourceCache.cpp | 30 for (size_t i = 0; i < mCache->size(); ++i) { in logCache() 31 ResourceReference* ref = mCache->valueAt(i); in logCache() 33 i, mCache->keyAt(i), mCache->valueAt(i)); in logCache() 41 mCache = new KeyedVector<void *, ResourceReference *>(); in ResourceCache() 46 delete mCache; in ~ResourceCache() 51 ResourceReference* ref = mCache->indexOfKey(resource) >= 0 ? mCache->valueFor(resource) : NULL; in incrementRefcount() 52 if (ref == NULL || mCache->size() == 0) { in incrementRefcount() 54 mCache->add(resource, ref); in incrementRefcount() 81 ResourceReference* ref = mCache->indexOfKey(resource) >= 0 ? mCache->valueFor(resource) : NULL; in decrementRefcount() 114 if (mCache->indexOfKey(resource) < 0) { in recycle() [all …]
|
D | FboCache.cpp | 51 return mCache.size(); in getSize() 63 for (size_t i = 0; i < mCache.size(); i++) { in clear() 64 const GLuint fbo = mCache.itemAt(i); in clear() 67 mCache.clear(); in clear() 72 if (mCache.size() > 0) { in get() 73 fbo = mCache.itemAt(mCache.size() - 1); in get() 74 mCache.removeAt(mCache.size() - 1); in get() 82 if (mCache.size() < mMaxSize) { in put() 83 mCache.add(fbo); in put()
|
D | PatchCache.cpp | 46 size_t count = mCache.size(); in clear() 48 delete mCache.valueAt(i); in clear() 50 mCache.clear(); in clear() 78 ssize_t index = mCache.indexOfKey(description); in get() 81 mesh = mCache.valueAt(index); in get() 94 if (mCache.size() >= mMaxEntries) { in get() 95 delete mCache.valueAt(mCache.size() - 1); in get() 96 mCache.removeItemsAt(mCache.size() - 1, 1); in get() 99 mCache.add(description, mesh); in get()
|
D | LayerCache.cpp | 85 size_t count = mCache.size(); in clear() 87 deleteLayer(mCache.itemAt(i).mLayer); in clear() 89 mCache.clear(); in clear() 96 ssize_t index = mCache.indexOf(entry); in get() 99 entry = mCache.itemAt(index); in get() 100 mCache.removeAt(index); in get() 129 size_t size = mCache.size(); in dump() 131 const LayerEntry& entry = mCache.itemAt(i); in dump() 171 position = mCache.size() - 1; in put() 173 Layer* victim = mCache.itemAt(position).mLayer; in put() [all …]
|
D | TextDropShadowCache.cpp | 31 mCache(GenerationCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity), in TextDropShadowCache() 46 mCache(GenerationCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity), in TextDropShadowCache() 52 mCache.clear(); in ~TextDropShadowCache() 56 mCache.setOnEntryRemovedListener(this); in init() 75 mCache.removeOldest(); in setMaxSize() 101 mCache.clear(); in clear() 107 ShadowTexture* texture = mCache.get(entry); in get() 127 mCache.removeOldest(); in get() 151 mCache.put(entry, texture); in get()
|
D | GradientCache.cpp | 38 mCache(GenerationCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity), in GradientCache() 48 mCache.setOnEntryRemovedListener(this); in GradientCache() 52 mCache(GenerationCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity), in GradientCache() 54 mCache.setOnEntryRemovedListener(this); in GradientCache() 58 mCache.clear(); in ~GradientCache() 76 mCache.removeOldest(); in setMaxSize() 104 Texture* texture = mCache.get(gradient); in get() 114 mCache.clear(); in clear() 142 mCache.removeOldest(); in addLinearGradient() 149 mCache.put(gradient, texture); in addLinearGradient()
|
D | PathCache.cpp | 60 for (size_t i = 0; i < mCache.size(); i++) { in remove() 61 if (mCache.getKeyAt(i).path == path) { in remove() 63 removeTexture(mCache.getValueAt(i)); in remove() 67 mCache.setOnEntryRemovedListener(NULL); in remove() 71 mCache.removeAt(pathsToRemove.itemAt(i) - i); in remove() 73 mCache.setOnEntryRemovedListener(this); in remove() 97 PathTexture* texture = mCache.get(entry); in get() 105 mCache.remove(entry); in get()
|
D | TextureCache.cpp | 36 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity), in TextureCache() 60 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity), in TextureCache() 66 mCache.clear(); in ~TextureCache() 70 mCache.setOnEntryRemovedListener(this); in init() 93 mCache.removeOldest(); in setMaxSize() 124 Texture* texture = mCache.get(bitmap); in get() 137 mCache.removeOldest(); in get() 152 mCache.put(bitmap, texture); in get() 174 mCache.remove(bitmap); in remove() 186 mCache.remove(mGarbage.itemAt(i)); in clearGarbage() [all …]
|
D | ShapeCache.h | 354 return mCache.get(entry); in get() 359 GenerationCache<Entry, PathTexture*> mCache; variable 418 mCache(GenerationCache<ShapeCacheEntry, PathTexture*>::kUnlimitedCapacity), in ShapeCache() 438 mCache.clear(); in ~ShapeCache() 444 mCache.setOnEntryRemovedListener(this); in init() 471 mCache.removeOldest(); in setMaxSize() 528 mCache.removeOldest(); in purgeCache() 603 mCache.put(entry, texture); in addTexture() 611 mCache.clear(); in clear()
|
D | ProgramCache.cpp | 362 size_t count = mCache.size(); in clear() 364 delete mCache.valueAt(i); in clear() 366 mCache.clear(); in clear() 371 ssize_t index = mCache.indexOfKey(key); in get() 376 mCache.add(key, program); in get() 378 program = mCache.valueAt(index); in get()
|
D | PatchCache.h | 57 return mCache.size(); in getSize() 115 KeyedVector<PatchDescription, Patch*> mCache; variable
|
/frameworks/native/include/utils/ |
D | GenerationCache.h | 81 KeyedVector<K, sp<Entry<K, V> > > mCache; 107 return mCache.size(); in size() 122 for (uint32_t i = 0; i < mCache.size(); i++) { in clear() 123 sp<Entry<K, V> > entry = mCache.valueAt(i); in clear() 129 mCache.clear(); in clear() 136 return mCache.indexOfKey(key) >= 0; in contains() 141 return mCache.keyAt(index); in getKeyAt() 146 return mCache.valueAt(index)->value; in getValueAt() 151 ssize_t index = mCache.indexOfKey(key); in get() 153 const sp<Entry<K, V> >& entry = mCache.valueAt(index); in get() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | RemoteViewsAdapter.java | 70 private FixedSizeRemoteViewsCache mCache; field in RemoteViewsAdapter 192 synchronized (adapter.mCache) { in onServiceConnected() 193 adapter.mCache.commitTemporaryMetaData(); in onServiceConnected() 400 synchronized (mCache) { in createLoadingView() 741 mCache = new FixedSizeRemoteViewsCache(sDefaultCacheSize); in RemoteViewsAdapter() 766 synchronized (mCache) { in loadNextIndexInBackground() 767 int[] res = mCache.getNextIndexToLoad(); in loadNextIndexInBackground() 791 final RemoteViewsMetaData metaData = mCache.getMetaData(); in processException() 795 synchronized (mCache) { in processException() 796 mCache.reset(); in processException() [all …]
|
/frameworks/av/media/libstagefright/ |
D | NuCachedSource2.cpp | 187 mCache(new PageCache(kPageSize)), in NuCachedSource2() 226 delete mCache; in ~NuCachedSource2() 227 mCache = NULL; in ~NuCachedSource2() 297 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize()); in fetchInternal() 312 PageCache::Page *page = mCache->acquirePage(); in fetchInternal() 315 mCacheOffset + mCache->totalSize(), page->mData, kPageSize); in fetchInternal() 322 mCache->releasePage(page); in fetchInternal() 329 mCache->releasePage(page); in fetchInternal() 338 mCache->appendPage(page); in fetchInternal() 365 if (mFetching && mCache->totalSize() >= mHighwaterThresholdBytes) { in onFetch() [all …]
|
/frameworks/support/volley/tests/src/com/android/volley/ |
D | NetworkDispatcherTest.java | 37 private MockCache mCache; field in NetworkDispatcherTest 50 mCache = new MockCache(); in setUp() 52 mDispatcher = new NetworkDispatcher(mNetworkQueue, mNetwork, mCache, mDelivery); in setUp() 88 assertFalse(mCache.putCalled); in test_shouldCacheFalse() 97 assertTrue(mCache.putCalled); in test_shouldCacheTrue() 98 assertNotNull(mCache.entryPut); in test_shouldCacheTrue() 99 assertTrue(Arrays.equals(mCache.entryPut.data, CANNED_DATA)); in test_shouldCacheTrue() 100 assertEquals("bananaphone", mCache.keyPut); in test_shouldCacheTrue()
|
D | CacheDispatcherTest.java | 35 private MockCache mCache; field in CacheDispatcherTest 47 mCache = new MockCache(); in setUp() 52 mDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery); in setUp() 68 assertFalse(mCache.getCalled); in testCancelledRequest() 85 mCache.setEntryToReturn(entry); in testNonExpiredCacheHit() 95 mCache.setEntryToReturn(entry); in testSoftExpiredCacheHit() 108 mCache.setEntryToReturn(entry); in testExpiredCacheHit()
|
/frameworks/native/libs/binder/ |
D | PermissionCache.cpp | 43 ssize_t index = mCache.indexOf(e); in check() 45 *granted = mCache.itemAt(index).granted; in check() 66 index = mCache.indexOf(e); in cache() 68 mCache.add(e); in cache() 74 mCache.clear(); in purge()
|
/frameworks/support/volley/src/com/android/volley/ |
D | CacheDispatcher.java | 42 private final Cache mCache; field in CacheDispatcher 64 mCache = cache; in CacheDispatcher() 82 mCache.initialize(); in run() 98 Cache.Entry entry = mCache.get(request.getCacheKey()); in run()
|
D | NetworkDispatcher.java | 36 private final Cache mCache; field in NetworkDispatcher 56 mCache = cache; in NetworkDispatcher() 112 mCache.put(request.getCacheKey(), response.cacheEntry); in run()
|
D | RequestQueue.java | 78 private final Cache mCache; field in RequestQueue 102 mCache = cache; in RequestQueue() 136 mCacheDispatcher = new CacheDispatcher(mCacheQueue, mNetworkQueue, mCache, mDelivery); in start() 142 mCache, mDelivery); in start()
|
/frameworks/support/volley/src/com/android/volley/toolbox/ |
D | ClearCacheRequest.java | 31 private final Cache mCache; field in ClearCacheRequest 42 mCache = cache; in ClearCacheRequest() 49 mCache.clear(); in isCanceled()
|
/frameworks/base/core/java/android/emoji/ |
D | EmojiFactory.java | 60 private Map<Integer, WeakReference<Bitmap>> mCache; field in EmojiFactory 74 mCache = new CustomLinkedHashMap<Integer, WeakReference<Bitmap>>(); in EmojiFactory() 102 WeakReference<Bitmap> cache = mCache.get(pua); in getBitmapFromAndroidPua() 109 mCache.put(pua, new WeakReference<Bitmap>(ret)); in getBitmapFromAndroidPua() 116 mCache.put(pua, new WeakReference<Bitmap>(ret)); in getBitmapFromAndroidPua()
|
/frameworks/base/core/jni/android/graphics/ |
D | TextLayoutCache.cpp | 48 mCache(GenerationCache<TextLayoutCacheKey, sp<TextLayoutValue> >::kUnlimitedCapacity), in TextLayoutCache() 55 mCache.clear(); in ~TextLayoutCache() 59 mCache.setOnEntryRemovedListener(this); in init() 89 mCache.clear(); in clear() 107 sp<TextLayoutValue> value = mCache.get(key); in getValue() 136 bool removedOne = mCache.removeOldest(); in getValue() 140 mSize, size, mMaxSize, mCache.size()); in getValue() 150 bool putOne = mCache.put(key, value); in getValue() 211 size_t cacheSize = mCache.size(); in dumpCacheStats() 213 bytes += mCache.getKeyAt(i).getSize() + mCache.getValueAt(i)->getSize(); in dumpCacheStats()
|
/frameworks/base/libs/androidfw/ |
D | AssetManager.cpp | 891 if (mCache.indexOf(excludeName) != NAME_NOT_FOUND) { in openInLocaleVendorLocked() 901 if (mCache.indexOf(path) != NAME_NOT_FOUND) { in openInLocaleVendorLocked() 1254 start = mCache.indexOf(path); in scanAndMergeDirLocked() 1268 count = mCache.size(); in scanAndMergeDirLocked() 1276 if (mCache[i].getFileName().length() > path.length() && in scanAndMergeDirLocked() 1277 strncmp(mCache[i].getFileName().string(), path.string(), path.length()) == 0) in scanAndMergeDirLocked() 1279 const char* name = mCache[i].getFileName().string(); in scanAndMergeDirLocked() 1284 AssetDir::FileInfo tmp = mCache[i]; in scanAndMergeDirLocked() 1644 assert(mCache.size() == 0); in loadFileNameCacheLocked() 1651 fncScanLocked(&mCache, ""); in loadFileNameCacheLocked() [all …]
|