/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...] |
/frameworks/rs/cpp/ |
ScriptC.cpp | 28 const char *cacheDir, size_t cacheDirLength) 31 cacheDir, cacheDirLength, (const char *)codeTxt, codeLength);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
GalleryAppImpl.java | 106 File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER); 108 if (!cacheDir.isDirectory()) cacheDir.mkdirs(); 110 if (!cacheDir.isDirectory()) { 112 "fail to create: " + cacheDir.getAbsolutePath()); 114 mDownloadCache = new DownloadCache(this, cacheDir, DOWNLOAD_CAPACITY);
|
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/ |
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/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() + "/";
|
/libcore/luni/src/test/java/libcore/io/ |
DiskLruCacheTest.java | 41 private File cacheDir; 49 cacheDir = new File(javaTmpDir, "DiskLruCacheTest"); 50 cacheDir.mkdir(); 51 journalFile = new File(cacheDir, JOURNAL_FILE); 52 for (File file : cacheDir.listFiles()) { 55 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 92 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 221 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 233 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 241 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE) [all...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/ |
DiskLruCacheTest.java | 47 private File cacheDir; 53 cacheDir = new File(javaTmpDir, "DiskLruCacheTest"); 54 cacheDir.mkdir(); 55 journalFile = new File(cacheDir, JOURNAL_FILE); 56 for (File file : cacheDir.listFiles()) { 59 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 93 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 220 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 232 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE); 240 cache = DiskLruCache.open(cacheDir, appVersion, 2, Integer.MAX_VALUE) [all...] |
/frameworks/rs/ |
rsScriptC.cpp | 65 bool ScriptC::createCacheDir(const char *cacheDir) { 68 int statReturn = stat(cacheDir, &statBuf); 75 if (cacheDir[0] == '/') { 79 cacheDirString.setPathName(cacheDir); 229 const char *cacheDir, 233 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen); 268 if (!cacheDir) { 270 cacheDir = getenv("EXTERNAL_STORAGE"); 271 ALOGV("Cache dir changed to %s", cacheDir); 275 if (cacheDir && !createCacheDir(cacheDir)) [all...] |
rsScriptC.h | 59 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir, 71 bool createCacheDir(const char *cacheDir);
|
/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);
|
/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/webkit/Source/WebKit2/UIProcess/mac/ |
WebContextMac.mm | 56 NSString *cacheDir = [defaults objectForKey:WebKitLocalCacheDefaultsKey]; 58 if (!cacheDir || ![cacheDir isKindOfClass:[NSString class]]) { 60 cacheDir = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches"]; 66 cacheDir = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:cacheDirectory length:cacheDirectoryLen - 1]; 70 return [cacheDir stringByAppendingPathComponent:appName];
|
/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...] |
/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);
|
/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());
|
/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/webkit/Source/WebKit/mac/Misc/ |
WebKitNSStringExtras.mm | 326 NSString *cacheDir = [defaults objectForKey:WebKitLocalCacheDefaultsKey]; 328 if (!cacheDir || ![cacheDir isKindOfClass:[NSString class]]) { 330 cacheDir = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches"]; 336 cacheDir = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:cacheDirectory length:cacheDirectoryLen - 1]; 340 return [cacheDir stringByAppendingPathComponent:bundleIdentifier];
|
/frameworks/native/cmds/installd/ |
utils.c | 511 cache_dir_t* cacheDir = NULL; 523 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 549 if (cacheDir == NULL) { 550 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 552 if (cacheDir != NULL) { 559 _add_cache_files(cache, cacheDir, name, subdir, pathBase, 578 if (cacheDir == NULL) { 579 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 582 cacheDir->hiddenCount++; 585 if (cacheDir != NULL) [all...] |
/frameworks/base/core/java/android/webkit/ |
JniUtil.java | 82 File cacheDir = sContext.getCacheDir(); 83 if (cacheDir == null) { 86 sCacheDirectory = cacheDir.getAbsolutePath();
|
/external/quake/quake/src/QW/client/ |
sys_android.c | 48 char *cachedir = "/tmp"; variable 394 // caching is disabled by default, use -cachedir to enable 395 // parms.cachedir = cachedir;
|
sys_linux.c | 45 char *cachedir = "/tmp";
variable 377 // caching is disabled by default, use -cachedir to enable
378 // parms.cachedir = cachedir;
|
/frameworks/rs/cpu_ref/ |
rsCpuCore.h | 100 char const *resName, char const *cacheDir,
|