Home
last modified time | relevance | path

Searched refs:cacheDir (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/http/
DHttpResponseCacheTest.java32 private File cacheDir; field in HttpResponseCacheTest
37 cacheDir = new File(tmp, "HttpCache-" + UUID.randomUUID()); in setUp()
46 HttpResponseCache installed = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstall()
53 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing()
54 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing()
59 HttpResponseCache first = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testInstallClosesPreviouslyInstalled()
60 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); in testInstallClosesPreviouslyInstalled()
83 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testCloseCloses()
93 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testCloseUninstalls()
99 HttpResponseCache cache = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testDeleteUninstalls()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppCacheTest.java127 File cacheDir = mContext.getCacheDir(); in testFreeApplicationCacheAllFiles() local
128 assertNotNull(cacheDir); in testFreeApplicationCacheAllFiles()
129 createTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheAllFiles()
138 verifyTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheAllFiles()
144 File cacheDir = mContext.getCacheDir(); in testFreeApplicationCacheSomeFiles() local
145 assertNotNull(cacheDir); in testFreeApplicationCacheSomeFiles()
146 createTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheSomeFiles()
228 File cacheDir = mContext.getCacheDir(); in testAppCreateCacheFiles() local
230 File testTmpDir = new File(cacheDir, testDirName); in testAppCreateCacheFiles()
362 void createTestFiles1(File cacheDir, String testFilePrefix, int numTestFiles) { in createTestFiles1() argument
[all …]
/frameworks/compile/libbcc/lib/ExecutionEngine/
Dbcc.cpp127 char const *cacheDir, in bccPrepareSharedObject() argument
130 return unwrap(script)->prepareSharedObject(cacheDir, cacheName, flags); in bccPrepareSharedObject()
135 char const *cacheDir, in bccPrepareExecutable() argument
144 return unwrap(script)->prepareExecutable(cacheDir, cacheName, flags); in bccPrepareExecutable()
DScript.cpp181 int Script::prepareSharedObject(char const *cacheDir, in prepareSharedObject() argument
185 if (cacheDir && cacheName) { in prepareSharedObject()
187 mCacheDir = cacheDir; in prepareSharedObject()
208 int Script::prepareExecutable(char const *cacheDir, in prepareExecutable() argument
218 if (cacheDir && cacheName) { in prepareExecutable()
220 mCacheDir = cacheDir; in prepareExecutable()
DScript.h116 int prepareExecutable(char const *cacheDir,
120 int prepareSharedObject(char const *cacheDir,
/frameworks/base/test-runner/src/android/test/
DInstrumentationCoreTestRunner.java66 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/compile/libbcc/include/bcc/
Dbcc.h101 char const *cacheDir,
106 char const *cacheDir,
/frameworks/base/graphics/java/android/renderscript/
DScriptC.java99 String cacheDir = rs.getApplicationContext().getCacheDir().toString(); in internalCreate() local
102 return rs.nScriptCCreate(resName, cacheDir, pgm, pgmLength); in internalCreate()
DRenderScript.java499 native int rsnScriptCCreate(int con, String resName, String cacheDir, in rsnScriptCCreate() argument
501 synchronized int nScriptCCreate(String resName, String cacheDir, byte[] script, int length) { in nScriptCCreate() argument
503 return rsnScriptCCreate(mContext, resName, cacheDir, script, length); in nScriptCCreate()
/frameworks/base/libs/rs/
DrsScriptC.cpp193 const char *cacheDir, in runCompiler() argument
215 rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0); in runCompiler()
296 const char *cacheDir, size_t cacheDir_length, in rsi_ScriptCCreate() argument
301 if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) { in rsi_ScriptCCreate()
DrsScriptC.h60 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
Drs_hal.h74 char const *cacheDir,
Drs.spec310 param const char * cacheDir
/frameworks/base/core/java/android/app/backup/
DBackupAgent.java226 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/base/tests/CoreTests/android/core/
DSSLSocketTest.java1008 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/libs/rs/driver/
DrsdBcc.h25 char const *resName, char const *cacheDir,
DrsdBcc.cpp68 char const *cacheDir, in rsdScriptInit() argument
120 if (bccPrepareExecutable(drv->mBccScript, cacheDir, resName, 0) != 0) { in rsdScriptInit()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DLoadTestsAutoTest.java257 File cacheDir = targetContext.getCacheDir(); in copyRunnerAssetsToCache() local
263 new File(cacheDir, LOAD_TEST_RUNNER_FILES[i])); in copyRunnerAssetsToCache()
DLayoutTestsAutoTest.java467 File cacheDir = targetContext.getCacheDir(); in copyResultsAndRunnerAssetsToCache() local
472 OutputStream out = new FileOutputStream(new File(cacheDir, in copyResultsAndRunnerAssetsToCache()
/frameworks/base/graphics/jni/
Dandroid_renderscript_RenderScript.cpp935 jstring resName, jstring cacheDir, in nScriptCCreate() argument
941 AutoJavaStringToUTF8 cacheDirUTF(_env, cacheDir); in nScriptCCreate()