/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/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);
|
/external/llvm/test/ExecutionEngine/MCJIT/ |
load-object-a.ll | 2 ; RUN: rm -rf %t.cachedir %t.cachedir2 %t.cachedir3 3 ; RUN: mkdir -p %t.cachedir %t.cachedir2 %t.cachedir3 4 ; RUN: %lli_mcjit -extra-module=%p/Inputs/multi-module-b.ll -extra-module=%p/Inputs/multi-module-c.ll -enable-cache-manager -object-cache-dir=%t.cachedir %s 7 ; RUN: find %t.cachedir -type f -name 'multi-module-?.o' -exec mv -v '{}' %t.cachedir2 ';'
|
/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('/'));
|
/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);
|
/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 | 51 File cacheDir = PUT_CACHE_ON_SDCARD ? context.getExternalCacheDir() 53 String path = cacheDir.getAbsolutePath() + "/" + filename; 84 File cacheDir = PUT_CACHE_ON_SDCARD ? context.getExternalCacheDir() 86 String prefix = cacheDir.getAbsolutePath() + "/";
|
/frameworks/rs/ |
rsScriptC.cpp | 60 bool ScriptC::createCacheDir(const char *cacheDir) { 63 int statReturn = stat(cacheDir, &statBuf); 70 if (cacheDir[0] == '/') { 74 cacheDirString.setPathName(cacheDir); 236 const char *cacheDir, 240 //ALOGE("runCompiler %p %p %p %p %p %i", rsc, this, resName, cacheDir, bitcode, bitcodeLen); 275 if (!cacheDir) { 277 cacheDir = getenv("EXTERNAL_STORAGE"); 278 ALOGV("Cache dir changed to %s", cacheDir); 282 if (cacheDir && !createCacheDir(cacheDir)) [all...] |
rsScriptC.h | 66 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir, 78 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);
|
/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/glide/library/src/main/java/com/bumptech/glide/ |
GlideBuilder.java | 98 File cacheDir = Glide.getPhotoCacheDir(context); 99 if (cacheDir != null) { 100 diskCache = DiskLruCacheWrapper.get(cacheDir, Glide.DEFAULT_DISK_CACHE_SIZE);
|
/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);
|
/prebuilts/ndk/9/platforms/android-19/arch-arm/usr/include/rs/ |
rsScriptC.h | 59 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir, 71 bool createCacheDir(const char *cacheDir);
|
/prebuilts/ndk/9/platforms/android-19/arch-mips/usr/include/rs/ |
rsScriptC.h | 59 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir, 71 bool createCacheDir(const char *cacheDir);
|
/prebuilts/ndk/9/platforms/android-19/arch-x86/usr/include/rs/ |
rsScriptC.h | 59 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir, 71 bool createCacheDir(const char *cacheDir);
|
/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/cpp/ |
ScriptC.cpp | 25 const char *cacheDir, size_t cacheDirLength)
|
/frameworks/native/cmds/installd/ |
utils.c | 624 cache_dir_t* cacheDir = NULL; 636 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 662 if (cacheDir == NULL) { 663 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 665 if (cacheDir != NULL) { 672 _add_cache_files(cache, cacheDir, name, subdir, pathBase, 691 if (cacheDir == NULL) { 692 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); 695 cacheDir->hiddenCount++; 698 if (cacheDir != NULL) [all...] |
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/ |
HelloComputeNDK.java | 34 native void nativeMono(String cacheDir, int X, int Y, Bitmap in, Bitmap out);
|
/external/llvm/tools/lli/ |
lli.cpp | 251 // directory specified by CacheDir, using a filename provided in the module 253 // file exists. CacheDir defaults to "", in which case objects are cached 258 LLIObjectCache(const std::string& CacheDir) : CacheDir(CacheDir) { 260 if (!this->CacheDir.empty() && 261 this->CacheDir[this->CacheDir.size() - 1] != '/') 262 this->CacheDir += '/'; 272 if (!CacheDir.empty()) { // Create user-defined cache dir [all...] |
/frameworks/rs/cpu_ref/ |
rsCpuScript.cpp | 85 static void *loadSOHelper(const char *origName, const char *cacheDir, 111 std::string newName(cacheDir); 115 ALOGE("Could not verify or create cache dir: %s", cacheDir); 143 // Load the shared library referred to by cacheDir and resName. If we have 148 static void *loadSharedLibrary(const char *cacheDir, const char *resName) { 152 std::string scriptSOName(cacheDir); 157 ALOGE("Found peculiar cacheDir (missing \"cache\"): %s", cacheDir); 168 loaded = loadSOHelper(scriptSOName.c_str(), cacheDir, resName); 182 loaded = loadSOHelper(scriptSONameSystem.c_str(), cacheDir, [all...] |