Lines Matching refs:file
5 * you may not use this file except in compliance with the License.
79 for (File file : rootDir.listFiles()) {
80 String name = file.getName();
81 if (file.isFile() && name.startsWith(FILE_PREFIX)
82 && name.endsWith(FILE_POSTFIX)) file.delete();
100 public void store(String downloadUrl, File file) {
103 Utils.assertTrue(file.getParentFile().equals(mRootDir));
107 entry.filename = file.getName();
108 entry.size = file.length();
111 file.delete();
112 throw new IllegalArgumentException("file too large: " + entry.size);
117 file.delete();
144 FileEntry file = queryDatabase(downloadUrl);
145 if (file == null) return null;
147 file.id, downloadUrl, new File(mRootDir, file.filename));
148 if (!entry.cacheFile.isFile()) { // file has been removed
151 TABLE_NAME, ID_WHERE, new String[] {String.valueOf(file.id)});
152 mTotalBytes -= file.size;
154 Log.w(TAG, "cannot delete entry: " + file.filename, t);
241 Log.w(TAG, "unable to delete file: " + path);
298 for (File file : mRootDir.listFiles()) {
299 if (!file.delete()) {
300 Log.w(TAG, "fail to remove: " + file.getAbsolutePath());