Home
last modified time | relevance | path

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

/external/vogar/src/vogar/android/
DDeviceFileCache.java53 File cachedFile = new File(cacheRoot, key); in existsInCache() local
54 return cachedFiles.contains(cachedFile); in existsInCache()
59 File cachedFile = new File(cacheRoot, key); in copyFromCache() local
60 cp(cachedFile, destination); in copyFromCache()
65 File cachedFile = new File(cacheRoot, key); in copyToCache() local
69 File temporary = new File(cachedFile + ".tmp"); in copyToCache()
71 mv(cachedFile, temporary); in copyToCache()
74 private void mv(File cachedFile, File temporary) { in mv() argument
75 new Command(log, "adb", "shell", "mv", temporary.getPath(), cachedFile.getPath()).execute(); in mv()
/external/vogar/src/vogar/
DHostFileCache.java56 File cachedFile = new File(CACHE_ROOT, key); in copyFromCache() local
57 cp(cachedFile, destination); in copyFromCache()
61 File cachedFile = new File(CACHE_ROOT, key); in copyToCache() local
65 … File temporary = new File(cachedFile + ".tmp" + String.valueOf(ProcessHandle.current().pid())); in copyToCache()
67 mv(temporary, cachedFile); in copyToCache()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/network/
DNetworkCache.java59 File cachedFile; in fetch() local
61 cachedFile = getCachedFile(url); in fetch()
65 if (cachedFile == null) { in fetch()
71 inputStream = new FileInputStream(cachedFile); in fetch()
77 if (cachedFile.getAbsolutePath().endsWith(".zip")) { in fetch()
79 } else if (cachedFile.getAbsolutePath().endsWith(".gz")) { in fetch()
85 Logger.debug("Cache hit for " + url + " at " + cachedFile.getAbsolutePath()); in fetch()
/external/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/testing/
DBaseEmulatorHelperTest.java137 File cachedFile = new File(System.getProperty("java.io.tmpdir"), mockExternalForm); in testEmulatorHelperDownloadWithRetries() local
138 cachedFile.delete(); // Clear the cached version so we're always testing the download in testEmulatorHelperDownloadWithRetries()
144 cachedFile.delete(); // Cleanup in testEmulatorHelperDownloadWithRetries()