Lines Matching refs:cacheDir
61 bool ScriptC::createCacheDir(const char *cacheDir) { in createCacheDir() argument
63 const std::string cacheDirString(cacheDir); in createCacheDir()
66 int statReturn = stat(cacheDir, &statBuf); in createCacheDir()
262 static bool dumpBitcodeFile(const char *cacheDir, const char *resName, in dumpBitcodeFile() argument
265 std::string f(cacheDir); in dumpBitcodeFile()
272 if (!ScriptC::createCacheDir(cacheDir)) { in dumpBitcodeFile()
296 const char *cacheDir, in runCompiler() argument
333 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) { in runCompiler()
343 if (!cacheDir) { in runCompiler()
345 cacheDir = getenv("EXTERNAL_STORAGE"); in runCompiler()
346 ALOGV("Cache dir changed to %s", cacheDir); in runCompiler()
350 if (cacheDir && !createCacheDir(cacheDir)) { in runCompiler()
355 if (!rsc->mHal.funcs.script.init(rsc, this, resName, cacheDir, bitcode, bitcodeLen, 0)) { in runCompiler()
444 const char *cacheDir, size_t cacheDir_length, in rsi_ScriptCCreate() argument
449 if (!s->runCompiler(rsc, resName, cacheDir, (uint8_t *)text, text_length)) { in rsi_ScriptCCreate()