HomeSort by relevance Sort by last modified time
    Searched refs:mCache (Results 1 - 25 of 55) 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/base/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...]
PathCache.cpp 38 for (uint32_t i = 0; i < mCache.size(); i++) {
39 if (mCache.getKeyAt(i).path == path) {
41 removeTexture(mCache.getValueAt(i));
45 mCache.setOnEntryRemovedListener(NULL);
49 mCache.removeAt(pathsToRemove.itemAt(i) - i);
51 mCache.setOnEntryRemovedListener(this);
70 PathTexture* texture = mCache.get(entry);
75 mCache.remove(entry);
ResourceCache.cpp 30 for (size_t i = 0; i < mCache->size(); ++i) {
31 ResourceReference* ref = mCache->valueAt(i);
32 LOGD(" ResourceCache: mCache(%d): resource, ref = 0x%p, 0x%p",
33 i, mCache->keyAt(i), mCache->valueAt(i));
34 LOGD(" ResourceCache: mCache(%d): refCount, recycled, destroyed, type = %d, %d, %d, %d",
41 mCache = new KeyedVector<void *, ResourceReference *>();
46 delete mCache;
51 ResourceReference* ref = mCache->indexOfKey(resource) >= 0 ? mCache->valueFor(resource) : NULL
    [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);
127 mCache.removeOldest();
151 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...]
FboCache.h 72 SortedVector<GLuint> mCache;
GradientCache.cpp 38 mCache(GenerationCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity),
48 mCache.setOnEntryRemovedListener(this);
52 mCache(GenerationCache<GradientCacheEntry, Texture*>::kUnlimitedCapacity),
54 mCache.setOnEntryRemovedListener(this);
58 mCache.clear();
76 mCache.removeOldest();
104 Texture* texture = mCache.get(gradient);
114 mCache.clear();
142 mCache.removeOldest();
149 mCache.put(gradient, texture)
    [all...]
TextureCache.cpp 36 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity),
60 mCache(GenerationCache<SkBitmap*, Texture*>::kUnlimitedCapacity),
66 mCache.clear();
70 mCache.setOnEntryRemovedListener(this);
93 mCache.removeOldest();
124 Texture* texture = mCache.get(bitmap);
136 mCache.removeOldest();
151 mCache.put(bitmap, texture);
163 mCache.remove(bitmap);
175 mCache.remove(mGarbage.itemAt(i))
    [all...]
PatchCache.h 57 return mCache.size();
115 KeyedVector<PatchDescription, Patch*> mCache;
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
ImageCacheService.java 38 private BlobCache mCache;
41 mCache = CacheManager.getCache(context, IMAGE_CACHE_FILE,
60 synchronized (mCache) {
61 value = mCache.lookup(cacheKey);
80 synchronized (mCache) {
82 mCache.insert(cacheKey, buffer.array());
  /frameworks/base/include/utils/
GenerationCache.h 84 KeyedVector<K, sp<Entry<K, V> > > mCache;
105 return mCache.size();
120 for (uint32_t i = 0; i < mCache.size(); i++) {
121 sp<Entry<K, V> > entry = mCache.valueAt(i);
127 mCache.clear();
134 return mCache.indexOfKey(key) >= 0;
139 return mCache.keyAt(index);
144 return mCache.valueAt(index)->value;
149 ssize_t index = mCache.indexOfKey(key);
151 sp<Entry<K, V> > entry = mCache.valueAt(index)
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
IconCache.java 47 private final HashMap<ComponentName, CacheEntry> mCache =
137 synchronized (mCache) {
138 mCache.remove(componentName);
146 synchronized (mCache) {
147 mCache.clear();
156 synchronized (mCache) {
165 synchronized (mCache) {
180 synchronized (mCache) {
196 CacheEntry entry = mCache.get(componentName);
200 mCache.put(componentName, entry)
    [all...]
StrokedTextView.java 39 private Bitmap mCache;
83 mCache = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888);
85 mCache = null;
90 if (mCache != null) {
102 mCanvas.setBitmap(mCache);
134 canvas.drawBitmap(mCache, 0, 0, mPaint);
  /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/base/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 38 private MediaItem mCache[] = new MediaItem[CACHE_SIZE];
63 items.toArray(mCache);
73 return mCache[index - mCacheStart].getContentUri();
80 return WidgetUtils.createWidgetBitmap(mCache[index - mCacheStart]);
90 Arrays.fill(mCache, null);
  /packages/apps/Gallery/src/com/android/camera/gallery/
BaseImageList.java 37 private final LruCache<Integer, BaseImage> mCache =
63 mCache.clear();
119 BaseImage result = mCache.get(i);
127 mCache.put(i, result);
163 mCache.clear();
203 BaseImage image = mCache.get(i);
206 mCache.put(i, image);
  /frameworks/base/media/libstagefright/
NuCachedSource2.cpp 187 mCache(new PageCache(kPageSize)),
226 delete mCache;
227 mCache = NULL;
297 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize());
312 PageCache::Page *page = mCache->acquirePage();
315 mCacheOffset + mCache->totalSize(), page->mData, kPageSize);
322 mCache->releasePage(page);
329 mCache->releasePage(page);
338 mCache->appendPage(page);
365 if (mFetching && mCache->totalSize() >= mHighwaterThresholdBytes)
    [all...]
  /packages/apps/Mms/src/com/android/mms/data/
RecipientIdCache.java 39 private final Map<Long, String> mCache;
63 mCache = new HashMap<Long, String>();
84 sInstance.mCache.clear();
89 sInstance.mCache.put(id, number);
116 String number = sInstance.mCache.get(longId);
125 number = sInstance.mCache.get(longId);
157 String number2 = sInstance.mCache.get(recipientId);
163 ", sInstance.mCache.get(recipientId)=" + number2);
169 sInstance.mCache.put(recipientId, number1);
208 for (Long id : sInstance.mCache.keySet())
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
ExpirableCache.java 143 private LruCache<K, CachedValue<V>> mCache;
156 mCache = cache;
174 return mCache.get(key);
218 mCache.put(key, newCachedValue(value));
  /frameworks/base/core/java/android/widget/
RemoteViewsAdapter.java 70 private FixedSizeRemoteViewsCache mCache;
190 synchronized (adapter.mCache) {
191 adapter.mCache.commitTemporaryMetaData();
398 synchronized (mCache) {
736 mCache = new FixedSizeRemoteViewsCache(sDefaultCacheSize);
761 synchronized (mCache) {
762 int[] res = mCache.getNextIndexToLoad();
    [all...]
  /frameworks/base/core/java/android/emoji/
EmojiFactory.java 60 private Map<Integer, WeakReference<Bitmap>> mCache;
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));

Completed in 964 milliseconds

1 2 3