Home
last modified time | relevance | path

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

123

/frameworks/rs/
DrsScriptC.cpp61 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()
[all …]
DrsCacheDir.cpp26 static std::string cacheDir; in rsQueryCacheDir() local
42 cacheDir = std::string(path_chars); in rsQueryCacheDir()
52 return cacheDir.c_str(); in rsQueryCacheDir()
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);
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp66 static std::string findSharedObjectName(const char *cacheDir, in findSharedObjectName() argument
69 std::string scriptSOName(cacheDir); in findSharedObjectName()
75 ALOGE("Found peculiar cacheDir (missing \"cache\"): %s", cacheDir); in findSharedObjectName()
125 const char *cacheDir, in createSharedLibrary() argument
129 std::string sharedLibName = findSharedObjectName(cacheDir, resName, reuse); in createSharedLibrary()
133 std::string objFileName = cacheDir; in createSharedLibrary()
195 void* SharedLibraryUtils::loadSharedLibrary(const char *cacheDir, in loadSharedLibrary() argument
204 std::string scriptSOName = findSharedObjectName(cacheDir, resName); in loadSharedLibrary()
209 loaded = loadSOHelper(scriptSOName.c_str(), cacheDir, resName, alreadyLoaded); in loadSharedLibrary()
224 loaded = loadSOHelper(scriptSONameApk.c_str(), cacheDir, resName); in loadSharedLibrary()
[all …]
DrsCpuScript.cpp62 const char* cacheDir, const char* resName, in setCompileArguments() argument
66 rsAssert(cacheDir && resName && core_lib); in setCompileArguments()
79 args->push_back(cacheDir); in setCompileArguments()
163 bool isChecksumNeeded(const char *cacheDir) { in isChecksumNeeded() argument
165 if ((::strcmp(SYSLIBPATH, cacheDir) == 0) || in isChecksumNeeded()
166 (::strcmp(sysLibPathVndk.c_str(), cacheDir) == 0) || in isChecksumNeeded()
167 (::strcmp(SYSLIBPATH_VENDOR, cacheDir) == 0)) in isChecksumNeeded()
300 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, in init() argument
326 std::string bcFileName(cacheDir); in init()
334 setCompileArguments(&compileArguments, bcFileName, cacheDir, resName, core_lib, in init()
[all …]
DrsCpuExecutable.h38 const char* cacheDir,
52 static void* loadSharedLibrary(const char *cacheDir, const char *resName,
70 static void *loadSOHelper(const char *origName, const char *cacheDir,
DrsCpuScriptGroup2.cpp363 void CpuScriptGroup2Impl::compile(const char* cacheDir) { in compile() argument
433 rsAssert(cacheDir != nullptr); in compile()
434 string objFilePath(cacheDir); in compile()
447 setupCompileArguments(inputs, kernelBatches, invokeBatches, cacheDir, in compile()
480 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName, nullptr, in compile()
539 getCpuRefImpl()->getContext()->getDriverName(), cacheDir, resName, in compile()
549 mScriptObj = SharedLibraryUtils::loadSharedLibrary(cacheDir, resName); in compile()
561 string cloneFilePath(cacheDir); in compile()
/frameworks/base/core/tests/coretests/src/android/text/
DFontFallbackSetup.java52 final File cacheDir = new File(targetCtx.getCacheDir(), testSubDir); in FontFallbackSetup() local
53 if (!cacheDir.isDirectory()) { in FontFallbackSetup()
54 final boolean dirsCreated = cacheDir.mkdirs(); in FontFallbackSetup()
59 mTestFontsDir = cacheDir.getAbsolutePath() + "/"; in FontFallbackSetup()
/frameworks/base/rs/java/android/renderscript/
DRenderScriptCacheDir.java36 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument
38 mCacheDir = cacheDir; in setupDiskCache()
/frameworks/base/services/core/java/com/android/server/pm/
DParallelPackageParser.java58 DisplayMetrics metrics, File cacheDir, PackageParser.Callback callback) { in ParallelPackageParser() argument
62 mCacheDir = cacheDir; in ParallelPackageParser()
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceSystemFallbackTest.java79 final File cacheDir = new File(targetCtx.getCacheDir(), "TypefaceSystemFallbackTest");
80 if (!cacheDir.isDirectory()) {
81 cacheDir.mkdirs(); in cacheDir.mkdirs()
83 TEST_FONT_DIR = cacheDir.getAbsolutePath() + "/fonts/";
84 TEST_FONTS_XML = new File(cacheDir, "fonts.xml").getAbsolutePath();
85 TEST_OEM_DIR = cacheDir.getAbsolutePath() + "/oem_fonts/";
86 TEST_OEM_XML = new File(cacheDir, "fonts_customization.xml").getAbsolutePath();
/frameworks/ml/nn/runtime/
DVersionedInterfaces.h224 const std::optional<Deadline>& deadline, const std::string& cacheDir,
394 const std::optional<Deadline>& deadline, const std::string& cacheDir,
397 const std::optional<Deadline>& deadline, const std::string& cacheDir,
DCompilationBuilder.cpp117 int CompilationBuilder::setCaching(const std::string& cacheDir, const uint8_t* token) { in setCaching() argument
123 mCacheDir = cacheDir; in setCaching()
DVersionedInterfaces.cpp1146 static bool getCacheHandles(const std::string& cacheDir, const CacheToken& token, in getCacheHandles() argument
1157 CHECK(cacheDir.empty() || cacheDir.back() == '/'); in getCacheHandles()
1158 std::string cacheFileName = cacheDir + filename; in getCacheHandles()
1161 cacheDir.size() + ANEURALNETWORKS_BYTE_SIZE_OF_CACHE_TOKEN * 2; in getCacheHandles()
1208 const std::optional<Deadline>& deadline, const std::string& cacheDir, in prepareModelInternal() argument
1218 !getCacheHandles(cacheDir, *maybeToken, kNumberOfCacheFilesNeeded, in prepareModelInternal()
1391 const std::string& cacheDir, in prepareModelFromCacheInternal() argument
1401 if (!getCacheHandles(cacheDir, token, kNumberOfCacheFilesNeeded, in prepareModelFromCacheInternal()
1472 const std::optional<Deadline>& deadline, const std::string& cacheDir, in prepareModel() argument
1477 prepareModelFromCacheInternal(deadline, cacheDir, *maybeToken); in prepareModel()
[all …]
DCompilationBuilder.h52 int setCaching(const std::string& cacheDir, const uint8_t* token);
/frameworks/rs/cpp/
DScriptC.cpp25 const char *cacheDir, size_t cacheDirLength) in ScriptC() argument
/frameworks/rs/tests/lldb/jni/InfiniteLoop/src/com/android/rs/jniinfiniteloop/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/frameworks/rs/tests/lldb/jni/NoDebugWaitAttach/src/com/android/rs/jninodebugwaitattach/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/frameworks/rs/tests/lldb/jni/MultipleRSFiles/src/com/android/rs/jnimultiplersfiles/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/frameworks/rs/tests/lldb/jni/BranchingFunCalls/src/com/android/rs/jnibranchingfuncalls/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/frameworks/rs/tests/lldb/jni/Allocations/src/com/android/rs/jniallocations/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/frameworks/rs/tests/lldb/jni/DebugWaitAttach/src/com/android/rs/jniwaitattachdebug/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/frameworks/rs/tests/lldb/jni/KernelVariables/src/com/android/rs/jnikernelvariables/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument

123