Home
last modified time | relevance | path

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

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DSimpleCache.java64 private final File cacheDir; field in SimpleCache
95 public static void delete(File cacheDir, @Nullable DatabaseProvider databaseProvider) { in delete() argument
96 if (!cacheDir.exists()) { in delete()
100 File[] files = cacheDir.listFiles(); in delete()
102 cacheDir.delete(); in delete()
124 Util.recursiveDelete(cacheDir); in delete()
137 public SimpleCache(File cacheDir, CacheEvictor evictor) { in SimpleCache() argument
138 this(cacheDir, evictor, null, false); in SimpleCache()
154 public SimpleCache(File cacheDir, CacheEvictor evictor, @Nullable byte[] secretKey) { in SimpleCache() argument
155 this(cacheDir, evictor, secretKey, secretKey != null); in SimpleCache()
[all …]
DSimpleCacheSpan.java49 public static File getCacheFile(File cacheDir, int id, long position, long timestamp) { in getCacheFile() argument
50 return new File(cacheDir, id + "." + position + "." + timestamp + SUFFIX); in getCacheFile()
/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/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/cache/
DSimpleCacheSpanTest.java41 private File cacheDir; field in SimpleCacheSpanTest
45 cacheDir = in setUp()
52 Util.recursiveDelete(cacheDir); in tearDown()
78 File v3file = createTestFile(cacheDir, id + ".0.1.v3.exo"); in upgradeFileName()
79 File v2file = createTestFile(cacheDir, "abc%25def.1.2.v2.exo"); // %25 is '%' after escaping in upgradeFileName()
80 File wrongEscapedV2file = createTestFile(cacheDir, "abc%2Gdef.3.4.v2.exo"); // 2G is invalid hex in upgradeFileName()
81 File v1File = createTestFile(cacheDir, "abc%def.5.6.v1.exo"); // V1 did not escape in upgradeFileName()
83 for (File file : cacheDir.listFiles()) { in upgradeFileName()
97 File[] files = cacheDir.listFiles(); in upgradeFileName()
124 File cacheFile = SimpleCacheSpan.getCacheFile(cacheDir, id, offset, lastTouchTimestamp); in assertCacheSpan()
[all …]
DSimpleCacheTest.java50 private File cacheDir; field in SimpleCacheTest
55 cacheDir = Util.createTempFile(ApplicationProvider.getApplicationContext(), "ExoPlayerTest"); in setUp()
57 assertThat(cacheDir.delete()).isTrue(); in setUp()
62 Util.recursiveDelete(cacheDir); in tearDown()
73 assertThat(cacheDir.exists()).isTrue(); in cacheInitialization()
84 assertThat(cacheDir.createNewFile()).isTrue(); in cacheInitializationError()
105 assertNoCacheFiles(cacheDir); in committingOneFile()
213 cacheDir.renameTo(cacheDir2); in reloadCacheWithoutRelease()
264 assertNoCacheFiles(cacheDir); in encryptedIndexWrongKey()
283 assertNoCacheFiles(cacheDir); in encryptedIndexLostKey()
[all …]
DCachedContentIndexTest.java78 private File cacheDir; field in CachedContentIndexTest
82 cacheDir = in setUp()
88 Util.recursiveDelete(cacheDir); in tearDown()
108 cacheDir, cachedContent1.id, /* position= */ 10, /* timestamp= */ 30); in addGetRemove()
156 new FileOutputStream(new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC)); in legacyLoadV1()
177 new FileOutputStream(new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC)); in legacyLoadV2()
228 File file1 = new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC); in legacyEncryption()
229 File file2 = new File(cacheDir, "file2compare"); in legacyEncryption()
290 cacheDir, cachedContent.id, /* position= */ 10, /* timestamp= */ 30); in cantRemoveNotEmptyCachedContent()
342 cacheDir, in newLegacyInstance()
DCachedRegionTrackerTest.java60 private File cacheDir; field in CachedRegionTrackerTest
67 cacheDir = in setUp()
74 Util.recursiveDelete(cacheDir); in tearDown()
132 File cacheFile = createCacheSpanFile(cacheDir, id, position, length, 0); in newCacheSpan()
137 File cacheDir, int id, long offset, int length, long lastTouchTimestamp) throws IOException { in createCacheSpanFile() argument
138 File cacheFile = SimpleCacheSpan.getCacheFile(cacheDir, id, offset, lastTouchTimestamp); in createCacheSpanFile()
DCacheDataSourceTest2.java158 File cacheDir = context.getExternalCacheDir(); in buildCacheDataSource() local
159 Cache cache = new SimpleCache(new File(cacheDir, EXO_CACHE_DIR), new NoOpCacheEvictor()); in buildCacheDataSource()
/external/tensorflow/tensorflow/lite/delegates/nnapi/java/src/main/java/org/tensorflow/lite/nnapi/
DNnApiDelegate.java84 public Options setCacheDir(String cacheDir) { in setCacheDir() argument
85 this.cacheDir = cacheDir; in setCacheDir()
134 private String cacheDir = null; field in NnApiDelegate.Options
148 options.cacheDir, in NnApiDelegate()
216 String cacheDir, in createDelegate() argument
/external/deqp/scripts/khr_util/
Dregistry_cache.py88 def checkoutFile (repository, revision, filename, cacheDir): argument
100 fullDstPath = os.path.join(cacheDir, "git")
111 def fetchFile (dstPath, repository, revision, filename, checksum, cacheDir): argument
121 data = checkoutFile(repository, revision, filename, cacheDir)
149 cacheDir = os.path.join(os.path.dirname(__file__), "cache")
150 cachePath = os.path.join(cacheDir, source.getCacheFilename())
153 …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/volley/src/main/java/com/android/volley/toolbox/
DVolley.java94 private File cacheDir = null; in newRequestQueue()
98 if (cacheDir == null) { in newRequestQueue()
99 cacheDir = new File(appContext.getCacheDir(), DEFAULT_CACHE_DIR); in newRequestQueue()
101 return cacheDir; in newRequestQueue()
/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/dexmaker/dexmaker/src/main/java/com/android/dx/
DAppDataDirGuesser.java172 File cacheDir = new File(dataDir, "cache"); in guessPath() local
174 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) { in guessPath()
175 if (isWriteableDirectory(cacheDir)) { in guessPath()
176 results.add(cacheDir); in guessPath()
/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()
/external/swiftshader/tests/regres/cmd/regres/
Dmain.go81 cacheDir = flag.String("cache", "cache", "path to the output cache directory") var
104 cacheRoot: *cacheDir,
467 cacheDir := path.Join(r.cacheRoot, "deqp", hash)
468 buildDir := path.Join(cacheDir, "build")
469 if !util.IsDir(cacheDir) {
470 if err := os.MkdirAll(cacheDir, 0777); err != nil {
471 return deqpBuild{}, cause.Wrap(err, "Couldn't make deqp cache directory '%s'", cacheDir)
477 os.RemoveAll(cacheDir)
485 log.Printf("Checking out deqp %v branch %v into %v\n", cfg.Remote, cfg.Branch, cacheDir)
486 if err := git.CheckoutRemoteBranch(cacheDir, cfg.Remote, cfg.Branch); err != nil {
[all …]
/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/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/dokka/core/src/main/kotlin/Kotlin/
DExternalDocumentationLinkResolver.kt45 … val cacheDir: Path? = options.cacheRoot?.resolve("packageListCache")?.apply { toFile().mkdirs() } in toString() constant in org.jetbrains.dokka.ExternalDocumentationLinkResolver
84 val packageListStream = if (cacheDir != null && needsCache) { in loadPackageList()
89 val cacheEntry = cacheDir.resolve(hash).toFile() in loadPackageList()
/external/libchrome/base/android/java/src/org/chromium/base/library_loader/
DLibraryLoader.java762 File cacheDir = ContextCompat.getCodeCacheDir(ContextUtils.getApplicationContext()); in makeLibraryDirAndSetPermission() local
763 File libDir = new File(cacheDir, LIBRARY_DIR); in makeLibraryDirAndSetPermission()
764 cacheDir.mkdir(); in makeLibraryDirAndSetPermission()
765 cacheDir.setExecutable(true, false); in makeLibraryDirAndSetPermission()
/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/tensorflow/tensorflow/lite/experimental/acceleration/configuration/
Dnnapi_plugin_test.cc167 [](ANeuralNetworksCompilation* compilation, const char* cacheDir, in TEST_F()
169 if (std::string(cacheDir) != "d") return 1; in TEST_F()
/external/boringssl/src/util/fipstools/acvp/acvptool/
Dacvp.go136 cacheDir, err := os.Open(cachePath)
146 defer cacheDir.Close()
147 names, err := cacheDir.Readdirnames(0)

12