/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | DiskLruCacheTest.java | 40 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/ |
D | DiskLruCacheWrapper.java | 9 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/ |
D | Cache.java | 19 import com.squareup.okhttp.internal.DiskLruCache; 159 private final DiskLruCache cache; 173 this.cache = DiskLruCache.create(fileSystem, directory, VERSION, ENTRY_COUNT, maxSize); in Cache() 182 DiskLruCache.Snapshot snapshot; in get() 234 DiskLruCache.Editor editor = null; in put() 254 DiskLruCache.Snapshot snapshot = ((CacheResponseBody) cached.body()).snapshot; in update() 255 DiskLruCache.Editor editor = null; in update() 267 private void abortQuietly(DiskLruCache.Editor editor) { in abortQuietly() 322 final Iterator<DiskLruCache.Snapshot> delegate = cache.snapshots(); in urls() 332 DiskLruCache.Snapshot snapshot = delegate.next(); in urls() [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | Cache.java | 20 import com.android.okhttp.internal.DiskLruCache; 161 private final DiskLruCache cache; 175 this.cache = DiskLruCache.create(fileSystem, directory, VERSION, ENTRY_COUNT, maxSize); in Cache() 184 DiskLruCache.Snapshot snapshot; in get() 236 DiskLruCache.Editor editor = null; in put() 256 DiskLruCache.Snapshot snapshot = ((CacheResponseBody) cached.body()).snapshot; in update() 257 DiskLruCache.Editor editor = null; in update() 269 private void abortQuietly(DiskLruCache.Editor editor) { in abortQuietly() 324 final Iterator<DiskLruCache.Snapshot> delegate = cache.snapshots(); in urls() 334 DiskLruCache.Snapshot snapshot = delegate.next(); in urls() [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/ |
D | DiskLruCache.java | 90 public final class DiskLruCache implements Closeable { class 172 synchronized (DiskLruCache.this) { 189 DiskLruCache(FileSystem fileSystem, File directory, int appVersion, int valueCount, long maxSize, in DiskLruCache() method in DiskLruCache 247 public static DiskLruCache create(FileSystem fileSystem, File directory, int appVersion, in create() 260 return new DiskLruCache(fileSystem, directory, appVersion, valueCount, maxSize, executor); in create() 306 assert (Thread.holdsLock(DiskLruCache.this)); in newJournalWriter() 730 synchronized (DiskLruCache.this) { in snapshots() 756 DiskLruCache.this.remove(removeSnapshot.key); in snapshots() 792 return DiskLruCache.this.edit(key, sequenceNumber); in edit() 864 synchronized (DiskLruCache.this) { in newSource() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
D | DiskLruCache.java | 88 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/ |
D | DiskLruCache.java | 85 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/ |
D | README.third_party | 1 URL: https://github.com/JakeWharton/DiskLruCache/tarball/7a1ecbd38d2ad0873fb843e911d60235b7434acb
|
/external/glide/ |
D | README.md | 230 …on for the [disk cache implementation](https://github.com/JakeWharton/DiskLruCache) Glide's disk c…
|