/aosp12/frameworks/base/test-runner/src/android/test/ |
H A D | RenamingDelegatingContext.java | 53 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 D | RenamingDelegatingContext.java | 43 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 D | PackageCacher.java | 50 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 D | RenderScriptCacheDir.java | 42 mCacheDir = cacheDir; in setupDiskCache() 46 static File mCacheDir; field in RenderScriptCacheDir
|
/aosp12/frameworks/rs/ |
H A D | rsScriptGroup2.h | 19 mName(name), mCacheDir(cacheDir) {} in ScriptGroup2() 27 const char* mCacheDir; variable
|
H A D | rsContext.h | 278 return mCacheDir; in getCacheDir() 378 char mCacheDir[PATH_MAX+1]; variable
|
H A D | rsContext.cpp | 445 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 D | EventHistoryImplTest.java | 78 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 D | IntrinsicBlurFilter.cpp | 36 if (!msg->findString("cacheDir", &mCacheDir)) { in configure() 48 if (!mRS->init(mCacheDir.c_str())) { in start()
|
H A D | SaturationFilter.cpp | 36 if (!msg->findString("cacheDir", &mCacheDir)) { in configure() 48 if (!mRS->init(mCacheDir.c_str())) { in start()
|
H A D | IntrinsicBlurFilter.h | 40 AString mCacheDir;
|
H A D | RSFilter.h | 44 AString mCacheDir;
|
H A D | SaturationFilter.h | 42 AString mCacheDir;
|
H A D | RSFilter.cpp | 44 if (!msg->findString("cacheDir", &mCacheDir)) { in configure()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/ |
H A D | UpdatableFontDirTest.java | 138 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 D | SupportLibraryTestGenerated.cpp | 85 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 D | TestGenerated.cpp | 81 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 D | TestCompilationCaching.cpp | 366 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 D | RenderScript.cpp | 150 memcpy(mCacheDir, name, nameLen); in init() 152 mCacheDir[nameLen] = 0; in init()
|
H A D | ScriptC.cpp | 28 … rs->mCacheDir, rs->mCacheDirLen, (const char *)codeTxt, codeLength); in ScriptC()
|
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
H A D | CompilationCachingTests.cpp | 235 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 D | CompilationCachingTests.cpp | 239 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 D | CompilationCachingTests.cpp | 236 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 D | rsCpuScriptGroup2.cpp | 194 compile(mGroup->mCacheDir); in CpuScriptGroup2Impl()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | ContextImpl.java | 334 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()
|