/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | SimpleCache.java | 64 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() 138 public SimpleCache(File cacheDir, CacheEvictor evictor) { in SimpleCache() argument 139 this(cacheDir, evictor, null, false); in SimpleCache() 155 public SimpleCache(File cacheDir, CacheEvictor evictor, @Nullable byte[] secretKey) { in SimpleCache() argument 156 this(cacheDir, evictor, secretKey, secretKey != null); in SimpleCache() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | SimpleCache.java | 64 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() 138 public SimpleCache(File cacheDir, CacheEvictor evictor) { in SimpleCache() argument 139 this(cacheDir, evictor, null, false); in SimpleCache() 155 public SimpleCache(File cacheDir, CacheEvictor evictor, @Nullable byte[] secretKey) { in SimpleCache() argument 156 this(cacheDir, evictor, secretKey, secretKey != null); in SimpleCache() [all …]
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/ |
D | HttpResponseCacheTest.java | 55 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_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
D | SimpleCacheSpanTest.java | 41 private File cacheDir; field in SimpleCacheSpanTest 45 cacheDir = in setUp() 52 Util.recursiveDelete(cacheDir); in tearDown() 80 File v3file = createTestFile(cacheDir, id + ".0.1.v3.exo"); in upgradeFileName() 81 File v2file = createTestFile(cacheDir, "abc%25def.1.2.v2.exo"); // %25 is '%' after escaping in upgradeFileName() 82 File wrongEscapedV2file = createTestFile(cacheDir, "abc%2Gdef.3.4.v2.exo"); // 2G is invalid hex in upgradeFileName() 83 File v1File = createTestFile(cacheDir, "abc%def.5.6.v1.exo"); // V1 did not escape in upgradeFileName() 85 for (File file : cacheDir.listFiles()) { in upgradeFileName() 99 File[] files = cacheDir.listFiles(); in upgradeFileName() 126 File cacheFile = SimpleCacheSpan.getCacheFile(cacheDir, id, offset, lastTouchTimestamp); in assertCacheSpan() [all …]
|
D | CachedContentIndexTest.java | 211 private File cacheDir; field in CachedContentIndexTest 215 cacheDir = in setUp() 221 Util.recursiveDelete(cacheDir); in tearDown() 241 cacheDir, cachedContent1.id, /* position= */ 10, /* timestamp= */ 30); in addGetRemove() 289 new FileOutputStream(new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC)); in legacyLoadV1() 310 new FileOutputStream(new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC)); in legacyLoadV2() 361 File file1 = new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC); in legacyEncryption() 362 File file2 = new File(cacheDir, "file2compare"); in legacyEncryption() 423 cacheDir, cachedContent.id, /* position= */ 10, /* timestamp= */ 30); in cantRemoveNotEmptyCachedContent() 475 cacheDir, in newLegacyInstance()
|
D | SimpleCacheTest.java | 52 private File cacheDir; field in SimpleCacheTest 60 cacheDir = new File(testDir, "cache"); in createTestDir() 81 assertThat(cacheDir.exists()).isTrue(); in newInstance_withEmptyDirectory() 95 assertThat(cacheDir.createNewFile()).isTrue(); in newInstance_withConflictingFile_fails() 107 SimpleCache simpleCache = new SimpleCache(cacheDir, new NoOpCacheEvictor()); in newInstance_withExistingCacheDirectory_withoutDatabase_loadsCachedData() 119 simpleCache = new SimpleCache(cacheDir, new NoOpCacheEvictor()); in newInstance_withExistingCacheDirectory_withoutDatabase_loadsCachedData() 175 cacheDir.renameTo(cacheDir2); in newInstance_withExistingCacheDirectory_withoutDatabase_resolvesInconsistentState() 198 cacheDir.renameTo(cacheDir2); in newInstance_withExistingCacheDirectory_withDatabase_resolvesInconsistentState() 240 assertNoCacheFiles(cacheDir); in newInstance_withEncryptedIndexAndWrongKey_clearsCache() 259 assertNoCacheFiles(cacheDir); in newInstance_withEncryptedIndexAndNoKey_clearsCache() [all …]
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/ |
D | SimpleCacheSpanTest.java | 41 private File cacheDir; field in SimpleCacheSpanTest 45 cacheDir = in setUp() 52 Util.recursiveDelete(cacheDir); in tearDown() 80 File v3file = createTestFile(cacheDir, id + ".0.1.v3.exo"); in upgradeFileName() 81 File v2file = createTestFile(cacheDir, "abc%25def.1.2.v2.exo"); // %25 is '%' after escaping in upgradeFileName() 82 File wrongEscapedV2file = createTestFile(cacheDir, "abc%2Gdef.3.4.v2.exo"); // 2G is invalid hex in upgradeFileName() 83 File v1File = createTestFile(cacheDir, "abc%def.5.6.v1.exo"); // V1 did not escape in upgradeFileName() 85 for (File file : cacheDir.listFiles()) { in upgradeFileName() 99 File[] files = cacheDir.listFiles(); in upgradeFileName() 126 File cacheFile = SimpleCacheSpan.getCacheFile(cacheDir, id, offset, lastTouchTimestamp); in assertCacheSpan() [all …]
|
D | CachedContentIndexTest.java | 211 private File cacheDir; field in CachedContentIndexTest 215 cacheDir = in setUp() 221 Util.recursiveDelete(cacheDir); in tearDown() 241 cacheDir, cachedContent1.id, /* position= */ 10, /* timestamp= */ 30); in addGetRemove() 289 new FileOutputStream(new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC)); in legacyLoadV1() 310 new FileOutputStream(new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC)); in legacyLoadV2() 361 File file1 = new File(cacheDir, CachedContentIndex.FILE_NAME_ATOMIC); in legacyEncryption() 362 File file2 = new File(cacheDir, "file2compare"); in legacyEncryption() 423 cacheDir, cachedContent.id, /* position= */ 10, /* timestamp= */ 30); in cantRemoveNotEmptyCachedContent() 475 cacheDir, in newLegacyInstance()
|
D | SimpleCacheTest.java | 52 private File cacheDir; field in SimpleCacheTest 60 cacheDir = new File(testDir, "cache"); in createTestDir() 81 assertThat(cacheDir.exists()).isTrue(); in newInstance_withEmptyDirectory() 95 assertThat(cacheDir.createNewFile()).isTrue(); in newInstance_withConflictingFile_fails() 107 SimpleCache simpleCache = new SimpleCache(cacheDir, new NoOpCacheEvictor()); in newInstance_withExistingCacheDirectory_withoutDatabase_loadsCachedData() 119 simpleCache = new SimpleCache(cacheDir, new NoOpCacheEvictor()); in newInstance_withExistingCacheDirectory_withoutDatabase_loadsCachedData() 175 cacheDir.renameTo(cacheDir2); in newInstance_withExistingCacheDirectory_withoutDatabase_resolvesInconsistentState() 198 cacheDir.renameTo(cacheDir2); in newInstance_withExistingCacheDirectory_withDatabase_resolvesInconsistentState() 240 assertNoCacheFiles(cacheDir); in newInstance_withEncryptedIndexAndWrongKey_clearsCache() 259 assertNoCacheFiles(cacheDir); in newInstance_withEncryptedIndexAndNoKey_clearsCache() [all …]
|
/external/cronet/base/android/junit/src/org/chromium/base/ |
D | PathUtilsTest.java | 39 String cacheDir = PathUtils.getCacheDirectory(); in testSetPrivateDataDirectorySuffix() local 43 assertEquals(cacheDir, expectedCacheDir); in testSetPrivateDataDirectorySuffix() 59 String cacheDir = PathUtils.getCacheDirectory(); in testSetPrivateDirectoryPath() local 63 assertEquals(cacheDir, expectedCacheDir); in testSetPrivateDirectoryPath() 79 String cacheDir = PathUtils.getCacheDirectory(); in testSetPrivateDirectoryPathWithoutBasePaths() local 83 assertEquals(cacheDir, expectedCacheDir); in testSetPrivateDirectoryPathWithoutBasePaths()
|
/external/deqp/scripts/khr_util/ |
D | registry_cache.py | 88 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/tensorflow/tensorflow/lite/delegates/nnapi/java/src/main/java/org/tensorflow/lite/nnapi/ |
D | NnApiDelegate.java | 94 public Options setCacheDir(String cacheDir) { in setCacheDir() argument 95 this.cacheDir = cacheDir; in setCacheDir() 164 return this.cacheDir; in getCacheDir() 204 private String cacheDir = null; field in NnApiDelegate.Options
|
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/ |
D | AndroidTempFileLocator.java | 67 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/cronet/base/android/java/src/org/chromium/base/ |
D | PathUtils.java | 126 File cacheDir = null; in setPrivateDirectoryPathInternal() local 128 cacheDir = new File(sCacheDirectoryBasePath); in setPrivateDirectoryPathInternal() 130 cacheDir = appContext.getCacheDir(); in setPrivateDirectoryPathInternal() 132 if (cacheDir != null) { in setPrivateDirectoryPathInternal() 134 cacheDir = new File(cacheDir, sCacheSubDirectory); in setPrivateDirectoryPathInternal() 137 cacheDir.mkdirs(); in setPrivateDirectoryPathInternal() 139 chmod(cacheDir.getPath(), 02700); in setPrivateDirectoryPathInternal() 141 paths[CACHE_DIRECTORY] = cacheDir.getPath(); in setPrivateDirectoryPathInternal()
|
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/test/java/com/google/android/exoplayer2/upstream/ |
D | CachedRegionTrackerTest.java | 60 private File cacheDir; field in CachedRegionTrackerTest 67 cacheDir = in setUp() 73 Util.recursiveDelete(cacheDir); in tearDown() 130 File cacheFile = createCacheSpanFile(cacheDir, position, length); in newCacheSpan() 134 public static File createCacheSpanFile(File cacheDir, long position, int length) in createCacheSpanFile() argument 136 File cacheFile = new File(cacheDir, "test." + position); in createCacheSpanFile()
|
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/upstream/ |
D | CachedRegionTrackerTest.java | 60 private File cacheDir; field in CachedRegionTrackerTest 67 cacheDir = in setUp() 73 Util.recursiveDelete(cacheDir); in tearDown() 130 File cacheFile = createCacheSpanFile(cacheDir, position, length); in newCacheSpan() 134 public static File createCacheSpanFile(File cacheDir, long position, int length) in createCacheSpanFile() argument 136 File cacheFile = new File(cacheDir, "test." + position); in createCacheSpanFile()
|
/external/volley/core/src/main/java/com/android/volley/toolbox/ |
D | Volley.java | 98 private File cacheDir = null; in newRequestQueue() 102 if (cacheDir == null) { in newRequestQueue() 103 cacheDir = new File(appContext.getCacheDir(), DEFAULT_CACHE_DIR); in newRequestQueue() 105 return cacheDir; in newRequestQueue()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | FileClientSessionCacheTest.java | 31 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/ |
D | FileClientSessionCacheTest.java | 35 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/ |
D | AppDataDirGuesser.java | 172 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/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | SystemLibraryOpenerAndroidTest.java | 94 Uri cacheDir = tmpUri.getRootUri(); in openCompressedFromFileWithCache_shouldSucceed() local 99 for (Uri child : storage.children(cacheDir)) { in openCompressedFromFileWithCache_shouldSucceed() 108 storage.open(uri, SystemLibraryOpener.create().withCacheDirectory(cacheDir)); in openCompressedFromFileWithCache_shouldSucceed() 112 storage.open(uri, SystemLibraryOpener.create().withCacheDirectory(cacheDir)); in openCompressedFromFileWithCache_shouldSucceed()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | DiskLruCacheTest.java | 57 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/ |
D | GlideBuilder.java | 168 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/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/ |
D | ShadowUtils.java | 102 File cacheDir = new File(partition, "Android/data/com.google.android.storage.test/cache"); in addExternalPackageDirs() local 104 externalCacheDirs.add(cacheDir); in addExternalPackageDirs() 105 return Arrays.asList(filesDir, cacheDir); in addExternalPackageDirs()
|
/external/cldr/tools/scripts/web/ |
D | bugdiffs | 1067 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 …]
|