Home
last modified time | relevance | path

Searched refs:DiskLruCache (Results 1 – 7 of 7) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DDiskLruCacheTest.java40 import static com.squareup.okhttp.internal.DiskLruCache.JOURNAL_FILE;
41 import static com.squareup.okhttp.internal.DiskLruCache.JOURNAL_FILE_BACKUP;
42 import static com.squareup.okhttp.internal.DiskLruCache.MAGIC;
43 import static com.squareup.okhttp.internal.DiskLruCache.VERSION_1;
62 private DiskLruCache cache;
63 private final Deque<DiskLruCache> toClose = new ArrayDeque<>();
70 cache = new DiskLruCache(fileSystem, cacheDir, appVersion, 2, maxSize, executor); in createNewCacheWithSize()
156 DiskLruCache.Editor creator = cache.edit("k1"); in writeAndReadEntry()
163 DiskLruCache.Snapshot snapshot = cache.get("k1"); in writeAndReadEntry()
169 DiskLruCache.Editor creator = cache.edit("k1"); in readAndWriteEntryAcrossCacheOpenAndClose()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DDiskLruCacheWrapper.java9 import com.bumptech.glide.disklrucache.DiskLruCache;
31 private DiskLruCache diskLruCache;
56 private synchronized DiskLruCache getDiskCache() throws IOException { in getDiskCache()
58 diskLruCache = DiskLruCache.open(directory, APP_VERSION, VALUE_COUNT, maxSize); in getDiskCache()
71 final DiskLruCache.Value value = getDiskCache().get(safeKey); in get()
87 DiskLruCache.Editor editor = getDiskCache().edit(safeKey); in put()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DCache.java19 import com.squareup.okhttp.internal.DiskLruCache;
158 private final DiskLruCache cache;
172 this.cache = DiskLruCache.create(fileSystem, directory, VERSION, ENTRY_COUNT, maxSize); in Cache()
181 DiskLruCache.Snapshot snapshot; in get()
233 DiskLruCache.Editor editor = null; in put()
253 DiskLruCache.Snapshot snapshot = ((CacheResponseBody) cached.body()).snapshot; in update()
254 DiskLruCache.Editor editor = null; in update()
266 private void abortQuietly(DiskLruCache.Editor editor) { in abortQuietly()
321 final Iterator<DiskLruCache.Snapshot> delegate = cache.snapshots(); in urls()
331 DiskLruCache.Snapshot snapshot = delegate.next(); in urls()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DDiskLruCache.java88 public final class DiskLruCache implements Closeable { class
170 synchronized (DiskLruCache.this) {
187 DiskLruCache(FileSystem fileSystem, File directory, int appVersion, int valueCount, long maxSize, in DiskLruCache() method in DiskLruCache
245 public static DiskLruCache create(FileSystem fileSystem, File directory, int appVersion, in create()
258 return new DiskLruCache(fileSystem, directory, appVersion, valueCount, maxSize, executor); in create()
304 assert (Thread.holdsLock(DiskLruCache.this)); in newJournalWriter()
728 synchronized (DiskLruCache.this) { in snapshots()
754 DiskLruCache.this.remove(removeSnapshot.key); in snapshots()
789 return DiskLruCache.this.edit(key, sequenceNumber); in edit()
860 synchronized (DiskLruCache.this) { in newSource()
[all …]
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DDiskLruCache.java85 public final class DiskLruCache implements Closeable { class
162 synchronized (DiskLruCache.this) {
176 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { in DiskLruCache() method in DiskLruCache
195 public static DiskLruCache open(File directory, int appVersion, int valueCount, long maxSize) in open()
217 DiskLruCache cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); in open()
236 cache = new DiskLruCache(directory, appVersion, valueCount, maxSize); in open()
685 return DiskLruCache.this.edit(key, sequenceNumber); in edit()
720 synchronized (DiskLruCache.this) { in newInputStream()
745 synchronized (DiskLruCache.this) { in getFile()
/external/glide/third_party/disklrucache/
DREADME.third_party1 URL: https://github.com/JakeWharton/DiskLruCache/tarball/7a1ecbd38d2ad0873fb843e911d60235b7434acb
/external/glide/
DREADME.md230 …on for the [disk cache implementation](https://github.com/JakeWharton/DiskLruCache) Glide's disk c…