HomeSort by relevance Sort by last modified time
    Searched refs:mCache (Results 1 - 25 of 69) sorted by null

1 2 3

  /packages/apps/Contacts/tests/src/com/android/contacts/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/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...]
PatchCache.cpp 46 size_t count = mCache.size();
48 delete mCache.valueAt(i);
50 mCache.clear();
78 ssize_t index = mCache.indexOfKey(description);
81 mesh = mCache.valueAt(index);
94 if (mCache.size() >= mMaxEntries) {
95 delete mCache.valueAt(mCache.size() - 1);
96 mCache.removeItemsAt(mCache.size() - 1, 1)
    [all...]
TextDropShadowCache.cpp 31 mCache(GenerationCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity),
46 mCache(GenerationCache<ShadowText, ShadowTexture*>::kUnlimitedCapacity),
52 mCache.clear();
56 mCache.setOnEntryRemovedListener(this);
75 mCache.removeOldest();
101 mCache.clear();
107 ShadowTexture* texture = mCache.get(entry);
129 mCache.removeOldest();
153 mCache.put(entry, texture);
LayerCache.cpp 80 size_t count = mCache.size();
82 deleteLayer(mCache.itemAt(i).mLayer);
84 mCache.clear();
91 ssize_t index = mCache.indexOf(entry);
94 entry = mCache.itemAt(index);
95 mCache.removeAt(index);
124 size_t size = mCache.size();
126 const LayerEntry& entry = mCache.itemAt(i);
166 position = mCache.size() - 1;
168 Layer* victim = mCache.itemAt(position).mLayer
    [all...]
PathCache.cpp 60 for (size_t i = 0; i < mCache.size(); i++) {
61 if (mCache.getKeyAt(i).path == path) {
63 removeTexture(mCache.getValueAt(i));
67 mCache.setOnEntryRemovedListener(NULL);
71 mCache.removeAt(pathsToRemove.itemAt(i) - i);
73 mCache.setOnEntryRemovedListener(this);
97 PathTexture* texture = mCache.get(entry);
105 mCache.remove(entry);
ResourceCache.cpp 30 for (size_t i = 0; i < mCache->size(); ++i) {
31 ResourceReference* ref = mCache->valueAt(i);
32 ALOGD(" ResourceCache: mCache(%d): resource, ref = 0x%p, 0x%p",
33 i, mCache->keyAt(i), mCache->valueAt(i));
34 ALOGD(" ResourceCache: mCache(%d): refCount, recycled, destroyed, type = %d, %d, %d, %d",
41 mCache = new KeyedVector<void*, ResourceReference*>();
46 delete mCache;
87 ssize_t index = mCache->indexOfKey(resource);
88 ResourceReference* ref = index >= 0 ? mCache->valueAt(index) : NULL
    [all...]
FboCache.h 72 SortedVector<GLuint> mCache;
TextureCache.cpp 37 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity),
61 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity),
67 mCache.clear();
71 mCache.setOnEntryRemovedListener(this);
94 mCache.removeOldest();
125 Texture* texture = mCache.get(bitmap);
138 mCache.removeOldest();
153 mCache.put(bitmap, texture);
175 mCache.remove(bitmap);
187 mCache.remove(mGarbage.itemAt(i))
    [all...]
  /frameworks/base/graphics/java/android/renderscript/
ScriptIntrinsicLUT.java 32 private final byte mCache[] = new byte[1024];
39 mCache[ct] = (byte)ct;
40 mCache[ct + 256] = (byte)ct;
41 mCache[ct + 512] = (byte)ct;
42 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;
132 mTables.copyFromUnchecked(mCache);
    [all...]
  /frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
ScriptIntrinsicLUT.java 30 private final byte mCache[] = new byte[1024];
37 mCache[ct] = (byte)ct;
38 mCache[ct + 256] = (byte)ct;
39 mCache[ct + 512] = (byte)ct;
40 mCache[ct + 768] = (byte)ct;
79 mCache[index] = (byte)value;
91 mCache[index+256] = (byte)value;
103 mCache[index+512] = (byte)value;
115 mCache[index+768] = (byte)value;
130 mTables.copyFromUnchecked(mCache);
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
FastScrollingIndexCacheTest.java 33 private FastScrollingIndexCache mCache;
57 mCache = new FastScrollingIndexCache(mPrefs);
94 assertNull(mCache.get(null, null, null, null, null));
95 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*"));
96 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*"));
97 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce"));
101 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0);
104 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_0, "*so*", "*ce*", TITLES_1, COUNTS_1);
107 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_1, "*so*", "*ce*", TITLES_2, COUNTS_2);
110 b = putAndGetBundle(mCache, URI_B, "s", PROJECTION_2, "so", "ce", TITLES_3, COUNTS_3)
    [all...]
  /frameworks/support/volley/src/com/android/volley/toolbox/
ClearCacheRequest.java 31 private final Cache mCache;
42 mCache = cache;
49 mCache.clear();
  /frameworks/support/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,
64 synchronized (mCache) {
65 if (!mCache.lookup(request)) return false;
85 synchronized (mCache) {
87 mCache.insert(cacheKey, buffer.array());
97 synchronized (mCache) {
99 mCache.clearEntry(cacheKey);
  /frameworks/native/include/utils/
GenerationCache.h 81 KeyedVector<K, sp<Entry<K, V> > > mCache;
107 return mCache.size();
122 for (uint32_t i = 0; i < mCache.size(); i++) {
123 sp<Entry<K, V> > entry = mCache.valueAt(i);
129 mCache.clear();
136 return mCache.indexOfKey(key) >= 0;
141 return mCache.keyAt(index);
146 return mCache.valueAt(index)->value;
151 ssize_t index = mCache.indexOfKey(key);
153 const sp<Entry<K, V> >& entry = mCache.valueAt(index)
    [all...]
  /packages/apps/Mms/src/com/android/mms/util/
ImageCacheService.java 33 private BlobCache mCache;
42 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE,
62 synchronized (mCache) {
63 value = mCache.lookup(cacheKey);
82 synchronized (mCache) {
84 mCache.insert(cacheKey, buffer.array());
  /packages/apps/Launcher2/src/com/android/launcher2/
IconCache.java 50 private final HashMap<ComponentName, CacheEntry> mCache =
135 synchronized (mCache) {
136 mCache.remove(componentName);
144 synchronized (mCache) {
145 mCache.clear();
154 synchronized (mCache) {
163 synchronized (mCache) {
178 synchronized (mCache) {
194 CacheEntry entry = mCache.get(componentName);
198 mCache.put(componentName, entry)
    [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/support/volley/src/com/android/volley/
CacheDispatcher.java 44 private final Cache mCache;
66 mCache = cache;
85 mCache.initialize();
101 Cache.Entry entry = mCache.get(request.getCacheKey());
  /frameworks/base/core/java/android/widget/
RemoteViewsAdapter.java 73 private FixedSizeRemoteViewsCache mCache;
215 synchronized (adapter.mCache) {
216 adapter.mCache.commitTemporaryMetaData();
    [all...]
  /frameworks/native/libs/binder/
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();
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
MediaSetSource.java 39 private MediaItem mCache[] = new MediaItem[CACHE_SIZE];
64 items.toArray(mCache);
74 return mCache[index - mCacheStart].getContentUri();
81 return WidgetUtils.createWidgetBitmap(mCache[index - mCacheStart]);
91 Arrays.fill(mCache, null);

Completed in 975 milliseconds

1 2 3