diff options
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/providers/downloads/DownloadService.java | 1 | ||||
-rw-r--r-- | src/com/android/providers/downloads/StorageManager.java | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/com/android/providers/downloads/DownloadService.java b/src/com/android/providers/downloads/DownloadService.java index bdbd388b..5fb46fb9 100644 --- a/src/com/android/providers/downloads/DownloadService.java +++ b/src/com/android/providers/downloads/DownloadService.java @@ -550,6 +550,7 @@ public class DownloadService extends Service { private void deleteFileIfExists(String path) { try { if (!TextUtils.isEmpty(path)) { + Log.i(Constants.TAG, "deleting " + path); File file = new File(path); file.delete(); } diff --git a/src/com/android/providers/downloads/StorageManager.java b/src/com/android/providers/downloads/StorageManager.java index 27668601..ab3b6aec 100644 --- a/src/com/android/providers/downloads/StorageManager.java +++ b/src/com/android/providers/downloads/StorageManager.java @@ -307,7 +307,7 @@ class StorageManager { * the total byte size is greater than targetBytes */ private long discardPurgeableFiles(int destination, long targetBytes) { - if (Constants.LOGV) { + if (true || Constants.LOGV) { Log.i(Constants.TAG, "discardPurgeableFiles: destination = " + destination + ", targetBytes = " + targetBytes); } @@ -330,7 +330,7 @@ class StorageManager { try { while (cursor.moveToNext() && totalFreed < targetBytes) { File file = new File(cursor.getString(cursor.getColumnIndex(Downloads.Impl._DATA))); - if (Constants.LOGV) { + if (true || Constants.LOGV) { Log.i(Constants.TAG, "purging " + file.getAbsolutePath() + " for " + file.length() + " bytes"); } @@ -344,7 +344,7 @@ class StorageManager { } finally { cursor.close(); } - if (Constants.LOGV) { + if (true || Constants.LOGV) { Log.i(Constants.TAG, "Purged files, freed " + totalFreed + " for " + targetBytes + " requested"); } @@ -359,7 +359,7 @@ class StorageManager { * This is not a very common occurrence. So, do this only once in a while. */ private void removeSpuriousFiles() { - if (Constants.LOGV) { + if (true || Constants.LOGV) { Log.i(Constants.TAG, "in removeSpuriousFiles"); } // get a list of all files in system cache dir and downloads data dir @@ -383,7 +383,7 @@ class StorageManager { while (cursor.moveToNext()) { String filename = cursor.getString(0); if (!TextUtils.isEmpty(filename)) { - if (Constants.LOGV) { + if (true || Constants.LOGV) { Log.i(Constants.TAG, "in removeSpuriousFiles, preserving file " + filename); } @@ -402,7 +402,7 @@ class StorageManager { file.getName().equalsIgnoreCase(Constants.RECOVERY_DIRECTORY)) { continue; } - if (Constants.LOGV) { + if (true || Constants.LOGV) { Log.i(Constants.TAG, "deleting spurious file " + file.getAbsolutePath()); } file.delete(); |