Example usage for android.support.v4.util LruCache subclass-usage

List of usage examples for android.support.v4.util LruCache subclass-usage

Introduction

In this page you can find the example usage for android.support.v4.util LruCache subclass-usage.

Usage

From source file ImageCache.BitmapMemoryLruCache.java

final class BitmapMemoryLruCache extends LruCache<String, CacheableBitmapDrawable> {

    private final Set<SoftReference<CacheableBitmapDrawable>> mRemovedEntries;
    private final BitmapLruCache.RecyclePolicy mRecyclePolicy;

    BitmapMemoryLruCache(int maxSize, BitmapLruCache.RecyclePolicy policy) {

From source file mobisocial.musubi.util.IdentityCache.java

public class IdentityCache extends LruCache<Long, IdentityCache.CachedIdentity> {

    final Context mContext;
    final IdentitiesManager mIdentitiesManager;
    final int mCapacity;
    static final int DEFAULT_CAPACITY = 30;

From source file com.github.marcosalis.kraken.cache.ContentLruCache.java

/**
 * Extension of the Android's {@link LruCache} to support some of the methods of
 * a {@link ConcurrentMap}.
 * 
 * TODO: unit tests
 * 

From source file uk.co.senab.bitmapcache.BitmapMemoryLruCache.java

final class BitmapMemoryLruCache extends LruCache<String, CacheableBitmapDrawable> {

    private final Set<SoftReference<CacheableBitmapDrawable>> mRemovedEntries;
    private final BitmapLruCache.RecyclePolicy mRecyclePolicy;

    BitmapMemoryLruCache(int maxSize, BitmapLruCache.RecyclePolicy policy) {

From source file com.ranger.cache.BitmapMemoryLruCache.java

final class BitmapMemoryLruCache extends LruCache<String, CacheableBitmapDrawable> {

    //    private final Set<SoftReference<CacheableBitmapDrawable>> mRemovedEntries;
    private final BaseCache.RecyclePolicy mRecyclePolicy;

    BitmapMemoryLruCache(int maxSize, BaseCache.RecyclePolicy policy) {

From source file com.wabbit.libraries.cache.BitmapMemoryLruCache.java

final class BitmapMemoryLruCache extends LruCache<String, CacheableBitmapDrawable> {

    private final Set<SoftReference<CacheableBitmapDrawable>> mRemovedEntries;
    private final BitmapLruCache.RecyclePolicy mRecyclePolicy;

    BitmapMemoryLruCache(int maxSize, BitmapLruCache.RecyclePolicy policy) {

From source file com.yujunkang.fangxinbao.cache.BitmapMemoryLruCache.java

final class BitmapMemoryLruCache extends LruCache<String, CacheableBitmapDrawable> {

    private final Set<SoftReference<CacheableBitmapDrawable>> mRemovedEntries;
    private final BitmapLruCache.RecyclePolicy mRecyclePolicy;

    BitmapMemoryLruCache(int maxSize, BitmapLruCache.RecyclePolicy policy) {

From source file com.handlerexploit.news.utils.BitmapLruCache.java

public class BitmapLruCache extends LruCache<String, Bitmap> {

    private static final String TAG = BitmapLruCache.class.getSimpleName();
    private static final int FOUR_MEGABYTES = 4 * 1024 * 1024;
    private FileManager<SerialBitmap> mFileManager;

From source file com.kodemore.collection.KmLruMap.java

/**
 * A map that automatically limits its size and removes
 * old (Least Recently Used) values when the maximum size 
 * is exceeded.
 * 
 * Null keys are NOT allowed.

From source file com.application.maskhos.maskhosblogapi.Model.interfaces.BitmapCache.BitmapMemoryLruCache.java

final class BitmapMemoryLruCache extends LruCache<String, CacheableBitmapDrawable> {

    private final Set<SoftReference<CacheableBitmapDrawable>> mRemovedEntries;
    private final BitmapLruCache.RecyclePolicy mRecyclePolicy;

    BitmapMemoryLruCache(int maxSize, BitmapLruCache.RecyclePolicy policy) {