Home
last modified time | relevance | path

Searched refs:cacheDir (Results 1 – 25 of 52) 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 …]
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);
DrsApiStubs.cpp115 std::string cacheDir; in queryCacheDir() local
131 cacheDir = std::string(path_chars); in queryCacheDir()
143 return cacheDir; in queryCacheDir()
261 extern "C" void rsContextSetCacheDir (RsContext ctxWrapper, const char * cacheDir, size_t cacheDir_… in rsContextSetCacheDir() argument
263 RS_DISPATCH(ctxWrapper, ContextSetCacheDir, cacheDir, cacheDir_length); in rsContextSetCacheDir()
525 const char * cacheDir, size_t cacheDir_length, in rsScriptGroup2Create() argument
530 cacheDir, cacheDir_length, in rsScriptGroup2Create()
618 const char * cacheDir, size_t cacheDir_length, in rsScriptCCreate() argument
621 …return RS_DISPATCH(ctxWrapper, ScriptCCreate, resName, resName_length, cacheDir, cacheDir_length, … in rsScriptCCreate()
/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 …]
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp62 static std::string findSharedObjectName(const char *cacheDir, in findSharedObjectName() argument
65 std::string scriptSOName(cacheDir); in findSharedObjectName()
71 ALOGE("Found peculiar cacheDir (missing \"cache\"): %s", cacheDir); in findSharedObjectName()
105 const char *cacheDir, in createSharedLibrary() argument
109 std::string sharedLibName = findSharedObjectName(cacheDir, resName, reuse); in createSharedLibrary()
113 std::string objFileName = cacheDir; in createSharedLibrary()
163 void* SharedLibraryUtils::loadSharedLibrary(const char *cacheDir, in loadSharedLibrary() argument
172 std::string scriptSOName = findSharedObjectName(cacheDir, resName); in loadSharedLibrary()
177 loaded = loadSOHelper(scriptSOName.c_str(), cacheDir, resName, alreadyLoaded); in loadSharedLibrary()
192 loaded = loadSOHelper(scriptSONameSystem.c_str(), cacheDir, 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()
157 bool isChecksumNeeded(const char *cacheDir) { in isChecksumNeeded() argument
158 if ((::strcmp(SYSLIBPATH, cacheDir) == 0) || in isChecksumNeeded()
159 (::strcmp(SYSLIBPATH_VENDOR, cacheDir) == 0)) in isChecksumNeeded()
292 bool RsdCpuScriptImpl::init(char const *resName, char const *cacheDir, in init() argument
318 std::string bcFileName(cacheDir); in init()
326 setCompileArguments(&compileArguments, bcFileName, cacheDir, resName, core_lib, in init()
330 mChecksumNeeded = isChecksumNeeded(cacheDir); 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/rs/java/android/renderscript/
DRenderScriptCacheDir.java33 public static void setupDiskCache(File cacheDir) { in setupDiskCache() argument
35 mCacheDir = cacheDir; in setupDiskCache()
/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/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/rs/rsov/driver/
DrsovScript.cpp50 const char *cacheDir) { in setCompilerArgs() argument
51 rsAssert(bcFileName && cacheDir); in setCompilerArgs()
86 std::vector<uint32_t> compileBitcode(const char *resName, const char *cacheDir, in compileBitcode() argument
92 std::string bcFileName(cacheDir); in compileBitcode()
99 auto args = setCompilerArgs(bcFileName.c_str(), cacheDir); in compileBitcode()
108 std::string spvFileName(cacheDir); in compileBitcode()
686 char const *cacheDir, uint8_t const *bitcode, in rsovScriptInit() argument
691 script, resName, cacheDir, bitcode, bitcodeSize, flags)); in rsovScriptInit()
707 compileBitcode(resName, cacheDir, (const char *)bitcode, bitcodeSize); in rsovScriptInit()
/frameworks/rs/cpp/
DScriptC.cpp25 const char *cacheDir, size_t cacheDirLength) in ScriptC() 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/lldb/jni/Allocations/src/com/android/rs/jniallocations/
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/DebugWaitAttach/src/com/android/rs/jniwaitattachdebug/
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/BranchingFunCalls/src/com/android/rs/jnibranchingfuncalls/
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/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
/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()

123