Home
last modified time | relevance | path

Searched refs:cacheDir (Results 1 – 6 of 6) 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/UnifiedEmail/src/com/android/mail/utils/
DAttachmentUtils.java173 final File cacheDir = context.getCacheDir(); in cacheAttachmentUri() local
175 final long totalSpace = cacheDir.getTotalSpace(); in cacheAttachmentUri()
177 final long usableSpace = cacheDir.getUsableSpace() - attachment.size; in cacheAttachmentUri()
189 file = File.createTempFile(dateFormat.format(new Date()), ".attachment", cacheDir); in cacheAttachmentUri()
225 final long usableSpace = cacheDir.getUsableSpace(); in cacheAttachmentUri()
/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/Mms/src/com/android/mms/util/
DCacheManager.java51 File cacheDir = PUT_CACHE_ON_SDCARD ? context.getExternalCacheDir() in getCache() local
53 String path = cacheDir.getAbsolutePath() + "/" + filename; in getCache()
84 File cacheDir = PUT_CACHE_ON_SDCARD ? context.getExternalCacheDir() in clear() local
86 String prefix = cacheDir.getAbsolutePath() + "/"; in clear()
/packages/apps/Email/provider_src/com/android/email/service/
DAttachmentService.java924 File cacheDir = this.getCacheDir(); in processQueue() local
943 if (att.mContentId != null || canPrefetchForAccount(account, cacheDir)) { in processQueue()