Home
last modified time | relevance | path

Searched refs:cacheDir (Results 1 – 25 of 56) 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()
DrsCpuScriptGroup2.h71 void compile(const char* cacheDir);
/frameworks/base/apct-tests/perftests/core/src/android/os/
DPackageParsingPerfTest.kt216 abstract class PackageCacher<PackageType : Parcelable>(private val cacheDir: File) { in <lambda>() constant in android.os.PackageCacher
219 val cacheFile = File(cacheDir, file.name) in <lambda>()
236 val cacheFile = File(cacheDir, file.name) in <lambda>()
262 class PackageCacher1(cacheDir: File) : PackageCacher<PackageParser.Package>(cacheDir) { in <lambda>()
269 class PackageCacher2(cacheDir: File) : PackageCacher<ParsingPackageRead>(cacheDir) { in <lambda>()
/frameworks/base/rs/java/android/renderscript/
DRenderScriptCacheDir.java40 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument
42 mCacheDir = cacheDir; in setupDiskCache()
/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/services/core/java/com/android/server/pm/parsing/
DPackageParser2.java118 DisplayMetrics displayMetrics, @Nullable File cacheDir, @NonNull Callback callback) {
129 mCacher = cacheDir == null ? null : new PackageCacher(cacheDir);
DPackageCacher.java52 public PackageCacher(@NonNull File cacheDir) { in PackageCacher() argument
53 this.mCacheDir = cacheDir; in PackageCacher()
/frameworks/rs/cpp/
DScriptC.cpp25 const char *cacheDir, size_t cacheDirLength) in ScriptC() argument
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceSystemFallbackTest.java81 final File cacheDir = new File(targetCtx.getCacheDir(), "TypefaceSystemFallbackTest");
82 if (!cacheDir.isDirectory()) {
83 cacheDir.mkdirs(); in cacheDir.mkdirs()
85 TEST_FONT_DIR = cacheDir.getAbsolutePath() + "/fonts/";
86 TEST_FONTS_XML = new File(cacheDir, "fonts.xml").getAbsolutePath();
87 TEST_OEM_DIR = cacheDir.getAbsolutePath() + "/oem_fonts/";
88 TEST_OEM_XML = new File(cacheDir, "fonts_customization.xml").getAbsolutePath();
89 TEST_UPDATABLE_FONT_DIR = cacheDir.getAbsolutePath() + "/updatable_fonts/";
/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/Allocations/src/com/android/rs/jniallocations/
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/InfiniteLoop/src/com/android/rs/jniinfiniteloop/
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/KernelVariables/src/com/android/rs/jnikernelvariables/
DMainActivity.java34 native void nativeRS(String cacheDir); in nativeRS() argument
/frameworks/rs/tests/java_api/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

123