Home
last modified time | relevance | path

Searched refs:cacheDir (Results 1 – 17 of 17) sorted by relevance

/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
DHttpResponseCacheTest.java55 private File cacheDir; field in HttpResponseCacheTest
59 cacheDir = cacheRule.getRoot(); in setUp()
68 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in install()
75 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in secondEquivalentInstallDoesNothing()
76 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in secondEquivalentInstallDoesNothing()
81 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in installClosesPreviouslyInstalled()
84 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); in installClosesPreviouslyInstalled()
112 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in closeCloses()
124 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in closeUninstalls()
130 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in deleteUninstalls()
[all …]
/external/deqp/scripts/khr_util/
Dregistry_cache.py87 def checkoutFile (repository, revision, filename, cacheDir): argument
92 fullDstPath = os.path.join(cacheDir, "git")
103 def fetchFile (dstPath, repository, revision, filename, checksum, cacheDir): argument
113 data = checkoutFile(repository, revision, filename, cacheDir)
141 cacheDir = os.path.join(os.path.dirname(__file__), "cache")
142 cachePath = os.path.join(cacheDir, source.getCacheFilename())
145 …Path, source.getRepo(), source.getRevision(), source.getFilename(), source.getChecksum(), cacheDir)
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/
DAndroidTempFileLocator.java67 File cacheDir = new File(dataDir, "cache"); in guessPath() local
68 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) { in guessPath()
69 if (isWriteableDirectory(cacheDir)) { in guessPath()
70 results.add(cacheDir); in guessPath()
/external/dexmaker/dexmaker/src/main/java/com/android/dx/
DAppDataDirGuesser.java161 File cacheDir = new File(dataDir, "cache"); in guessPath() local
163 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) { in guessPath()
164 if (isWriteableDirectory(cacheDir)) { in guessPath()
165 results.add(cacheDir); in guessPath()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DFileClientSessionCacheTest.java31 File cacheDir = new File(tmpDir in testMaxSize() local
34 = FileClientSessionCache.usingDirectory(cacheDir); in testMaxSize()
54 assertEquals(FileClientSessionCache.MAX_SIZE, cacheDir.list().length); in testMaxSize()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DFileClientSessionCacheTest.java35 File cacheDir = new File(tmpDir in testMaxSize() local
38 = FileClientSessionCache.usingDirectory(cacheDir); in testMaxSize()
58 assertEquals(FileClientSessionCache.MAX_SIZE, cacheDir.list().length); in testMaxSize()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DDiskLruCacheTest.java57 private File cacheDir; field in DiskLruCacheTest
70 cache = new DiskLruCache(fileSystem, cacheDir, appVersion, 2, maxSize, executor); in createNewCacheWithSize()
78 cacheDir = tempDir.getRoot(); in setUp()
79 journalFile = new File(cacheDir, JOURNAL_FILE); in setUp()
80 journalBkpFile = new File(cacheDir, JOURNAL_FILE_BACKUP); in setUp()
632 DiskLruCache.create(fileSystem, cacheDir, appVersion, 2, 0); in constructorDoesNotAllowZeroCacheSize()
640 DiskLruCache.create(fileSystem, cacheDir, appVersion, 0, 10); in constructorDoesNotAllowZeroValuesPerEntry()
1064 cache = new DiskLruCache(fileSystem, cacheDir, appVersion, 2, Integer.MAX_VALUE, executor); in isClosed_uninitializedCache()
1086 cache = new DiskLruCache(fileSystem, cacheDir, appVersion, 2, Integer.MAX_VALUE, executor); in journalWriteFailsDuringEdit()
1114 cache = new DiskLruCache(fileSystem, cacheDir, appVersion, 2, Integer.MAX_VALUE, executor); in journalWriteFailsDuringEditorCommit()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/
DGlideBuilder.java168 File cacheDir = Glide.getPhotoCacheDir(context); in createGlide() local
169 if (cacheDir != null) { in createGlide()
170 diskCache = DiskLruCacheWrapper.get(cacheDir, Glide.DEFAULT_DISK_CACHE_SIZE); in createGlide()
DGlide.java123 File cacheDir = context.getCacheDir(); in getPhotoCacheDir() local
124 if (cacheDir != null) { in getPhotoCacheDir()
125 File result = new File(cacheDir, cacheName); in getPhotoCacheDir()
/external/cldr/tools/java/org/unicode/cldr/util/
DCachingEntityResolver.java55 File cacheDir = new File(getCacheDir()); in createAndEmptyCacheDir() local
56 cacheDir.mkdir(); in createAndEmptyCacheDir()
57 File cachedFiles[] = cacheDir.listFiles(); in createAndEmptyCacheDir()
/external/cldr/tools/scripts/web/
Dbugdiffs1067 my $cacheDir = "$CACHE/$relDir";
1070 opendir(DIR, $cacheDir);
1517 my $cacheDir = "$CACHE/$relDir";
1520 opendir(DIR, $cacheDir);
1869 my $cacheDir = "$CACHE/$relDir";
1885 if (-d $cacheDir) {
1886 if (!opendir(DIR, $cacheDir)) {
1887 print "Can't open dir $cacheDir: $!";
1897 debugOut ( " Removing $cacheDir/$_ .." ) if ($DEBUG);
1898 rmtree("$cacheDir/$_", 0, 1);
[all …]
/external/volley/src/main/java/com/android/volley/toolbox/
DVolley.java89 File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR); in newRequestQueue() local
90 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network); in newRequestQueue()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectricTestRunner.java122 File cacheDir = new File(new File(System.getProperty("java.io.tmpdir")), "robolectric-2"); in getJarResolver() local
127 if (cacheDir.exists() || cacheDir.mkdir()) { in getJarResolver()
128 Logger.info("Dependency cache location: %s", cacheDir.getAbsolutePath()); in getJarResolver()
129 …this.dependencyResolver = new CachedDependencyResolver(dependencyResolver, cacheDir, 60 * 60 * 24 … in getJarResolver()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/dependency/
DCachedDependencyResolver.java24 …public CachedDependencyResolver(DependencyResolver dependencyResolver, File cacheDir, long cacheVa… in CachedDependencyResolver() argument
25 …this(dependencyResolver, new FileCache(cacheDir, cacheValidTime), new DefaultCacheNamingStrategy()… in CachedDependencyResolver()
/external/tensorflow/tensorflow/lite/nnapi/
DNeuralNetworksShim.h912 ANeuralNetworksCompilation* compilation, const char* cacheDir, in ANeuralNetworksCompilation_setCaching() argument
915 EXECUTE_FUNCTION_RETURN(compilation, cacheDir, token); in ANeuralNetworksCompilation_setCaching()
Dnnapi_implementation.h789 ANeuralNetworksCompilation* compilation, const char* cacheDir,
DNeuralNetworksTypes.h464 ANeuralNetworksCompilation* compilation, const char* cacheDir,