Home
last modified time | relevance | path

Searched refs:cacheDir (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/app/
DGalleryAppImpl.java93 File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER); in getDownloadCache() local
95 if (!cacheDir.isDirectory()) cacheDir.mkdirs(); in getDownloadCache()
97 if (!cacheDir.isDirectory()) { in getDownloadCache()
99 "fail to create: " + cacheDir.getAbsolutePath()); in getDownloadCache()
101 mDownloadCache = new DownloadCache(this, cacheDir, DOWNLOAD_CAPACITY); in getDownloadCache()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCacheStorageUsageInfo.java57 File cacheDir = mContext.getExternalCacheDir(); in loadStorageInfo() local
58 if (cacheDir == null) { in loadStorageInfo()
59 cacheDir = mContext.getCacheDir(); in loadStorageInfo()
62 String path = cacheDir.getAbsolutePath(); in loadStorageInfo()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DCacheManager.java48 File cacheDir = context.getExternalCacheDir(); in getCache() local
49 String path = cacheDir.getAbsolutePath() + "/" + filename; in getCache()
75 File cacheDir = context.getExternalCacheDir(); in removeOldFilesIfNecessary() local
76 String prefix = cacheDir.getAbsolutePath() + "/"; in removeOldFilesIfNecessary()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DClipStorage.java194 public static File prepareStorage(File cacheDir) { in prepareStorage() argument
195 File clipDir = getClipDir(cacheDir); in prepareStorage()
202 private static File getClipDir(File cacheDir) { in getClipDir() argument
203 return new File(cacheDir, "clippings"); in getClipDir()
/packages/modules/NeuralNetworks/runtime/test/
DTestGenerated.cpp433 char* cacheDir = mkdtemp(cacheDirTemp); in SetUp() local
434 ASSERT_NE(cacheDir, nullptr); in SetUp()
435 mCacheDir = cacheDir; in SetUp()
DTestCompilationCaching.cpp364 char* cacheDir = mkdtemp(cacheDirTemp); in SetUp() local
365 ASSERT_NE(cacheDir, nullptr); in SetUp()
366 mCacheDir = cacheDir; in SetUp()
DSupportLibraryTestGenerated.cpp531 char* cacheDir = mkdtemp(cacheDirTemp); in SetUp() local
532 ASSERT_NE(cacheDir, nullptr); in SetUp()
533 mCacheDir = cacheDir; in SetUp()
DTestNeuralNetworksWrapper.h305 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching() argument
310 mCompilation, cacheDir.c_str(), token.data())); in setCaching()
DTestPartitioning.cpp2613 char* cacheDir = mkdtemp(cacheDirTemp); in SetUp() local
2614 ASSERT_NE(cacheDir, nullptr); in SetUp()
2615 mCacheDir = cacheDir; in SetUp()
/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp119 int CompilationBuilder::setCaching(const std::string& cacheDir, const uint8_t* token) { in setCaching() argument
125 std::string path = cacheDir; in setCaching()
DManager.cpp404 const auto& cacheDir = std::get<CacheDir>(cacheInfo.variant); in getCacheHandles() local
405 CHECK(cacheDir.empty() || cacheDir.back() == '/'); in getCacheHandles()
406 std::string cacheFileName = cacheDir + filename; in getCacheHandles()
407 const uint32_t cacheTypeIdentifierIndex = cacheDir.size() + kByteSizeOfCacheToken * 2; in getCacheHandles()
DCompilationBuilder.h51 int setCaching(const std::string& cacheDir, const uint8_t* token);
DNeuralNetworks.cpp1225 const char* cacheDir, const uint8_t* token) { in ANeuralNetworksCompilation_setCaching() argument
1227 if (!compilation || !cacheDir || !token) { in ANeuralNetworksCompilation_setCaching()
1232 return c->setCaching(cacheDir, token); in ANeuralNetworksCompilation_setCaching()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h509 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { argument
514 mCompilation, cacheDir.c_str(), token.data())));
DNeuralNetworks.h555 const char* cacheDir, const uint8_t* token)
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h402 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching() argument
407 mCompilation, cacheDir.c_str(), token.data())); in setCaching()
/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h397 const char* cacheDir, const uint8_t* token);
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java757 File cacheDir = getContext().getCacheDir(); in getBackup() local
758 File backupOutput = File.createTempFile("backup", runId, cacheDir); in getBackup()