Home
last modified time | relevance | path

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

12

/frameworks/rs/
DrsScriptC.cpp67 bool ScriptC::createCacheDir(const char *cacheDir) { in createCacheDir() argument
69 const std::string cacheDirString(cacheDir); in createCacheDir()
72 int statReturn = stat(cacheDir, &statBuf); in createCacheDir()
279 static bool dumpBitcodeFile(const char *cacheDir, const char *resName, in dumpBitcodeFile() argument
282 std::string f(cacheDir); in dumpBitcodeFile()
289 if (!ScriptC::createCacheDir(cacheDir)) { in dumpBitcodeFile()
314 const char *cacheDir, in runCompiler() argument
352 if (!dumpBitcodeFile(cacheDir, resName, "after", bitcode, bitcodeLen)) { in runCompiler()
363 if (!cacheDir) { in runCompiler()
365 cacheDir = getenv("EXTERNAL_STORAGE"); in runCompiler()
[all …]
DrsScriptGroup2.h16 ScriptGroup2(Context* rsc, const char* name, const char* cacheDir, in ScriptGroup2() argument
19 mName(name), mCacheDir(cacheDir) {} in ScriptGroup2()
DrsScriptGroup2.cpp22 const char* cacheDir, in rsi_ScriptGroup2Create() argument
25 ScriptGroup2* group = new ScriptGroup2(rsc, name, cacheDir, in rsi_ScriptGroup2Create()
DrsScriptC.h58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
66 static bool createCacheDir(const char *cacheDir);
Drs.spec35 param const char * cacheDir
476 param const char * cacheDir
531 param const char * cacheDir
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppCacheTest.java130 File cacheDir = mContext.getCacheDir(); in testFreeApplicationCacheAllFiles() local
131 assertNotNull(cacheDir); in testFreeApplicationCacheAllFiles()
132 createTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheAllFiles()
141 verifyTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheAllFiles()
147 File cacheDir = mContext.getCacheDir(); in testFreeApplicationCacheSomeFiles() local
148 assertNotNull(cacheDir); in testFreeApplicationCacheSomeFiles()
149 createTestFiles1(cacheDir, "testtmpdir", 5); in testFreeApplicationCacheSomeFiles()
231 File cacheDir = mContext.getCacheDir(); in testAppCreateCacheFiles() local
233 File testTmpDir = new File(cacheDir, testDirName); in testAppCreateCacheFiles()
365 void createTestFiles1(File cacheDir, String testFilePrefix, int numTestFiles) { in createTestFiles1() argument
[all …]
DRegisteredServicesCacheTest.java65 File cacheDir = mContext.getCacheDir(); in setUp() local
66 mDataDir = new File(cacheDir, "testServicesCache"); in setUp()
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp60 static std::string findSharedObjectName(const char *cacheDir, in findSharedObjectName() argument
63 std::string scriptSOName(cacheDir); in findSharedObjectName()
69 ALOGE("Found peculiar cacheDir (missing \"cache\"): %s", cacheDir); in findSharedObjectName()
93 const char *cacheDir, in createSharedLibrary() argument
95 std::string sharedLibName = findSharedObjectName(cacheDir, resName); in createSharedLibrary()
96 std::string objFileName = cacheDir; in createSharedLibrary()
131 void* SharedLibraryUtils::loadSharedLibrary(const char *cacheDir, in loadSharedLibrary() argument
140 std::string scriptSOName = findSharedObjectName(cacheDir, resName); in loadSharedLibrary()
145 loaded = loadSOHelper(scriptSOName.c_str(), cacheDir, resName, alreadyLoaded); in loadSharedLibrary()
160 loaded = loadSOHelper(scriptSONameSystem.c_str(), cacheDir, in loadSharedLibrary()
[all …]
DrsCpuScript.cpp85 const char* cacheDir, const char* resName, in setCompileArguments() argument
89 rsAssert(cacheDir && resName && core_lib); in setCompileArguments()
102 args->push_back(cacheDir); in setCompileArguments()
180 bool isChecksumNeeded(const char *cacheDir) { in isChecksumNeeded() argument
181 if ((::strcmp(SYSLIBPATH, cacheDir) == 0) || in isChecksumNeeded()
182 (::strcmp(SYSLIBPATH_VENDOR, cacheDir) == 0)) in isChecksumNeeded()
315 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, in init() argument
341 std::string bcFileName(cacheDir); in init()
349 setCompileArguments(&compileArguments, bcFileName, cacheDir, resName, core_lib, in init()
353 mChecksumNeeded = isChecksumNeeded(cacheDir); in init()
[all …]
DrsCpuScriptGroup2.cpp333 void CpuScriptGroup2Impl::compile(const char* cacheDir) { in compile() argument
383 rsAssert(cacheDir != nullptr); in compile()
384 string objFilePath(cacheDir); in compile()
399 setupCompileArguments(inputs, kernelBatches, invokeBatches, cacheDir, in compile()
428 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName, nullptr, in compile()
484 getCpuRefImpl()->getContext()->getDriverName(), cacheDir, resName)) { in compile()
492 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName); in compile()
501 string cloneFilePath(cacheDir); in compile()
DrsCpuExecutable.h33 const char* cacheDir,
45 static void* loadSharedLibrary(const char *cacheDir, const char *resName,
56 static void *loadSOHelper(const char *origName, const char *cacheDir,
DrsCpuScriptGroup2.h71 void compile(const char* cacheDir);
Drsd_cpu.h124 virtual CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
DrsCpuScript.h40 bool init(char const *resName, char const *cacheDir,
DrsCpuCore.h172 CpuScript * createScript(const ScriptC *s, char const *resName, char const *cacheDir,
/frameworks/base/test-runner/src/android/test/
DInstrumentationCoreTestRunner.java61 File cacheDir = getTargetContext().getCacheDir(); in onCreate() local
67 System.setProperty("java.home", cacheDir.getAbsolutePath()); in onCreate()
68 System.setProperty("user.home", cacheDir.getAbsolutePath()); in onCreate()
69 System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath()); in onCreate()
/frameworks/base/rs/java/android/renderscript/
DRenderScriptCacheDir.java33 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument
35 mCacheDir = cacheDir; in setupDiskCache()
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DVolley.java43 File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR); in newRequestQueue() local
65 RequestQueue queue = new RequestQueue(new DiskBasedCache(cacheDir), network); in newRequestQueue()
/frameworks/native/cmds/installd/
Dutils.cpp678 cache_dir_t* cacheDir = NULL; in _add_cache_files() local
690 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); in _add_cache_files()
716 if (cacheDir == NULL) { in _add_cache_files()
717 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); in _add_cache_files()
719 if (cacheDir != NULL) { in _add_cache_files()
726 _add_cache_files(cache, cacheDir, name, subdir, pathBase, in _add_cache_files()
745 if (cacheDir == NULL) { in _add_cache_files()
746 cacheDir = _add_cache_dir_t(cache, parentDir, dirName); in _add_cache_files()
749 cacheDir->hiddenCount++; in _add_cache_files()
752 if (cacheDir != NULL) { in _add_cache_files()
[all …]
/frameworks/rs/cpp/
DScriptC.cpp26 const char *cacheDir, size_t cacheDirLength) in ScriptC() argument
/frameworks/rs/driver/
DrsdBcc.cpp41 char const *cacheDir, in rsdScriptInit() argument
47 dc->mCpuRef->createScript(script, resName, cacheDir, bitcode, in rsdScriptInit()
DrsdBcc.h24 char const *resName, char const *cacheDir,
/frameworks/base/packages/StatementService/src/com/android/statementservice/
DDirectStatementService.java142 File cacheDir) { in onCreate() argument
148 File httpCacheDir = new File(cacheDir, CACHE_FILENAME); in onCreate()
/frameworks/rs/java/tests/HelloComputeNDK/src/com/example/android/rs/hellocomputendk/
DHelloComputeNDK.java33 native void nativeMono(String cacheDir, int X, int Y, Bitmap in, Bitmap out); in nativeMono() argument
/frameworks/base/core/java/android/app/backup/
DBackupAgent.java321 final String cacheDir = ceContext.getCacheDir().getCanonicalPath(); in onFullBackup() local
349 traversalExcludeSet.add(cacheDir); in onFullBackup()
510 final String cacheDir; in fullBackupFile() local
535 cacheDir = ceContext.getCacheDir().getCanonicalPath(); in fullBackupFile()
569 if (filePath.startsWith(cacheDir) in fullBackupFile()

12