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 org.geometerplus.zlibrary.text.view.CursorManager.java

final class CursorManager extends LruCache<Integer, ZLTextParagraphCursor> {
    private final ZLTextModel myModel;
    final ExtensionElementManager ExtensionManager;

    CursorManager(ZLTextModel model, ExtensionElementManager extManager) {
        super(200); // max 200 cursors in the cache

From source file io.apptik.multiview.common.BitmapLruCache.java

public class BitmapLruCache extends LruCache<Uri, Bitmap> {

    private static BitmapLruCache inst;

    public static BitmapLruCache get() {
        if (inst == null) {

From source file com.meg7.soas.util.BitmapLruCache.java

/**
 * Bitmap memory cache.
 *
 * @author Mostafa Gazar <eng.mostafa.gazar@gmail.com>
 */
public class BitmapLruCache extends LruCache<String, Bitmap> implements ImageCache {

From source file com.nasaApp.f3r10.util.BitmapLruCache.java

/**
 * Bitmap memory cache.
 *
 * @author Mostafa Gazar <eng.mostafa.gazar@gmail.com>
 */
public class BitmapLruCache extends LruCache<String, Bitmap> implements ImageCache {

From source file com.digipom.manteresting.android.service.cache.BitmapMemoryCache.java

class BitmapMemoryCache extends LruCache<String, BitmapWithCategory> {
    private static final String TAG = "BitmapMemoryCache";

    private static final Method getByteCount;

    static {

From source file io.vit.vitio.Managers.LruBitmapCache.java

public class LruBitmapCache extends LruCache<String, Bitmap> implements ImageCache {
    public static int getDefaultLruCacheSize() {
        final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
        final int cacheSize = maxMemory / 8;

        return cacheSize;

From source file de.luhmer.owncloudnewsreader.helper.BitmapDrawableLruCache.java

public class BitmapDrawableLruCache extends LruCache<Long, BitmapDrawable> {
    public static int getDefaultLruCacheSize() {
        final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
        final int cacheSize = maxMemory / 8;
        return cacheSize;
    }

From source file com.badou.mworking.net.bitmap.BitmapLruCache.java

public class BitmapLruCache extends LruCache<String, Bitmap> implements ImageCache {

    private final String SUFFIX_CIRCLE = "Circle"; // 
    private final String SUFFIX_ORIGIN = "origin"; // 

    public BitmapLruCache(int maxSize) {

From source file com.sumatone.cloud.securecloud.Boundary.LruBitmapCache.java

public class LruBitmapCache extends LruCache<String, Bitmap> implements ImageCache {
    public static int getDefaultLruCacheSize() {
        final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
        final int cacheSize = maxMemory / 8;

        return cacheSize;

From source file com.github.luluvise.droid_utils.cache.ModelLruCache.java

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