HomeSort by relevance Sort by last modified time
    Searched defs:cacheDir (Results 1 - 25 of 142) sorted by null

1 2 3 4 5 6

  /external/conscrypt/src/test/java/org/conscrypt/
FileClientSessionCacheTest.java 31 File cacheDir = new File(tmpDir
34 = FileClientSessionCache.usingDirectory(cacheDir);
54 assertEquals(FileClientSessionCache.MAX_SIZE, cacheDir.list().length);
  /frameworks/base/test-runner/src/android/test/
InstrumentationCoreTestRunner.java 61 File cacheDir = getTargetContext().getCacheDir();
67 System.setProperty("java.home", cacheDir.getAbsolutePath());
68 System.setProperty("user.home", cacheDir.getAbsolutePath());
69 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
  /frameworks/volley/src/main/java/com/android/volley/toolbox/
Volley.java 43 File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR);
65 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network);
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
GalleryAppImpl.java 93 File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER);
95 if (!cacheDir.isDirectory()) cacheDir.mkdirs();
97 if (!cacheDir.isDirectory()) {
99 "fail to create: " + cacheDir.getAbsolutePath());
101 mDownloadCache = new DownloadCache(this, cacheDir, DOWNLOAD_CAPACITY);
  /cts/tests/tests/net/src/android/net/http/cts/
HttpResponseCacheTest.java 40 private File cacheDir;
46 cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID());
47 cacheDir.mkdirs();
49 FileUtils.setPermissions(cacheDir.getPath(), 0777);
59 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
66 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
67 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
72 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
75 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024);
100 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024)
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/
GlideBuilder.java 168 File cacheDir = Glide.getPhotoCacheDir(context);
169 if (cacheDir != null) {
170 diskCache = DiskLruCacheWrapper.get(cacheDir, Glide.DEFAULT_DISK_CACHE_SIZE);
Glide.java 123 File cacheDir = context.getCacheDir();
124 if (cacheDir != null) {
125 File result = new File(cacheDir, cacheName);
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
CacheStorageUsageInfo.java 57 File cacheDir = mContext.getExternalCacheDir();
58 if (cacheDir == null) {
59 cacheDir = mContext.getCacheDir();
62 String path = cacheDir.getAbsolutePath();
  /packages/apps/Gallery2/src/com/android/gallery3d/util/
CacheManager.java 48 File cacheDir = context.getExternalCacheDir();
49 String path = cacheDir.getAbsolutePath() + "/" + filename;
75 File cacheDir = context.getExternalCacheDir();
76 String prefix = cacheDir.getAbsolutePath() + "/";
  /external/dexmaker/src/main/java/com/google/dexmaker/
AppDataDirGuesser.java 152 File cacheDir = new File(dataDir, "cache");
154 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) {
155 if (isWriteableDirectory(cacheDir)) {
156 results.add(cacheDir);
  /external/littlemock/src/com/google/testing/littlemock/
AppDataDirGuesser.java 105 File cacheDir = new File(dataDir, "cache");
106 if (fileOrDirExists(cacheDir) || makeDirectory(cacheDir)) {
107 if (isWriteableDirectory(cacheDir)) {
108 results.add(cacheDir);
  /cts/tests/core/runner/src/com/android/cts/runner/
CtsTestRunListener.java 71 File cacheDir = getInstrumentation().getTargetContext().getCacheDir();
72 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/android/
HttpResponseCacheTest.java 55 private File cacheDir;
59 cacheDir = cacheRule.getRoot();
68 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
75 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
76 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
81 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
84 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024);
112 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
124 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024);
130 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
AttachmentUtils.java 173 final File cacheDir = context.getCacheDir();
175 final long totalSpace = cacheDir.getTotalSpace();
177 final long usableSpace = cacheDir.getUsableSpace() - attachment.size;
189 file = File.createTempFile(dateFormat.format(new Date()), ".attachment", cacheDir);
225 final long usableSpace = cacheDir.getUsableSpace();
  /frameworks/av/media/libstagefright/filters/
MediaFilter.cpp 510 AString cacheDir;
511 if (!msg->findString("cacheDir", &cacheDir)) {
  /developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageCache.java 657 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/";
658 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
  /developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/
ImageCache.java 657 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/";
658 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
  /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
ImageCache.java 657 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/";
658 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
  /frameworks/base/core/tests/coretests/src/android/content/pm/
RegisteredServicesCacheTest.java 65 File cacheDir = mContext.getCacheDir();
66 mDataDir = new File(cacheDir, "testServicesCache");
AppCacheTest.java 130 File cacheDir = mContext.getCacheDir();
131 assertNotNull(cacheDir);
132 createTestFiles1(cacheDir, "testtmpdir", 5);
141 verifyTestFiles1(cacheDir, "testtmpdir", 5);
147 File cacheDir = mContext.getCacheDir();
148 assertNotNull(cacheDir);
149 createTestFiles1(cacheDir, "testtmpdir", 5);
231 File cacheDir = mContext.getCacheDir();
233 File testTmpDir = new File(cacheDir, testDirName);
365 void createTestFiles1(File cacheDir, String testFilePrefix, int numTestFiles)
    [all...]
  /frameworks/base/core/java/android/app/backup/
BackupAgent.java 319 final String cacheDir = ceContext.getCacheDir().getCanonicalPath();
347 traversalExcludeSet.add(cacheDir);
508 final String cacheDir;
533 cacheDir = ceContext.getCacheDir().getCanonicalPath();
567 if (filePath.startsWith(cacheDir)
    [all...]
  /frameworks/native/cmds/installd/
utils.cpp 678 cache_dir_t* cacheDir = NULL;
690 cacheDir = _add_cache_dir_t(cache, parentDir, dirName);
716 if (cacheDir == NULL) {
717 cacheDir = _add_cache_dir_t(cache, parentDir, dirName);
719 if (cacheDir != NULL) {
726 _add_cache_files(cache, cacheDir, name, subdir, pathBase,
745 if (cacheDir == NULL) {
746 cacheDir = _add_cache_dir_t(cache, parentDir, dirName);
749 cacheDir->hiddenCount++;
752 if (cacheDir != NULL)
    [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsProvider.java 532 final File cacheDir = new File(Environment.getDataSystemDeDirectory(userId), "ringtones");
533 cacheDir.mkdir();
534 SELinux.restorecon(cacheDir);
535 return cacheDir;
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DiskLruCacheTest.java 57 private File cacheDir;
70 cache = new DiskLruCache(fileSystem, cacheDir, appVersion, 2, maxSize, executor);
78 cacheDir = tempDir.getRoot();
79 journalFile = new File(cacheDir, JOURNAL_FILE);
80 journalBkpFile = new File(cacheDir, JOURNAL_FILE_BACKUP);
632 DiskLruCache.create(fileSystem, cacheDir, appVersion, 2, 0);
640 DiskLruCache.create(fileSystem, cacheDir, appVersion, 0, 10);
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
URLConnectionTest.java     [all...]

Completed in 2211 milliseconds

1 2 3 4 5 6