/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/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 | 30 const char *cacheDir, size_t cacheDirLength) in ScriptC() argument 33 cacheDir, cacheDirLength, (const char *)codeTxt, codeLength); in ScriptC()
|
D | ScriptC.h | 33 const char *cacheDir, size_t cacheDirLength);
|
/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/rs/tests/ |
D | ScriptC_mono.cpp | 107 ScriptC_mono::ScriptC_mono(android::renderscriptCpp::RenderScript *rs, const char *cacheDir, size_t… in ScriptC_mono() argument 108 ScriptC(rs, __txt, sizeof(__txt), "mono.rs", 4, cacheDir, cacheDirLength) { in ScriptC_mono()
|
D | ScriptC_mono.h | 31 …ScriptC_mono(android::renderscriptCpp::RenderScript *rs, const char *cacheDir, size_t cacheDirLeng…
|
/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/rs/ |
D | rsScriptC.cpp | 197 const char *cacheDir, in runCompiler() argument 235 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler() 319 const char *cacheDir, size_t cacheDir_length, in rsi_ScriptCCreate() argument 324 if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) { in rsi_ScriptCCreate()
|
D | rsScriptC.h | 61 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
|
D | rs_hal.h | 77 char const *cacheDir,
|
D | rs.spec | 344 param const char * cacheDir
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 226 String cacheDir = getCacheDir().getCanonicalPath(); in onFullBackup() local 239 filterSet.add(cacheDir); in onFullBackup() 275 String cacheDir; in fullBackupFile() local 286 cacheDir = getCacheDir().getCanonicalPath(); in fullBackupFile() 299 if (filePath.startsWith(cacheDir) || filePath.startsWith(libDir)) { in fullBackupFile()
|
/frameworks/compile/libbcc/lib/ExecutionEngine/ |
D | Script.cpp | 216 int Script::prepareExecutable(char const *cacheDir, in prepareExecutable() argument 225 int status = internalLoadCache(cacheDir, cacheName, /* checkOnly */ false); in prepareExecutable() 251 int Script::internalLoadCache(char const *cacheDir, char const *cacheName, in internalLoadCache() argument 253 if ((cacheDir == NULL) || (cacheName == NULL)) { in internalLoadCache() 261 mCacheDir = cacheDir; in internalLoadCache()
|
D | Script.h | 136 int prepareExecutable(char const *cacheDir, 225 int internalLoadCache(char const *cacheDir, char const *cacheName,
|
D | bcc.cpp | 172 char const *cacheDir, in bccPrepareExecutable() argument 179 return unwrap(script)->prepareExecutable(cacheDir, cacheName, flags); in bccPrepareExecutable()
|
/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/compile/libbcc/include/bcc/ |
D | bcc.h | 123 char const *cacheDir,
|
/frameworks/rs/driver/ |
D | rsdBcc.h | 25 char const *resName, char const *cacheDir,
|
D | rsdBcc.cpp | 70 char const *cacheDir, in rsdScriptInit() argument 134 if (bccPrepareExecutable(drv->mBccScript, cacheDir, resName, 0) != 0) { in rsdScriptInit()
|
/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/base/graphics/java/android/renderscript/ |
D | RenderScript.java | 99 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument 100 File f = new File(cacheDir, CACHE_PATH); in setupDiskCache() 557 native int rsnScriptCCreate(int con, String resName, String cacheDir, in rsnScriptCCreate() argument 559 synchronized int nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { in nScriptCCreate() argument 561 return rsnScriptCCreate(mContext, resName, cacheDir, script, length); in nScriptCCreate()
|
/frameworks/base/core/java/android/view/ |
D | HardwareRenderer.java | 307 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument 308 nSetupShadersDiskCache(new File(cacheDir, CACHE_PATH_SHADERS).getAbsolutePath()); in setupDiskCache()
|
/frameworks/base/docs/html/training/displaying-bitmaps/ |
D | cache-bitmap.jd | 213 File cacheDir = getCacheDir(this, DISK_CACHE_SUBDIR); 214 mDiskCache = DiskLruCache.openCache(this, cacheDir, DISK_CACHE_SIZE);
|