Home
last modified time | relevance | path

Searched refs:mCacheDir (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/test-runner/src/android/test/
DRenamingDelegatingContext.java53 private File mCacheDir; field in RenamingDelegatingContext
237 if (mCacheDir == null) { in getCacheDir()
238 mCacheDir = new File(mFileContext.getCacheDir(), renamedFileName("cache")); in getCacheDir()
240 if (!mCacheDir.exists()) { in getCacheDir()
241 if(!mCacheDir.mkdirs()) { in getCacheDir()
247 Files.setPosixFilePermissions(mCacheDir.toPath(), in getCacheDir()
255 return mCacheDir; in getCacheDir()
/frameworks/ml/nn/runtime/
DCompilationBuilder.cpp63 mPlan.setCaching(&mCacheDir, mToken); in finish()
123 mCacheDir = cacheDir; in setCaching()
125 if (!mCacheDir.empty() && mCacheDir.back() != '/') { in setCaching()
126 mCacheDir.push_back('/'); in setCaching()
DExecutionPlan.h552 mCacheDir = cacheDir; in setCaching()
555 const std::string* getCacheDir() const { return mCacheDir; } in getCacheDir()
646 : mDevice(device), mModel(model), mCacheDir(cacheDir), mToken(token) {} in SimpleBody()
661 const std::string* mCacheDir; member
759 const std::string* mCacheDir = nullptr; variable
DCompilationBuilder.h100 std::string mCacheDir; variable
DExecutionPlan.cpp720 const int n = compile(*mDevice, *mModel, executionPreference, priority, deadline, *mCacheDir, in finish()
1472 mBody = new SimpleBody(device, model, mCacheDir, mToken); in becomeSingleStep()
/frameworks/base/rs/java/android/renderscript/
DRenderScriptCacheDir.java38 mCacheDir = cacheDir; in setupDiskCache()
42 static File mCacheDir; field in RenderScriptCacheDir
DRenderScript.java1406 if (RenderScriptCacheDir.mCacheDir == null) { in getCachePath()
1409 File f = new File(RenderScriptCacheDir.mCacheDir, CACHE_PATH); in getCachePath()
/frameworks/rs/
DrsScriptGroup2.h19 mName(name), mCacheDir(cacheDir) {} in ScriptGroup2()
27 const char* mCacheDir; variable
DrsContext.h278 return mCacheDir; in getCacheDir()
378 char mCacheDir[PATH_MAX+1]; variable
DrsContext.cpp445 memset(mCacheDir, 0, sizeof(mCacheDir)); in Context()
453 memcpy(mCacheDir, cacheDir_arg, length); in setCacheDir()
454 mCacheDir[length] = 0; in setCacheDir()
/frameworks/base/services/core/java/com/android/server/pm/
DParallelPackageParser.java48 private final File mCacheDir; field in ParallelPackageParser
62 mCacheDir = cacheDir; in ParallelPackageParser()
114 pp.setCacheDir(mCacheDir); in submit()
/frameworks/av/media/libstagefright/filters/
DIntrinsicBlurFilter.cpp36 if (!msg->findString("cacheDir", &mCacheDir)) { in configure()
48 if (!mRS->init(mCacheDir.c_str())) { in start()
DSaturationFilter.cpp36 if (!msg->findString("cacheDir", &mCacheDir)) { in configure()
48 if (!mRS->init(mCacheDir.c_str())) { in start()
DRSFilter.h44 AString mCacheDir;
DSaturationFilter.h42 AString mCacheDir;
DIntrinsicBlurFilter.h40 AString mCacheDir;
DRSFilter.cpp44 if (!msg->findString("cacheDir", &mCacheDir)) { in configure()
/frameworks/ml/nn/runtime/test/
DTestGenerated.cpp78 std::string mCacheDir; member in android::nn::generated_tests::GeneratedTests
122 EXPECT_EQ(compilation1.setCaching(mCacheDir, mToken), Result::NO_ERROR); in compileModel()
125 EXPECT_EQ(compilation2.setCaching(mCacheDir, mToken), Result::NO_ERROR); in compileModel()
372 mCacheDir = cacheDir; in SetUp()
383 nftw(mCacheDir.c_str(), callback, 128, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); in TearDown()
DTestCompilationCaching.cpp356 mCacheDir = cacheDir; in SetUp()
362 std::filesystem::remove_all(mCacheDir); in TearDown()
382 ASSERT_EQ(ANeuralNetworksCompilation_setCaching(compilation, mCacheDir.c_str(), in compileModel()
404 std::string mCacheDir; member in __anondf3c1f010111::CompilationCachingTest
DTestPartitioning.cpp2053 mCacheDir = cacheDir; in SetUp()
2058 std::filesystem::remove_all(mCacheDir); in TearDown()
2088 compilation.setCaching(mCacheDir.c_str(), tokenIn); in getTransformedCacheTokenSingle()
2206 std::string mCacheDir; member in __anon83dd480d0111::CacheTest
/frameworks/rs/cpp/
DScriptC.cpp28 … rs->mCacheDir, rs->mCacheDirLen, (const char *)codeTxt, codeLength); in ScriptC()
DRenderScript.cpp150 memcpy(mCacheDir, name, nameLen); in init()
152 mCacheDir[nameLen] = 0; in init()
/frameworks/base/core/java/android/app/
DContextImpl.java252 private File mCacheDir; field in ContextImpl
739 if (mCacheDir == null) { in getCacheDir()
740 mCacheDir = new File(getDataDir(), "cache"); in getCacheDir()
742 return ensurePrivateCacheDirExists(mCacheDir, XATTR_INODE_CACHE); in getCacheDir()
/frameworks/rs/cpu_ref/
DrsCpuScriptGroup2.cpp194 compile(mGroup->mCacheDir); in CpuScriptGroup2Impl()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java305 private File mCacheDir; field in PackageParser
571 mCacheDir = cacheDir; in setCacheDir()
1184 if (mCacheDir == null) { in getCachedResult()
1189 final File cacheFile = new File(mCacheDir, cacheKey); in getCachedResult()
1225 if (mCacheDir == null) { in cacheResult()
1231 final File cacheFile = new File(mCacheDir, cacheKey); in cacheResult()

12