Home
last modified time | relevance | path

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

12

/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/apps/TvFeedbackConsent/src/com/android/tv/feedbackconsent/
DTvFeedbackBugreportHelper.java47 private final File cacheDir; field in TvFeedbackBugreportHelper
52 cacheDir = mContext.getCacheDir(); in TvFeedbackBugreportHelper()
92 mBugreportFile = File.createTempFile(BUGREPORT_FILENAME, null, cacheDir); in createBugreportFile()
/packages/modules/NeuralNetworks/runtime/test/
DTestGenerated.cpp478 char* cacheDir = mkdtemp(cacheDirTemp); in SetUp() local
479 ASSERT_NE(cacheDir, nullptr); in SetUp()
480 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.cpp553 char* cacheDir = mkdtemp(cacheDirTemp); in SetUp() local
554 ASSERT_NE(cacheDir, nullptr); in SetUp()
555 mCacheDir = cacheDir; in SetUp()
DTestNeuralNetworksWrapper.h307 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching() argument
312 mCompilation, cacheDir.c_str(), token.data())); in setCaching()
/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp125 int CompilationBuilder::setCaching(const std::string& cacheDir, const uint8_t* token) { in setCaching() argument
131 std::string path = cacheDir; in setCaching()
DCompilationBuilder.h56 int setCaching(const std::string& cacheDir, const uint8_t* token);
DManager.cpp456 const auto& cacheDir = std::get<CacheDir>(cacheInfo.variant); in getCacheHandles() local
457 CHECK(cacheDir.empty() || cacheDir.back() == '/'); in getCacheHandles()
458 std::string cacheFileName = cacheDir + filename; in getCacheHandles()
459 const uint32_t cacheTypeIdentifierIndex = cacheDir.size() + kByteSizeOfCacheToken * 2; in getCacheHandles()
DNeuralNetworks.cpp1273 const char* cacheDir, const uint8_t* token) { in ANeuralNetworksCompilation_setCaching() argument
1275 if (!compilation || !cacheDir || !token) { in ANeuralNetworksCompilation_setCaching()
1280 return c->setCaching(cacheDir, token); in ANeuralNetworksCompilation_setCaching()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/v33/
DPermissionDecisionStorageImplTest.kt79 filesDir = context.cacheDir in setup()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DPersistedStoragePackageUninstalledReceiverTest.kt79 filesDir = context.cacheDir in setup()
DPermissionEventCleanupJobServiceTest.kt68 filesDir = context.cacheDir in setup()
DPermissionChangeStorageImplTest.kt78 filesDir = context.cacheDir in setup()
DPermissionStorageTimeChangeReceiverTest.kt93 filesDir = context.cacheDir in setup()
DBasePermissionEventStorageTest.kt89 filesDir = context.cacheDir in setup()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/hibernation/
DHibernationPolicyTest.kt93 filesDir = realContext.cacheDir in setup()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h522 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { argument
527 mCompilation, cacheDir.c_str(), token.data())));
DNeuralNetworks.h628 const char* cacheDir, const uint8_t* token)
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h404 Result setCaching(const std::string& cacheDir, const std::vector<uint8_t>& token) { in setCaching() argument
409 mCompilation, cacheDir.c_str(), token.data())); in setCaching()
/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h721 const char* cacheDir, const uint8_t* token);
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java841 File cacheDir = getContext().getCacheDir(); in getBackup() local
842 File backupOutput = File.createTempFile("backup", runId, cacheDir); in getBackup()

12