Home
last modified time | relevance | path

Searched refs:journalFile (Results 1 – 4 of 4) sorted by relevance

/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DDiskLruCache.java138 private final File journalFile; field in DiskLruCache
179 this.journalFile = new File(directory, JOURNAL_FILE); in DiskLruCache()
207 File journalFile = new File(directory, JOURNAL_FILE); in open() local
209 if (journalFile.exists()) { in open()
212 renameTo(backupFile, journalFile, false); in open()
218 if (cache.journalFile.exists()) { in open()
242 StrictLineReader reader = new StrictLineReader(new FileInputStream(journalFile), Util.US_ASCII); in readJournal()
274 new FileOutputStream(journalFile, true), Util.US_ASCII)); in readJournal()
376 if (journalFile.exists()) { in rebuildJournal()
377 renameTo(journalFile, journalFileBackup, true); in rebuildJournal()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DDiskLruCacheTest.java58 private File journalFile; field in DiskLruCacheTest
79 journalFile = new File(cacheDir, JOURNAL_FILE); in setUp()
389 BufferedSink sink = Okio.buffer(fileSystem.sink(journalFile)); in openWithTruncatedLineDiscardsThatLine()
707 fileSystem.rename(journalFile, journalBkpFile); in restoreBackupFile()
708 assertFalse(fileSystem.exists(journalFile)); in restoreBackupFile()
717 assertTrue(fileSystem.exists(journalFile)); in restoreBackupFile()
727 copyFile(journalFile, journalBkpFile); in journalFileIsPreferredOverBackupFile()
735 assertTrue(fileSystem.exists(journalFile)); in journalFileIsPreferredOverBackupFile()
749 assertTrue(fileSystem.exists(journalFile)); in journalFileIsPreferredOverBackupFile()
1077 fileSystem.setFaulty(journalFile, true); in journalWriteFailsDuringEdit()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/
DDiskLruCache.java145 private final File journalFile; field in DiskLruCache
194 this.journalFile = new File(directory, JOURNAL_FILE); in DiskLruCache()
212 if (fileSystem.exists(journalFile)) { in initialize()
215 fileSystem.rename(journalFileBackup, journalFile); in initialize()
220 if (fileSystem.exists(journalFile)) { in initialize()
264 BufferedSource source = Okio.buffer(fileSystem.source(journalFile)); in readJournal()
303 Sink fileSink = fileSystem.appendingSink(journalFile); in newJournalWriter()
408 if (fileSystem.exists(journalFile)) { in rebuildJournal()
409 fileSystem.rename(journalFile, journalFileBackup); in rebuildJournal()
411 fileSystem.rename(journalFileTmp, journalFile); in rebuildJournal()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DDiskLruCache.java143 private final File journalFile; field in DiskLruCache
192 this.journalFile = new File(directory, JOURNAL_FILE); in DiskLruCache()
210 if (fileSystem.exists(journalFile)) { in initialize()
213 fileSystem.rename(journalFileBackup, journalFile); in initialize()
218 if (fileSystem.exists(journalFile)) { in initialize()
262 BufferedSource source = Okio.buffer(fileSystem.source(journalFile)); in readJournal()
301 Sink fileSink = fileSystem.appendingSink(journalFile); in newJournalWriter()
406 if (fileSystem.exists(journalFile)) { in rebuildJournal()
407 fileSystem.rename(journalFile, journalFileBackup); in rebuildJournal()
409 fileSystem.rename(journalFileTmp, journalFile); in rebuildJournal()