/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/Gallery2/src/com/android/gallery3d/app/ |
GalleryAppImpl.java | 83 File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER); 85 if (!cacheDir.isDirectory()) cacheDir.mkdirs(); 87 if (!cacheDir.isDirectory()) { 89 "fail to create: " + cacheDir.getAbsolutePath()); 91 mDownloadCache = new DownloadCache(this, cacheDir, DOWNLOAD_CAPACITY);
|
/frameworks/rs/cpp/ |
ScriptC.cpp | 30 const char *cacheDir, size_t cacheDirLength) 33 cacheDir, cacheDirLength, (const char *)codeTxt, codeLength);
|
ScriptC.h | 33 const char *cacheDir, size_t cacheDirLength);
|
/development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/ |
DiskLruCache.java | 82 * @param cacheDir 86 public static DiskLruCache openCache(Context context, File cacheDir, long maxByteSize) { 87 if (!cacheDir.exists()) { 88 cacheDir.mkdir(); 91 if (cacheDir.isDirectory() && cacheDir.canWrite() 92 && Utils.getUsableSpace(cacheDir) > maxByteSize) { 93 return new DiskLruCache(cacheDir, maxByteSize); 104 * @param cacheDir 107 private DiskLruCache(File cacheDir, long maxByteSize) [all...] |
Utils.java | 89 final String cacheDir = "/Android/data/" + context.getPackageName() + "/cache/"; 90 return new File(Environment.getExternalStorageDirectory().getPath() + cacheDir);
|
/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 | 56 File cacheDir = mContext.getExternalCacheDir(); 57 if (cacheDir == null) { 58 cacheDir = mContext.getCacheDir(); 61 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/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/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/rs/tests/ |
ScriptC_mono.h | 31 ScriptC_mono(android::renderscriptCpp::RenderScript *rs, const char *cacheDir, size_t cacheDirLength);
|
/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());
|
/frameworks/rs/ |
rsScriptC.cpp | 197 const char *cacheDir, 201 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen); 235 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { 319 const char *cacheDir, size_t cacheDir_length, 324 if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) {
|
rsScriptC.h | 61 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
|
/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/base/core/java/android/webkit/ |
JniUtil.java | 82 File cacheDir = sContext.getCacheDir(); 83 if (cacheDir == null) { 86 sCacheDirectory = cacheDir.getAbsolutePath();
|
/frameworks/compile/slang/ |
slang_rs_reflection_cpp.cpp | 120 " const char *cacheDir, size_t cacheDirLength);"); 242 "(android::renderscriptCpp::RenderScript *rs, const char *cacheDir, size_t cacheDirLength) :"); 244 "\", 4, cacheDir, cacheDirLength) {");
|
/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/driver/ |
rsdBcc.h | 25 char const *resName, char const *cacheDir,
|