/packages/apps/Dialer/tests/src/com/android/dialer/util/ |
ExpirableCacheTest.java | 31 private ExpirableCache<String, Integer> mCache; 38 mCache = ExpirableCache.create(lruCache); 43 mCache = null; 48 mCache.put("a", 1); 49 mCache.put("b", 2); 50 assertEquals(1, mCache.getPossiblyExpired("a").intValue()); 51 assertEquals(2, mCache.getPossiblyExpired("b").intValue()); 52 mCache.put("a", 3); 53 assertEquals(3, mCache.getPossiblyExpired("a").intValue()); 57 assertNull(mCache.getPossiblyExpired("a")) [all...] |
/frameworks/native/opengl/tests/EGLTest/ |
egl_cache_test.cpp | 32 mCache = egl_cache_t::get(); 36 mCache->setCacheFilename(""); 37 mCache->terminate(); 40 egl_cache_t* mCache; 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->initialize(egl_display_t::get(EGL_DEFAULT_DISPLAY)) [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
MultiUserAvatarCache.java | 27 private final HashMap<Integer, Drawable> mCache; 30 mCache = new HashMap<Integer, Drawable>(); 41 mCache.remove(userId); 45 return mCache.get(userId); 49 mCache.put(userId, image);
|
/frameworks/base/libs/hwui/ |
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.size() < mMaxSize) [all...] |
ResourceCache.cpp | 38 for (size_t i = 0; i < mCache->size(); ++i) { 39 ResourceReference* ref = mCache->valueAt(i); 40 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p", 41 i, mCache->keyAt(i), mCache->valueAt(i)); 42 ALOGD(" ResourceCache: mCache(%zu): refCount, recycled, destroyed, type = %d, %d, %d, %d", 49 mCache = new KeyedVector<const void*, ResourceReference*>(); 54 delete mCache; 83 ssize_t index = mCache->indexOfKey(resource); 84 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : NULL [all...] |
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); 137 size_t size = mCache.size(); 139 const LayerEntry& entry = mCache.itemAt(i); 154 position = mCache.size() - 1 [all...] |
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);
|
FboCache.h | 72 SortedVector<GLuint> mCache;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
KeyStoreLruCache.java | 34 LruCache<Integer, V> mCache; 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/ |
ScriptIntrinsicLUT.java | 28 private final byte mCache[] = new byte[1024]; 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/ |
ScriptIntrinsicLUT.java | 30 private final byte mCache[] = new byte[1024]; 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/base/core/tests/coretests/src/android/content/res/ |
ConfigurationBoundResourceCacheTest.java | 30 ConfigurationBoundResourceCache<Float> mCache; 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.get(1, getActivity().getTheme())) [all...] |
/frameworks/base/services/core/java/com/android/server/hdmi/ |
HdmiCecMessageCache.java | 39 private final SparseArray<SparseArray<HdmiCecMessage>> mCache = new SparseArray<>(); 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);
|
/packages/apps/UnifiedEmail/src/com/android/mail/content/ |
ObjectCursor.java | 31 private final SparseArray<T> mCache; 42 mCache = new SparseArray<T>(cursor.getCount()); 44 mCache = null; 63 final T prev = mCache.get(currentPosition); 69 mCache.put(currentPosition, model); 91 mCache.clear();
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
FastScrollingIndexCacheTest.java | 32 private FastScrollingIndexCache mCache; 56 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); 93 assertNull(mCache.get(null, null, null, null, null)); 94 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); 95 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); 96 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); 100 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0); 103 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_0, "*so*", "*ce*", TITLES_1, COUNTS_1); 106 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_1, "*so*", "*ce*", TITLES_2, COUNTS_2); 109 b = putAndGetBundle(mCache, URI_B, "s", PROJECTION_2, "so", "ce", TITLES_3, COUNTS_3) [all...] |
/frameworks/volley/src/com/android/volley/toolbox/ |
ClearCacheRequest.java | 31 private final Cache mCache; 42 mCache = cache; 49 mCache.clear();
|
/frameworks/volley/tests/src/com/android/volley/ |
NetworkDispatcherTest.java | 37 private MockCache mCache; 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);
|
CacheDispatcherTest.java | 35 private MockCache mCache; 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);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
ImageCacheService.java | 40 private BlobCache mCache; 43 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE, 65 synchronized (mCache) { 66 if (!mCache.lookup(request)) return false; 86 synchronized (mCache) { 88 mCache.insert(cacheKey, buffer.array()); 98 synchronized (mCache) { 100 mCache.clearEntry(cacheKey);
|
/frameworks/base/services/core/java/com/android/server/ |
LockSettingsStorage.java | 66 private final Cache mCache = new Cache(); 90 mCache.putKeyValue(key, value, userId); 99 synchronized (mCache) { 100 if (mCache.hasKeyValue(key, userId)) { 101 return mCache.peekKeyValue(key, defaultValue, userId); 103 version = mCache.getVersion(); 118 mCache.putKeyValueIfUnchanged(key, result, userId, version); 124 synchronized (mCache) { 125 if (mCache.isFetched(userId)) { 128 mCache.setFetched(userId) [all...] |
/frameworks/base/core/java/android/content/res/ |
ConfigurationBoundResourceCache.java | 29 private final ArrayMap<String, LongSparseArray<WeakReference<ConstantState<T>>>> mCache = 58 themedCache = mCache.get(themeKey); 61 mCache.put(themeKey, themedCache); 81 themedCache = mCache.get(themeKey); 112 final int size = mCache.size(); 115 themeCache = mCache.valueAt(i); 118 mCache.removeAt(i);
|
/packages/apps/Mms/src/com/android/mms/util/ |
ImageCacheService.java | 30 private BlobCache mCache; 39 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE, 59 synchronized (mCache) { 60 value = mCache.lookup(cacheKey); 79 synchronized (mCache) { 81 mCache.insert(cacheKey, buffer.array());
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
UnrefedPooledCache.java | 46 private final LinkedHashMap<K, V> mCache; 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...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
ContactPhotoBinder.java | 46 private final HashMap<Long, Drawable> mCache; 57 mCache = new HashMap<Long, Drawable>(); 67 Drawable d = mCache.get(id); 89 mCache.put(id, d);
|
/frameworks/volley/src/com/android/volley/ |
CacheDispatcher.java | 43 private final Cache mCache; 65 mCache = cache; 84 mCache.initialize(); 100 Cache.Entry entry = mCache.get(request.getCacheKey());
|