OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MediaCache
(Results
1 - 13
of
13
) sorted by null
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
FakeMediaCacheManager.java
24
public
MediaCache
<?> createMediaCacheById(final int id) {
28
return new
MediaCache
<FakeImageResource>(3, FAKE_IMAGE_CACHE, "FakeImageCache");
31
return new
MediaCache
<FakeImageResource>(10, FAKE_BATCH_IMAGE_CACHE,
FakeImageRequest.java
54
public
MediaCache
<FakeImageResource> getMediaCache() {
55
return (
MediaCache
<FakeImageResource>) MediaCacheManager.get().getOrCreateMediaCacheById(
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
BugleMediaCacheManager.java
23
* To create a new type of cache, add to the list of cache ids and create a new
MediaCache
<>
37
protected
MediaCache
<?> createMediaCacheById(final int id) {
46
return new
MediaCache
<VCardResource>(VCARD_CACHE_SIZE, id, "VCardCache");
MediaCacheManager.java
33
protected final SparseArray<
MediaCache
<?>> mCaches;
36
mCaches = new SparseArray<
MediaCache
<?>>();
49
public synchronized
MediaCache
<?> getOrCreateMediaCacheById(final int id) {
50
MediaCache
<?> cache = mCaches.get(id);
61
final
MediaCache
<?> cache = getOrCreateMediaCacheById(cacheId);
68
protected abstract
MediaCache
<?> createMediaCacheById(final int id);
MediaRequest.java
51
MediaCache
<T> getMediaCache();
MediaCache.java
30
public class
MediaCache
<T extends RefCountedMediaResource> extends LruCache<String, T> {
42
public
MediaCache
(final int id, final String name) {
46
public
MediaCache
(final int maxSize, final int id, final String name) {
72
LogUtil.v(TAG, "cache hit in
mediaCache
@ " + getName() +
78
LogUtil.v(TAG, "cache miss in
mediaCache
@ " + getName() +
AsyncMediaRequestWrapper.java
51
public
MediaCache
<T> getMediaCache() {
EncodedImageResource.java
34
* {@link com.android.messaging.datamodel.media.
MediaCache
}, if the image request
142
public
MediaCache
<ImageResource> getMediaCache() {
ImageRequest.java
246
public
MediaCache
<ImageResource> getMediaCache() {
247
return (
MediaCache
<ImageResource>) MediaCacheManager.get().getOrCreateMediaCacheById(
MediaResourceManager.java
54
* <p>The media resource caches ({@link
MediaCache
}) are maintained as a set of LRU caches. They are
192
final
MediaCache
<T>
mediaCache
= mediaRequest.getMediaCache();
193
if (
mediaCache
!= null) {
194
final T mediaResource =
mediaCache
.fetchResourceFromCache(mediaRequest.getKey());
294
final
MediaCache
<T>
mediaCache
= mediaRequest.getMediaCache();
295
if (
mediaCache
!= null) {
296
mediaCache
.addResourceToCache(mediaRequest.getKey(), mediaResource);
298
LogUtil.v(TAG, "added media resource to " +
mediaCache
.getName() + ". key="
[
all
...]
DecodedImageResource.java
235
public
MediaCache
<ImageResource> getMediaCache() {
VCardRequest.java
112
public
MediaCache
<VCardResource> getMediaCache() {
113
return (
MediaCache
<VCardResource>) MediaCacheManager.get().getOrCreateMediaCacheById(
PoolableImageCache.java
37
public class PoolableImageCache extends
MediaCache
<ImageResource> {
Completed in 519 milliseconds