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

1 2 3 4

  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
ThumbnailCache.java 21 import android.util.LruCache;
23 public class ThumbnailCache extends LruCache<Uri, Bitmap> {
  /packages/apps/Gallery/tests/src/com/android/camera/gallery/
LruCacheUnitTests.java 9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2);
17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2);
29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2);
42 private final LruCache<Integer,Integer> mMap;
44 public Accessor(LruCache<Integer, Integer> map) {
60 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(4)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
LruCacheTest.java 34 LruCache<String, String> cache = new LruCache<String, String>(3);
83 LruCache<String, String> cache = newCreatingCache();
107 LruCache<String, String> cache = newCreatingCache();
113 LruCache<String, String> cache = newCreatingCache();
120 new LruCache<String, String>(0);
127 LruCache<String, String> cache = new LruCache<String, String>(3);
136 LruCache<String, String> cache = new LruCache<String, String>(3)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
LruCache.java 28 public final class LruCache<K, V> extends LinkedHashMap<K, V> {
33 * Creates an instance of LRUCache, with given capacity.
38 public LruCache(int capacity) {
43 * Creates an instance of LRUCache, with given capacity.
48 private LruCache(int initialCapacity, int maxCapacity) {
  /system/core/include/utils/
LruCache.h 36 class LruCache {
38 explicit LruCache(uint32_t maxCapacity);
54 Iterator(const LruCache<TKey, TValue>& cache): mCache(cache), mIndex(-1) {
74 const LruCache<TKey, TValue>& mCache;
79 LruCache(const LruCache& that); // disallow copy constructor
106 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity): mMaxCapacity(maxCapacity),
112 void LruCache<K, V>::setOnEntryRemovedListener(OnEntryRemoved<K, V>* listener) {
117 size_t LruCache<TKey, TValue>::size() const
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
TargetPackageInfoGetterTask.java 23 import android.util.LruCache;
28 private static final LruCache<String, PackageInfo> sCache =
29 new LruCache<String, PackageInfo>(MAX_CACHE_ENTRIES);
  /packages/apps/Dialer/src/com/android/dialer/util/
ExpirableCache.java 19 import android.util.LruCache;
74 * This class wraps around an {@link LruCache} instance: it follows the {@link LruCache} behavior
75 * for evicting items when the cache is full. It is possible to supply your own subclass of LruCache
76 * by using the {@link #create(LruCache)} method, which can define a custom expiration policy.
143 private LruCache<K, CachedValue<V>> mCache;
155 private ExpirableCache(LruCache<K, CachedValue<V>> cache) {
235 * Implementation of {@link LruCache#create(K)} can use this method to create a new entry.
242 * Creates a new {@link ExpirableCache} that wraps the given {@link LruCache}.
252 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache)
    [all...]
  /system/core/libutils/tests/
LruCache_test.cpp 19 #include <utils/LruCache.h>
80 typedef LruCache<ComplexKey, ComplexValue> ComplexCache;
117 LruCache<SimpleKey, StringValue> cache(100);
124 LruCache<SimpleKey, StringValue> cache(100);
136 LruCache<SimpleKey, StringValue> cache(2);
148 LruCache<SimpleKey, StringValue> cache(100);
161 LruCache<SimpleKey, StringValue> cache(100);
180 LruCache<SimpleKey, StringValue> cache(512);
264 LruCache<SimpleKey, StringValue> cache(100);
279 LruCache<SimpleKey, StringValue> cache(100)
    [all...]
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
JavaBrowserViewRendererHelper.java 10 import android.util.LruCache;
23 private static LruCache<Long, Bitmap> sBitmapCache = new LruCache<Long, Bitmap>(5);
  /packages/apps/Dialer/tests/src/com/android/dialer/util/
ExpirableCacheTest.java 21 import android.util.LruCache;
36 LruCache<String, CachedValue<Integer>> lruCache =
37 new LruCache<String, ExpirableCache.CachedValue<Integer>>(20);
38 mCache = ExpirableCache.create(lruCache);
105 new LruCache<String, ExpirableCache.CachedValue<Integer>>(10) {
  /frameworks/base/libs/hwui/
TextureCache.h 22 #include <utils/LruCache.h>
133 LruCache<SkBitmap*, Texture*> mCache;
PatchCache.h 22 #include <utils/LruCache.h>
173 LruCache<PatchDescription, Patch*> mCache;
TextDropShadowCache.h 24 #include <utils/LruCache.h>
166 LruCache<ShadowText, ShadowTexture*> mCache;
GradientCache.h 24 #include <utils/LruCache.h>
184 LruCache<GradientCacheEntry, Texture*> mCache;
  /development/samples/training/ContactsList/src/com/example/android/contactslist/util/
ImageCache.java 24 import android.support.v4.util.LruCache;
34 private LruCache<String, Bitmap> mMemoryCache;
83 mMemoryCache = new LruCache<String, Bitmap>(memCacheSize) {
151 * to construct a LruCache which takes an int in its constructor.
  /packages/apps/Gallery/src/com/android/camera/gallery/
LruCache.java 25 public class LruCache<K, V> {
33 public LruCache(final int capacity) {
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoManager.java 23 import android.support.v4.util.LruCache;
89 private final LruCache<URL, byte[]> mPhotoCache;
157 mPhotoCache = new LruCache<URL, byte[]>(IMAGE_CACHE_SIZE) {
  /frameworks/base/wifi/java/android/net/wifi/p2p/
WifiP2pGroupList.java 23 import android.util.LruCache;
36 private final LruCache<Integer, WifiP2pGroup> mGroups;
51 mGroups = new LruCache<Integer, WifiP2pGroup>(CREDENTIAL_MAX_NUM) {
  /frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
BaseFragmentPagerAdapter.java 24 import android.support.v4.util.LruCache;
55 private LruCache<String, Fragment> mFragmentCache = new FragmentCache(DEFAULT_CACHE_SIZE);
177 private class FragmentCache extends LruCache<String, Fragment> {
  /packages/apps/UnifiedEmail/src/com/android/bitmap/
AltPooledCache.java 19 import android.support.v4.util.LruCache;
47 private final LruCache<K, V> mNonPooledCache;
199 private class NonPooledCache extends LruCache<K, V> {
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
LruCache.java 29 public class LruCache<K, V> {
37 public LruCache(final int capacity) {
  /packages/apps/VideoEditor/src/com/android/videoeditor/
ProjectPickerAdapter.java 34 import android.util.LruCache;
60 private LruCache<String, Bitmap> mPreviewBitmapCache;
77 mPreviewBitmapCache = new LruCache<String, Bitmap>(15);
250 private LruCache<String, Bitmap> mPreviewBitmapCache;
254 LruCache<String, Bitmap> previewBitmapCache) {
  /frameworks/base/core/java/android/util/
LruCache.java 40 * LruCache<String, Bitmap> bitmapCache = new LruCache<String, Bitmap>(cacheSize) {
62 public class LruCache<K, V> {
80 public LruCache(int maxSize) {
378 return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]",
  /frameworks/base/tools/layoutlib/bridge/src/android/util/
LruCache.java 44 * LruCache<String, Bitmap> bitmapCache = new LruCache<String, Bitmap>(cacheSize) {
66 public class LruCache<K, V> {
84 public LruCache(int maxSize) {
388 return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]",
  /frameworks/support/v4/java/android/support/v4/util/
LruCache.java 23 * Static library version of {@link android.util.LruCache}. Used to write apps
29 public class LruCache<K, V> {
47 public LruCache(int maxSize) {
323 return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]",

Completed in 307 milliseconds

1 2 3 4