HomeSort by relevance Sort by last modified time
    Searched refs:mCache (Results 26 - 50 of 259) sorted by null

12 3 4 5 6 7 8 91011

  /frameworks/base/libs/hwui/
TextureCache.cpp 37 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity)
41 mCache.setOnEntryRemovedListener(this);
85 LruCache<uint32_t, Texture*>::Iterator iter(mCache);
127 Texture* texture = mCache.get(bitmap->getStableID());
138 Texture* oldest = mCache.peekOldestValue();
140 mCache.removeOldest();
154 mCache.put(bitmap->getStableID(), texture);
199 return mCache.remove(pixelRefStableID);
203 mCache.clear();
212 if (mFlushRate >= 1.0f || mCache.size() == 0) return
    [all...]
FboCache.h 72 SortedVector<GLuint> mCache;
  /packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
PreferenceListCacheTest.java 48 private PreferenceListCache mCache;
61 mCache = new PreferenceListCache(mGroup);
62 mCache.removeCachedPrefs();
75 mCache = new PreferenceListCache(mGroup);
76 assertEquals(first, mCache.getCachedPreference("first"));
77 assertEquals(second, mCache.getCachedPreference("second"));
78 assertEquals(third, mCache.getCachedPreference("third"));
80 mCache.removeCachedPrefs();
92 mCache = new PreferenceListCache(mGroup);
93 assertEquals(first, mCache.getCachedPreference("first"))
    [all...]
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
AlbumArtCache.java 48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
71 Bitmap[] result = mCache.get(artUrl);
76 Bitmap[] result = mCache.get(artUrl);
85 Bitmap[] bitmap = mCache.get(artUrl);
103 mCache.put(artUrl, bitmaps);
108 mCache.size());
  /external/volley/src/test/java/com/android/volley/
CacheDispatcherTest.java 39 private MockCache mCache;
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/minikin/libs/minikin/
HbFontCache.cpp 34 HbFontCache() : mCache(kMaxEntries) {
35 mCache.setOnEntryRemovedListener(this);
44 return mCache.get(fontId);
48 mCache.put(fontId, font);
52 mCache.clear();
56 mCache.remove(fontId);
62 android::LruCache<int32_t, hb_font_t*> mCache;
  /frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
AlbumArtCache.java 49 private final LruCache<String, Bitmap[]> mCache;
62 mCache = new LruCache<String, Bitmap[]>(maxSize) {
72 Bitmap[] result = mCache.get(artUrl);
77 Bitmap[] result = mCache.get(artUrl);
86 Bitmap[] bitmap = mCache.get(artUrl);
104 mCache.put(artUrl, bitmaps);
108 Log.d(TAG, "doInBackground: putting bitmap in cache. cache size=" + mCache.size());
  /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);
  /external/volley/src/main/java/com/android/volley/
CacheDispatcher.java 43 private final Cache mCache;
65 mCache = cache;
84 mCache.initialize();
100 Cache.Entry entry = mCache.get(request.getCacheKey());
  /packages/apps/Calendar/src/com/android/calendar/selectcalendars/
CalendarColorCache.java 34 private HashSet<String> mCache = new HashSet<String>();
85 mCache.add(generateKey(accountName, accountType));
92 return mCache.contains(generateKey(accountName, accountType));
99 mCache.clear();
  /packages/apps/Dialer/java/com/android/dialer/util/
ExpirableCache.java 103 private LruCache<K, CachedValue<V>> mCache;
106 mCache = cache;
150 return mCache.get(key);
193 mCache.put(key, newCachedValue(value));
  /packages/apps/UnifiedEmail/src/com/android/mail/browse/
AttachmentLoader.java 46 private Map<String, Attachment> mCache = Maps.newHashMap();
54 Attachment m = mCache.get(uri);
57 mCache.put(uri, m);
  /frameworks/base/core/java/android/widget/
RemoteViewsAdapter.java 82 private final FixedSizeRemoteViewsCache mCache;
252 synchronized (adapter.mCache) {
253 adapter.mCache.commitTemporaryMetaData();
310 private final FixedSizeRemoteViewsCache mCache;
314 mCache = cache;
337 int viewHeight = mCache.getMetaData().getLoadingTemplate(getContext()).defaultHeight;
    [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/providers/ContactsProvider/src/com/android/providers/contacts/
FastScrollingIndexCache.java 39 * It's a cache from "keys" and "bundles" (see {@link #mCache} for what they are). The cache
87 private final Map<String, String> mCache = Maps.newHashMap();
206 synchronized (mCache) {
210 final String value = mCache.get(key);
221 mCache.remove(key);
238 synchronized (mCache) {
242 mCache.put(key, buildCacheValue(
254 synchronized (mCache) {
256 mCache.clear();
272 for (String key : mCache.keySet())
    [all...]
  /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/av/media/libstagefright/
NuCachedSource2.cpp 189 mCache(new PageCache(kPageSize)),
235 delete mCache;
236 mCache = NULL;
339 mSource->reconnectAtOffset(mCacheOffset + mCache->totalSize());
360 PageCache::Page *page = mCache->acquirePage();
363 mCacheOffset + mCache->totalSize(), page->mData, kPageSize);
373 mCache->releasePage(page);
383 mCache->releasePage(page);
392 mCache->appendPage(page);
419 if (mFetching && mCache->totalSize() >= mHighwaterThresholdBytes)
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
FrameManager.java 58 private BackingCache mCache;
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.getSizeLeft() + ")")
    [all...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/
ThumbnailCache.java 46 * A 2-dimensional index into {@link #mCache} entries. Pair<Uri, Point> is the key to
47 * {@link #mCache}. TreeMap is used to search the closest size to a given size and a given uri.
50 private final Cache mCache;
59 mCache = new Cache(maxCacheSizeInBytes);
80 Entry entry = mCache.get(cacheKey);
92 Entry entry = mCache.get(cacheKey);
105 Entry entry = mCache.get(cacheKey);
136 mCache.put(cacheKey, entry);
157 mCache.remove(index);
176 mCache.evictAll()
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
IconCache.java 75 private final HashMap<CacheKey, CacheEntry> mCache =
164 synchronized (mCache) {
165 mCache.remove(new CacheKey(componentName, user));
173 synchronized (mCache) {
174 mCache.clear();
183 synchronized (mCache) {
194 synchronized (mCache) {
212 synchronized (mCache) {
229 CacheEntry entry = mCache.get(cacheKey);
233 mCache.put(cacheKey, entry)
    [all...]
  /frameworks/base/services/core/java/com/android/server/locksettings/
LockSettingsStorage.java 89 private final Cache mCache = new Cache();
205 mCache.putKeyValue(key, value, userId);
214 synchronized (mCache) {
215 if (mCache.hasKeyValue(key, userId)) {
216 return mCache.peekKeyValue(key, defaultValue, userId);
218 version = mCache.getVersion();
233 mCache.putKeyValueIfUnchanged(key, result, userId, version);
239 synchronized (mCache) {
240 if (mCache.isFetched(userId)) {
243 mCache.setFetched(userId)
    [all...]
  /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
PlaybackSeekAsyncDataProvider.java 39 // mCache is for the bitmap requested by user
40 final LruCache<Integer, Bitmap> mCache;
42 // estimation. We use a different LruCache so that items in mCache will not be evicted by
75 mCache.put(mIndex, bitmap);
89 mCache = new LruCache<Integer, Bitmap>(cacheSize);
105 Bitmap bitmap = mCache.get(key);
111 mCache.put(key, bitmap);
148 if (mCache.get(key) == null && mPrefetchCache.get(key) == null) {
166 mCache.evictAll();
180 for (Iterator<Integer> it = mCache.snapshot().keySet().iterator(); it.hasNext();)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
ContactResolver.java 58 private final BitmapCache mCache;
79 mCache = cache;
112 return new ContactResolverTask(batch, mResolver, mCache, this);
116 return mCache;
162 private final BitmapCache mCache;
170 mCache = cache;
233 null, mCache).decode();
261 if (bitmap == null && mCache != null) {
263 mCache.put(request.contactRequest, null);
  /frameworks/av/media/libheif/
HeifDecoderImpl.cpp 88 std::unique_ptr<uint8_t> mCache;
102 mCache.reset(new uint8_t[kInitialCacheBufferSize]);
103 if (mCache.get() == nullptr) {
153 memcpy(mMemory->pointer(), mCache.get() + offset - mCachedOffset, size);
163 uint8_t* dst = mCache.get();
182 memcpy(dst, mCache.get() + newCachedOffset - mCachedOffset, newCachedSize);
204 mCache.reset(newCache.release());
221 memcpy(newCache, mCache.get(), mCachedSize);
222 mCache.reset(newCache);
230 size_t bytesRead = mStream->read(mCache.get() + mCachedSize, bytesToRead)
    [all...]

Completed in 2126 milliseconds

12 3 4 5 6 7 8 91011