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

1 2 3 4

  /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 32 for (size_t i = 0; i < mCache->size(); ++i) {
33 ResourceReference* ref = mCache->valueAt(i);
34 ALOGD(" ResourceCache: mCache(%zu): resource, ref = 0x%p, 0x%p",
35 i, mCache->keyAt(i), mCache->valueAt(i));
36 ALOGD(" ResourceCache: mCache(%zu): refCount, recycled, destroyed, type = %d, %d, %d, %d",
43 mCache = new KeyedVector<const void*, ResourceReference*>();
48 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 33 LruCache<Integer, V> mCache;
36 mCache = new LruCache<Integer, V>(cacheSize) {
47 return mCache.get(key.id);
63 return mCache.get(key.id);
68 mCache.put(key.id, value);
74 mCache.remove(key.id);
80 mCache.evictAll();
86 return mCache.size();
91 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/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);
  /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());
  /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();
  /external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
CacheData.java 55 private final JsoMap mCache;
96 mCache = JsoMap.createEmptyJsoMap();
129 mCache = tempMap;
210 mCache.putObj(mKey, map);
240 return mCache.toString();
247 return mCache.containsKey(key);
274 if (mCache.containsKey(key.toString())) {
348 mCache.putObj(key.toString(), JsoMap.buildJsoMap(data));
364 return mCache.get(key);
375 return mCache.getObj(key)
    [all...]
  /frameworks/base/core/java/android/widget/
RemoteViewsAdapter.java 79 private FixedSizeRemoteViewsCache mCache;
234 synchronized (adapter.mCache) {
235 adapter.mCache.commitTemporaryMetaData();
    [all...]

Completed in 835 milliseconds

1 2 3 4