Searched refs:cacheDir (Results 1 – 6 of 6) sorted by relevance
93 File cacheDir = new File(getExternalCacheDir(), DOWNLOAD_FOLDER); in getDownloadCache() local95 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()
57 File cacheDir = mContext.getExternalCacheDir(); in loadStorageInfo() local58 if (cacheDir == null) { in loadStorageInfo()59 cacheDir = mContext.getCacheDir(); in loadStorageInfo()62 String path = cacheDir.getAbsolutePath(); in loadStorageInfo()
48 File cacheDir = context.getExternalCacheDir(); in getCache() local49 String path = cacheDir.getAbsolutePath() + "/" + filename; in getCache()75 File cacheDir = context.getExternalCacheDir(); in removeOldFilesIfNecessary() local76 String prefix = cacheDir.getAbsolutePath() + "/"; in removeOldFilesIfNecessary()
175 final File cacheDir = context.getCacheDir(); in cacheAttachmentUri() local177 final long totalSpace = cacheDir.getTotalSpace(); in cacheAttachmentUri()179 final long usableSpace = cacheDir.getUsableSpace() - attachment.size; in cacheAttachmentUri()191 file = File.createTempFile(dateFormat.format(new Date()), ".attachment", cacheDir); in cacheAttachmentUri()235 final long usableSpace = cacheDir.getUsableSpace(); in cacheAttachmentUri()
194 public static File prepareStorage(File cacheDir) { in prepareStorage() argument195 File clipDir = getClipDir(cacheDir); in prepareStorage()202 private static File getClipDir(File cacheDir) { in getClipDir() argument203 return new File(cacheDir, "clippings"); in getClipDir()
924 File cacheDir = this.getCacheDir(); in processQueue() local943 if (att.mContentId != null || canPrefetchForAccount(account, cacheDir)) { in processQueue()