Home
last modified time | relevance | path

Searched refs:cacheEntry (Results 1 – 5 of 5) sorted by relevance

/frameworks/volley/src/com/android/volley/
DResponse.java42 public static <T> Response<T> success(T result, Cache.Entry cacheEntry) { in success() argument
43 return new Response<T>(result, cacheEntry); in success()
58 public final Cache.Entry cacheEntry; field in Response
74 private Response(T result, Cache.Entry cacheEntry) { in Response() argument
76 this.cacheEntry = cacheEntry; in Response()
82 this.cacheEntry = null; in Response()
DNetworkDispatcher.java126 if (request.shouldCache() && response.cacheEntry != null) { in run()
127 mCache.put(request.getCacheKey(), response.cacheEntry); in run()
/frameworks/opt/telephony/src/java/com/google/android/mms/util/
DAbstractCache.java52 CacheEntry<V> cacheEntry = new CacheEntry<V>(); in put() local
53 cacheEntry.value = value; in put()
54 mCacheMap.put(key, cacheEntry); in put()
70 CacheEntry<V> cacheEntry = mCacheMap.get(key); in get() local
71 if (cacheEntry != null) { in get()
72 cacheEntry.hit++; in get()
74 Log.v(TAG, key + " hit " + cacheEntry.hit + " times."); in get()
76 return cacheEntry.value; in get()
/frameworks/volley/tests/src/com/android/volley/
DResponseDeliveryTest.java43 Cache.Entry cacheEntry = CacheTestUtils.makeRandomCacheEntry(data); in setUp() local
44 mSuccessResponse = Response.success(data, cacheEntry); in setUp()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DPduPersister.java530 PduCacheEntry cacheEntry = null; in load() local
544 cacheEntry = PDU_CACHE_INSTANCE.get(uri); in load()
545 if (cacheEntry != null) { in load()
546 return cacheEntry.getPdu(); in load()
674 cacheEntry = new PduCacheEntry(pdu, msgBox, threadId); in load()
675 PDU_CACHE_INSTANCE.put(uri, cacheEntry); in load()
1156 PduCacheEntry cacheEntry; in updateParts() local
1167 cacheEntry = PDU_CACHE_INSTANCE.get(uri); in updateParts()
1168 if (cacheEntry != null) { in updateParts()
1169 ((MultimediaMessagePdu) cacheEntry.getPdu()).setBody(body); in updateParts()