/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ |
ApplicationData.java | 57 File cacheDir = new File(appDir, "cache"); 58 return cacheDir.exists() || cacheDir.mkdir(); 74 String cacheDir = targetContext.getCacheDir().getAbsolutePath(); 75 return cacheDir.substring(0, cacheDir.lastIndexOf('/'));
|
/frameworks/base/test-runner/src/android/test/ |
InstrumentationCoreTestRunner.java | 66 File cacheDir = getTargetContext().getCacheDir(); 72 System.setProperty("java.home", cacheDir.getAbsolutePath()); 73 System.setProperty("user.home", cacheDir.getAbsolutePath()); 74 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
|
/frameworks/volley/src/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);
|
/libcore/crypto/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);
|
/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/core/runner/src/android/test/ |
InstrumentationCtsTestRunner.java | 77 File cacheDir = getTargetContext().getCacheDir(); 83 System.setProperty("java.home", cacheDir.getAbsolutePath()); 84 System.setProperty("user.home", cacheDir.getAbsolutePath()); 85 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath()); 86 System.setProperty("user.dir", cacheDir.getAbsolutePath());
|
/external/dexmaker/src/main/java/com/google/dexmaker/ |
AppDataDirGuesser.java | 90 File cacheDir = new File(dataDir, "cache"); 92 if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) { 93 if (isWriteableDirectory(cacheDir)) { 94 results.add(cacheDir);
|
/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() + "/";
|
/packages/apps/Mms/src/com/android/mms/util/ |
CacheManager.java | 49 File cacheDir = PUT_CACHE_ON_SDCARD ? context.getExternalCacheDir() 51 String path = cacheDir.getAbsolutePath() + "/" + filename; 82 File cacheDir = PUT_CACHE_ON_SDCARD ? context.getExternalCacheDir() 84 String prefix = cacheDir.getAbsolutePath() + "/";
|
/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);
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/printing/ |
PrintingControllerTest.java | 103 final File cacheDir = getInstrumentation().getTargetContext().getCacheDir(); 104 final File tempFile = File.createTempFile(TEMP_FILE_NAME, TEMP_FILE_EXTENSION, cacheDir);
|
/external/smack/src/org/jivesoftware/smackx/entitycaps/cache/ |
SimpleDirectoryPersistentCache.java | 50 private File cacheDir; 55 * cacheDir exists and that it's an directory. 61 * @param cacheDir 63 public SimpleDirectoryPersistentCache(File cacheDir) { 64 this(cacheDir, Base32Encoder.getInstance()); 69 * cacheDir exists and that it's an directory. 71 * If your cacheDir is case insensitive then make sure to set the 74 * @param cacheDir The directory where the cache will be stored. 77 public SimpleDirectoryPersistentCache(File cacheDir, StringEncoder filenameEncoder) { 78 if (!cacheDir.exists() [all...] |
/frameworks/base/core/tests/coretests/src/android/net/http/ |
HttpResponseCacheTest.java | 34 private File cacheDir; 40 cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); 50 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 57 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 58 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 63 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 64 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); 87 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 97 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 103 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
AttachmentUtils.java | 174 final File cacheDir = context.getCacheDir(); 176 final long totalSpace = cacheDir.getTotalSpace(); 178 final long usableSpace = cacheDir.getUsableSpace() - attachment.size; 190 file = File.createTempFile(dateFormat.format(new Date()), ".attachment", cacheDir); 226 final long usableSpace = cacheDir.getUsableSpace();
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
LoadDataWithBaseUrlTest.java | 307 File cacheDir = getActivity().getCacheDir(); 308 File tempImage = File.createTempFile("test_image", ".png", cacheDir);
|
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/ |
ImageCache.java | 642 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/"; 643 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
HttpOverSpdyTest.java | 84 File cacheDir = new File(systemTmpDir, "HttpCache-" + UUID.randomUUID()); 85 cache = new HttpResponseCache(cacheDir, Integer.MAX_VALUE);
|
/frameworks/base/core/java/android/app/backup/ |
BackupAgent.java | 257 String cacheDir = getCacheDir().getCanonicalPath(); 270 filterSet.add(cacheDir); 321 String cacheDir; 333 cacheDir = getCacheDir().getCanonicalPath(); 354 if (filePath.startsWith(cacheDir) || filePath.startsWith(libDir)) {
|
/frameworks/native/cmds/installd/ |
utils.c | 512 cache_dir_t* cacheDir = NULL; 524 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 550 if (cacheDir == NULL) { 551 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 553 if (cacheDir != NULL) { 560 _add_cache_files(cache, cacheDir, name, subdir, pathBase, 579 if (cacheDir == NULL) { 580 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 583 cacheDir->hiddenCount++; 586 if (cacheDir != NULL) [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
EasOutboxService.java | 329 * @param cacheDir the cache directory for this context 333 int sendMessage(File cacheDir, long msgId) throws IOException, MessagingException { 339 File tmpFile = File.createTempFile("eas_", "tmp", cacheDir); 511 File cacheDir = mContext.getCacheDir(); 527 int result = sendMessage(cacheDir, msgId);
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
AppCacheTest.java | 128 File cacheDir = mContext.getCacheDir(); 129 assertNotNull(cacheDir); 130 createTestFiles1(cacheDir, "testtmpdir", 5); 139 verifyTestFiles1(cacheDir, "testtmpdir", 5); 145 File cacheDir = mContext.getCacheDir(); 146 assertNotNull(cacheDir); 147 createTestFiles1(cacheDir, "testtmpdir", 5); 229 File cacheDir = mContext.getCacheDir(); 231 File testTmpDir = new File(cacheDir, testDirName); 363 void createTestFiles1(File cacheDir, String testFilePrefix, int numTestFiles) [all...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/http/ |
HttpResponseCacheTest.java | 109 File cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); 110 cache = new HttpResponseCache(cacheDir, Integer.MAX_VALUE); [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
SSLSocketTest.java | [all...] |
/packages/apps/Email/src/com/android/email/service/ |
AttachmentDownloadService.java | 393 File cacheDir = mContext.getCacheDir(); 410 (canPrefetchForAccount(account, cacheDir))) { [all...] |