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

1 2 3 4 5 6 7

  /hardware/qcom/display/msm8909/gpu_tonemapper/
EGLImageWrapper.h 23 #include <utils/LruCache.h>
37 android::LruCache<int, EGLImageBuffer *>* eglImageBufferMap;
  /hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
EGLImageWrapper.h 23 #include <utils/LruCache.h>
37 android::LruCache<int, EGLImageBuffer *>* eglImageBufferMap;
  /hardware/qcom/display/msm8998/gpu_tonemapper/
EGLImageWrapper.h 23 #include <utils/LruCache.h>
37 android::LruCache<int, EGLImageBuffer *>* eglImageBufferMap;
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowLruTest.java 5 import android.util.LruCache;
15 LruCache<Integer, String> lruCache = new LruCache<>(2);
16 lruCache.put(1, "one");
17 lruCache.put(2, "two");
18 lruCache.put(3, "three");
20 assertThat(lruCache.size()).isEqualTo(2);
21 assertThat(lruCache.get(1)).isNull();
22 assertThat(lruCache.get(2)).isEqualTo("two")
    [all...]
  /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...]
  /system/core/libutils/include/utils/
LruCache.h 38 class LruCache {
40 explicit LruCache(uint32_t maxCapacity);
41 virtual ~LruCache();
57 LruCache(const LruCache& that); // disallow copy constructor
126 Iterator(const LruCache<TKey, TValue>& cache):
155 const LruCache<TKey, TValue>& mCache;
163 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity)
174 LruCache<TKey, TValue>::~LruCache()
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
SafeKeyGenerator.java 4 import com.bumptech.glide.util.LruCache;
15 private final LruCache<Key, String> loadIdToSafeHash = new LruCache<Key, String>(1000);
LruResourceCache.java 7 import com.bumptech.glide.util.LruCache;
12 public class LruResourceCache extends LruCache<Key, Resource<?>> implements MemoryCache {
  /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) {
  /packages/apps/Dialer/java/com/android/dialer/util/
ExpirableCache.java 19 import android.util.LruCache;
79 * <p>This class wraps around an {@link LruCache} instance: it follows the {@link LruCache} behavior
80 * for evicting items when the cache is full. It is possible to supply your own subclass of LruCache
81 * by using the {@link #create(LruCache)} method, which can define a custom expiration policy. Since
103 private LruCache<K, CachedValue<V>> cache;
105 private ExpirableCache(LruCache<K, CachedValue<V>> cache) {
111 * Creates a new {@link ExpirableCache} that wraps the given {@link LruCache}.
121 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) {
133 return create(new LruCache<K, CachedValue<V>>(maxSize))
    [all...]
  /system/core/libutils/tests/
LruCache_test.cpp 22 #include <utils/LruCache.h>
97 typedef LruCache<ComplexKey, ComplexValue> ComplexCache;
154 LruCache<SimpleKey, StringValue> cache(100);
161 LruCache<SimpleKey, StringValue> cache(100);
173 LruCache<SimpleKey, StringValue> cache(2);
185 LruCache<SimpleKey, StringValue> cache(100);
198 LruCache<SimpleKey, StringValue> cache(100);
217 LruCache<SimpleKey, StringValue> cache(512);
301 LruCache<SimpleKey, StringValue> cache(100);
316 LruCache<SimpleKey, StringValue> cache(100)
    [all...]
  /frameworks/support/core/ktx/src/main/java/androidx/core/util/
LruCache.kt 19 import android.util.LruCache
22 * Creates an [LruCache] with the given parameters.
34 * @see LruCache.sizeOf
35 * @see LruCache.create
36 * @see LruCache.entryRemoved
38 inline fun <K : Any, V : Any> lruCache(
45 ): LruCache<K, V> {
46 return object : LruCache<K, V>(maxSize) {
  /packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
ShortcutCache.java 23 import android.util.LruCache;
29 * for handful of apps in an LruCache while launcher lives.
35 private final LruCache<ShortcutKey, ShortcutInfoCompat> mCachedShortcuts;
40 mCachedShortcuts = new LruCache<>(CACHE_SIZE);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
TargetPackageInfoGetterTask.java 23 import android.util.LruCache;
30 private static final LruCache<String, PackageInfo> sCache = new LruCache<>(MAX_CACHE_ENTRIES);
  /frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
TaskKeyLruCache.java 19 import android.util.LruCache;
39 private final LruCache<Integer, V> mCache;
48 mCache = new LruCache<Integer, V>(cacheSize) {
  /frameworks/opt/bitmap/src/com/android/bitmap/
UnrefedBitmapCache.java 20 import android.util.LruCache;
40 private LruCache<RequestKey, NullReusableBitmap> mNullRequests;
50 mNullRequests = new LruCache<RequestKey, NullReusableBitmap>(nullCapacity);
  /frameworks/support/leanback/src/main/java/androidx/leanback/widget/
CursorObjectAdapter.java 17 import android.util.LruCache;
28 private final LruCache<Integer, Object> mItemCache = new LruCache<Integer, Object>(CACHE_SIZE);
  /frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
BitmapLoader.java 24 import android.support.v4.util.LruCache;
50 static LruCache<Long, Bitmap> sLruCache;
58 * get or initialize LruCache, the max is set to full screen pixels.
60 static LruCache<Long, Bitmap> getLruCache(Context context) {
66 sLruCache = new LruCache<Long, Bitmap>(maxBytes) {
  /frameworks/support/collection/ktx/src/main/java/androidx/collection/
LruCache.kt 20 * Creates an [LruCache] with the given parameters.
32 * @see LruCache.sizeOf
33 * @see LruCache.create
34 * @see LruCache.entryRemoved
36 inline fun <K : Any, V : Any> lruCache(
43 ): LruCache<K, V> {
44 return object : LruCache<K, V>(maxSize) {
  /frameworks/base/libs/hwui/
TextureCache.h 24 #include <utils/LruCache.h>
128 LruCache<uint32_t, Texture*> mCache;
  /frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/graphics/
ImageLoader.java 24 import androidx.collection.LruCache;
33 * A LruCache used to store images which has a maximum size of 10% of the maximum heap size.
88 * {@link androidx.collection.LruCache}.
90 private static class BitmapCache extends LruCache<Long, Bitmap> {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/media/
MediaCache.java 18 import android.util.LruCache;
23 * A modified LruCache that is able to hold RefCountedMediaResource instances. It releases
30 public class MediaCache<T extends RefCountedMediaResource> extends LruCache<String, T> {
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
AlbumArtCache.java 21 import android.util.LruCache;
48 private final LruCache<String, Bitmap[]> mCache;
61 mCache = new LruCache<String, Bitmap[]>(maxSize) {
  /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.

Completed in 735 milliseconds

1 2 3 4 5 6 7