/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | HttpResponseCacheTest.java | 34 private File cacheDir; field in HttpResponseCacheTest 40 cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); in setUp() 50 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstall() 57 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing() 58 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing() 63 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstallClosesPreviouslyInstalled() 64 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); in testInstallClosesPreviouslyInstalled() 87 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testCloseCloses() 97 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testCloseUninstalls() 103 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testDeleteUninstalls() [all …]
|
/frameworks/rs/ |
D | rsScriptC.cpp | 66 bool ScriptC::createCacheDir(const char *cacheDir) { in createCacheDir() argument 69 int statReturn = stat(cacheDir, &statBuf); in createCacheDir() 76 if (cacheDir[0] == '/') { in createCacheDir() 80 cacheDirString.setPathName(cacheDir); in createCacheDir() 230 const char *cacheDir, in runCompiler() argument 269 if (!cacheDir) { in runCompiler() 271 cacheDir = getenv("EXTERNAL_STORAGE"); in runCompiler() 272 ALOGV("Cache dir changed to %s", cacheDir); in runCompiler() 276 if (cacheDir && !createCacheDir(cacheDir)) { in runCompiler() 281 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler() [all …]
|
D | rsScriptC.h | 59 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir, 71 bool createCacheDir(const char *cacheDir);
|
D | rs.spec | 352 param const char * cacheDir
|
D | rs_hal.h | 96 char const *cacheDir,
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppCacheTest.java | 128 File cacheDir = mContext.getCacheDir(); in testFreeApplicationCacheAllFiles() local 129 assertNotNull(cacheDir); in testFreeApplicationCacheAllFiles() 130 createTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheAllFiles() 139 verifyTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheAllFiles() 145 File cacheDir = mContext.getCacheDir(); in testFreeApplicationCacheSomeFiles() local 146 assertNotNull(cacheDir); in testFreeApplicationCacheSomeFiles() 147 createTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheSomeFiles() 229 File cacheDir = mContext.getCacheDir(); in testAppCreateCacheFiles() local 231 File testTmpDir = new File(cacheDir, testDirName); in testAppCreateCacheFiles() 363 void createTestFiles1(File cacheDir, String testFilePrefix, int numTestFiles) { in createTestFiles1() argument [all …]
|
/frameworks/rs/cpp/ |
D | ScriptC.cpp | 28 const char *cacheDir, size_t cacheDirLength) in ScriptC() argument 31 cacheDir, cacheDirLength, (const char *)codeTxt, codeLength); in ScriptC()
|
/frameworks/base/test-runner/src/android/test/ |
D | InstrumentationCoreTestRunner.java | 66 File cacheDir = getTargetContext().getCacheDir(); in onCreate() local 72 System.setProperty("java.home", cacheDir.getAbsolutePath()); in onCreate() 73 System.setProperty("user.home", cacheDir.getAbsolutePath()); in onCreate() 74 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath()); in onCreate()
|
/frameworks/base/core/java/android/webkit/ |
D | JniUtil.java | 82 File cacheDir = sContext.getCacheDir(); in getCacheDirectory() local 83 if (cacheDir == null) { in getCacheDirectory() 86 sCacheDirectory = cacheDir.getAbsolutePath(); in getCacheDirectory()
|
/frameworks/volley/src/com/android/volley/toolbox/ |
D | Volley.java | 43 File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR); in newRequestQueue() local 66 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network); in newRequestQueue()
|
/frameworks/native/cmds/installd/ |
D | utils.c | 511 cache_dir_t* cacheDir = NULL; in _add_cache_files() local 523 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); in _add_cache_files() 549 if (cacheDir == NULL) { in _add_cache_files() 550 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); in _add_cache_files() 552 if (cacheDir != NULL) { in _add_cache_files() 559 _add_cache_files(cache, cacheDir, name, subdir, pathBase, in _add_cache_files() 578 if (cacheDir == NULL) { in _add_cache_files() 579 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); in _add_cache_files() 582 cacheDir->hiddenCount++; in _add_cache_files() 585 if (cacheDir != NULL) { in _add_cache_files() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 257 String cacheDir = getCacheDir().getCanonicalPath(); in onFullBackup() local 270 filterSet.add(cacheDir); in onFullBackup() 321 String cacheDir; in fullBackupFile() local 333 cacheDir = getCacheDir().getCanonicalPath(); in fullBackupFile() 354 if (filePath.startsWith(cacheDir) || filePath.startsWith(libDir)) { in fullBackupFile()
|
/frameworks/rs/driver/ |
D | rsdBcc.cpp | 41 char const *cacheDir, in rsdScriptInit() argument 46 RsdCpuReference::CpuScript * cs = dc->mCpuRef->createScript(script, resName, cacheDir, in rsdScriptInit()
|
D | rsdBcc.h | 24 char const *resName, char const *cacheDir,
|
/frameworks/base/tests/CoreTests/android/core/ |
D | SSLSocketTest.java | 1008 File cacheDir = new File(tmpDir in testFileBasedClientSessionCache() local 1010 deleteDir(cacheDir); in testFileBasedClientSessionCache() 1012 = FileClientSessionCache.usingDirectory(cacheDir); in testFileBasedClientSessionCache() 1038 fileCache = FileClientSessionCache.usingDirectory(cacheDir); in testFileBasedClientSessionCache() 1055 deleteDir(cacheDir); in testFileBasedClientSessionCache()
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | LoadTestsAutoTest.java | 275 File cacheDir = targetContext.getCacheDir(); in copyRunnerAssetsToCache() local 281 new File(cacheDir, LOAD_TEST_RUNNER_FILES[i])); in copyRunnerAssetsToCache()
|
D | LayoutTestsAutoTest.java | 471 File cacheDir = targetContext.getCacheDir(); in copyResultsAndRunnerAssetsToCache() local 476 OutputStream out = new FileOutputStream(new File(cacheDir, in copyResultsAndRunnerAssetsToCache()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuScript.h | 49 bool init(char const *resName, char const *cacheDir,
|
D | rsd_cpu.h | 115 virtual CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
|
D | rsCpuCore.h | 100 char const *resName, char const *cacheDir,
|
D | rsCpuScript.cpp | 115 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, in init() argument 158 exec = mCompilerDriver->build(*mCompilerContext, cacheDir, resName, in init() 192 String8 scriptSOName(cacheDir); in init()
|
D | rsCpuCore.cpp | 451 char const *resName, char const *cacheDir, in createScript() argument 456 if (!i->init(resName, cacheDir, bitcode, bitcodeSize, flags)) { in createScript()
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | RenderScript.java | 88 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument 89 File f = new File(cacheDir, CACHE_PATH); in setupDiskCache() 484 native int rsnScriptCCreate(int con, String resName, String cacheDir, in rsnScriptCCreate() argument 486 synchronized int nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { in nScriptCCreate() argument 488 return rsnScriptCCreate(mContext, resName, cacheDir, script, length); in nScriptCCreate()
|
/frameworks/base/graphics/java/android/renderscript/ |
D | RenderScript.java | 95 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument 97 mCacheDir = cacheDir; in setupDiskCache() 671 native int rsnScriptCCreate(int con, String resName, String cacheDir, in rsnScriptCCreate() argument 673 synchronized int nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { in nScriptCCreate() argument 675 return rsnScriptCCreate(mContext, resName, cacheDir, script, length); in nScriptCCreate()
|
/frameworks/base/docs/html/training/displaying-bitmaps/ |
D | cache-bitmap.jd | 207 File cacheDir = getDiskCacheDir(this, DISK_CACHE_SUBDIR); 208 new InitDiskCacheTask().execute(cacheDir); 216 File cacheDir = params[0]; 217 mDiskLruCache = DiskLruCache.open(cacheDir, DISK_CACHE_SIZE);
|