Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/test-runner/src/android/test/
H A 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()
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DRenamingDelegatingContext.java43 private File mCacheDir; field in RenamingDelegatingContext
239 if (mCacheDir == null) { in getCacheDir()
240 mCacheDir = new File(mFileContext.getCacheDir(), renamedFileName("cache")); in getCacheDir()
242 if (!mCacheDir.exists()) { in getCacheDir()
243 if(!mCacheDir.mkdirs()) { in getCacheDir()
248 mCacheDir.getPath(), in getCacheDir()
253 return mCacheDir; in getCacheDir()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/parsing/
H A DPackageCacher.java50 private File mCacheDir; field in PackageCacher
53 this.mCacheDir = cacheDir; in PackageCacher()
150 final File cacheFile = new File(mCacheDir, cacheKey); in getCachedResult()
176 final File cacheFile = new File(mCacheDir, cacheKey); in cacheResult()
206 final File[] files = FileUtils.listFilesOrEmpty(mCacheDir, in cleanCachedResult()
/aosp12/frameworks/base/rs/java/android/renderscript/
H A DRenderScriptCacheDir.java42 mCacheDir = cacheDir; in setupDiskCache()
46 static File mCacheDir; field in RenderScriptCacheDir
/aosp12/frameworks/rs/
H A DrsScriptGroup2.h19 mName(name), mCacheDir(cacheDir) {} in ScriptGroup2()
27 const char* mCacheDir; variable
H A DrsContext.h278 return mCacheDir; in getCacheDir()
378 char mCacheDir[PATH_MAX+1]; variable
H A DrsContext.cpp445 memset(mCacheDir, 0, sizeof(mCacheDir)); in Context()
453 memcpy(mCacheDir, cacheDir_arg, length); in setCacheDir()
454 mCacheDir[length] = 0; in setCacheDir()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
H A DEventHistoryImplTest.java78 private File mCacheDir; field in EventHistoryImplTest
85 mCacheDir = ctx.getCacheDir(); in setUp()
86 mFile = new File(mCacheDir, "testdir"); in setUp()
232 EVENT_HISTORY_INJECTOR, mCacheDir, mMockScheduledExecutorService); in testEventHistoriesImplFromDisk()
/aosp12/frameworks/av/media/libstagefright/filters/
H A DIntrinsicBlurFilter.cpp36 if (!msg->findString("cacheDir", &mCacheDir)) { in configure()
48 if (!mRS->init(mCacheDir.c_str())) { in start()
H A DSaturationFilter.cpp36 if (!msg->findString("cacheDir", &mCacheDir)) { in configure()
48 if (!mRS->init(mCacheDir.c_str())) { in start()
H A DIntrinsicBlurFilter.h40 AString mCacheDir;
H A DRSFilter.h44 AString mCacheDir;
H A DSaturationFilter.h42 AString mCacheDir;
H A DRSFilter.cpp44 if (!msg->findString("cacheDir", &mCacheDir)) { in configure()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
H A DUpdatableFontDirTest.java138 private File mCacheDir; field in UpdatableFontDirTest
152 mCacheDir = new File(context.getCacheDir(), "UpdatableFontDirTest"); in setUp()
153 FileUtils.deleteContentsAndDir(mCacheDir); in setUp()
154 mCacheDir.mkdirs(); in setUp()
155 mUpdatableFontFilesDir = new File(mCacheDir, "updatable_fonts"); in setUp()
158 mPreinstalledFontDirs.add(new File(mCacheDir, "system_fonts")); in setUp()
159 mPreinstalledFontDirs.add(new File(mCacheDir, "product_fonts")); in setUp()
163 mConfigFile = new File(mCacheDir, "config.xml"); in setUp()
170 FileUtils.deleteContentsAndDir(mCacheDir); in tearDown()
636 File readonlyDir = new File(mCacheDir, "readonly"); in installFontFile_failedToWriteConfigXml()
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DSupportLibraryTestGenerated.cpp85 std::string mCacheDir; member in android::nn::generated_tests::GeneratedTests
195 modelCacheFilenames.push_back({mCacheDir + "/model" + std::to_string(i)}); in compileModel()
198 dataCacheFilenames.push_back({mCacheDir + "/data" + std::to_string(i)}); in compileModel()
211 EXPECT_EQ(compilation1.setCaching(mCacheDir, mToken), Result::NO_ERROR); in compileModel()
224 EXPECT_EQ(compilation2.setCaching(mCacheDir, mToken), Result::NO_ERROR); in compileModel()
533 mCacheDir = cacheDir; in SetUp()
546 nftw(mCacheDir.c_str(), callback, 128, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); in TearDown()
H A DTestGenerated.cpp81 std::string mCacheDir; member in android::nn::generated_tests::GeneratedTests
133 EXPECT_EQ(compilation1.setCaching(mCacheDir, mToken), Result::NO_ERROR); in compileModel()
136 EXPECT_EQ(compilation2.setCaching(mCacheDir, mToken), Result::NO_ERROR); in compileModel()
435 mCacheDir = cacheDir; in SetUp()
446 nftw(mCacheDir.c_str(), callback, 128, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); in TearDown()
H A DTestCompilationCaching.cpp366 mCacheDir = cacheDir; in SetUp()
372 std::filesystem::remove_all(mCacheDir); in TearDown()
392 ASSERT_EQ(ANeuralNetworksCompilation_setCaching(compilation, mCacheDir.c_str(), in compileModel()
415 std::string mCacheDir; member in __anone6e788b30110::CompilationCachingTest
/aosp12/frameworks/rs/cpp/
H A DRenderScript.cpp150 memcpy(mCacheDir, name, nameLen); in init()
152 mCacheDir[nameLen] = 0; in init()
H A DScriptC.cpp28 … rs->mCacheDir, rs->mCacheDirLen, (const char *)codeTxt, codeLength); in ScriptC()
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DCompilationCachingTests.cpp235 mCacheDir = cacheDir; in SetUp()
236 mCacheDir.push_back('/'); in SetUp()
249 mTmpCache = mCacheDir + "tmp"; in SetUp()
251 mModelCache.push_back({mCacheDir + "model" + std::to_string(i)}); in SetUp()
254 mDataCache.push_back({mCacheDir + "data" + std::to_string(i)}); in SetUp()
278 nftw(mCacheDir.c_str(), callback, 128, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); in TearDown()
449 std::string mCacheDir; member in aidl::android::hardware::neuralnetworks::vts::functional::CompilationCachingTestBase
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DCompilationCachingTests.cpp239 mCacheDir = cacheDir; in SetUp()
240 mCacheDir.push_back('/'); in SetUp()
252 mTmpCache = mCacheDir + "tmp"; in SetUp()
254 mModelCache.push_back({mCacheDir + "model" + std::to_string(i)}); in SetUp()
257 mDataCache.push_back({mCacheDir + "data" + std::to_string(i)}); in SetUp()
281 nftw(mCacheDir.c_str(), callback, 128, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); in TearDown()
391 std::string mCacheDir; member in android::hardware::neuralnetworks::V1_3::vts::functional::CompilationCachingTestBase
/aosp12/hardware/interfaces/neuralnetworks/1.2/vts/functional/
H A DCompilationCachingTests.cpp236 mCacheDir = cacheDir; in SetUp()
237 mCacheDir.push_back('/'); in SetUp()
249 mTmpCache = mCacheDir + "tmp"; in SetUp()
251 mModelCache.push_back({mCacheDir + "model" + std::to_string(i)}); in SetUp()
254 mDataCache.push_back({mCacheDir + "data" + std::to_string(i)}); in SetUp()
278 nftw(mCacheDir.c_str(), callback, 128, FTW_DEPTH | FTW_MOUNT | FTW_PHYS); in TearDown()
388 std::string mCacheDir; member in android::hardware::neuralnetworks::V1_2::vts::functional::CompilationCachingTestBase
/aosp12/frameworks/rs/cpu_ref/
H A DrsCpuScriptGroup2.cpp194 compile(mGroup->mCacheDir); in CpuScriptGroup2Impl()
/aosp12/frameworks/base/core/java/android/app/
H A DContextImpl.java334 private File mCacheDir; field in ContextImpl
855 if (mCacheDir == null) { in getCacheDir()
856 mCacheDir = new File(getDataDir(), "cache"); in getCacheDir()
858 return ensurePrivateCacheDirExists(mCacheDir, XATTR_INODE_CACHE); in getCacheDir()

12