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

1 2 3

  /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...]
  /frameworks/native/include/utils/
LruCache.h 29 class LruCache {
31 explicit LruCache(uint32_t maxCapacity);
47 Iterator(const LruCache<TKey, TValue>& cache): mCache(cache), mIndex(-1) {
67 const LruCache<TKey, TValue>& mCache;
72 LruCache(const LruCache& that); // disallow copy constructor
99 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity): mMaxCapacity(maxCapacity),
105 void LruCache<K, V>::setOnEntryRemovedListener(OnEntryRemoved<K, V>* listener) {
110 size_t LruCache<TKey, TValue>::size() const
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
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...]
  /frameworks/native/libs/utils/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...]
  /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;
TextDropShadowCache.h 24 #include <utils/LruCache.h>
164 LruCache<ShadowText, ShadowTexture*> mCache;
FontRenderer.h 20 #include <utils/LruCache.h>
154 LruCache<Font::FontDescription, Font*> mActiveFonts;
GradientCache.h 24 #include <utils/LruCache.h>
184 LruCache<GradientCacheEntry, Texture*> mCache;
PathCache.h 22 #include <utils/LruCache.h>
319 LruCache<PathDescription, PathTexture*> 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) {
BaseImageList.java 37 private final LruCache<Integer, BaseImage> mCache =
38 new LruCache<Integer, BaseImage>(CACHE_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 26 import android.util.LruCache;
55 private LruCache<String, Fragment> mFragmentCache = new FragmentCache(DEFAULT_CACHE_SIZE);
177 private class FragmentCache extends LruCache<String, Fragment> {
  /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%%]",
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
AndroidWordLevelSpellCheckerSession.java 26 import android.util.LruCache;
68 private final LruCache<String, SuggestionsParams> mUnigramSuggestionsInfoCache =
69 new LruCache<String, SuggestionsParams>(MAX_CACHE_SIZE);
  /frameworks/base/core/jni/android/graphics/
TextLayoutCache.h 25 #include <utils/LruCache.h>
258 LruCache<TextLayoutCacheKey, sp<TextLayoutValue> > mCache;

Completed in 922 milliseconds

1 2 3