diff options
author | Doug Zongker <dougz@android.com> | 2011-10-18 16:49:31 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-10-18 16:49:31 -0700 |
commit | 3e149d56b94639aef98c11e0f857d5329c2acc18 (patch) | |
tree | 4a2defa5315cd6849b8e71fbe316d3171f22ffc0 /src/com/android/providers | |
parent | 4ac06391010dbd80bfdf22bf7fc6f2f72a5528b3 (diff) | |
parent | 3074179d22e9d7e1f506b85dca866301a6206156 (diff) | |
download | android_packages_providers_DownloadProvider-3e149d56b94639aef98c11e0f857d5329c2acc18.tar.gz android_packages_providers_DownloadProvider-3e149d56b94639aef98c11e0f857d5329c2acc18.tar.bz2 android_packages_providers_DownloadProvider-3e149d56b94639aef98c11e0f857d5329c2acc18.zip |
am 3074179d: Merge "add more logging when download manager deletes files" into ics-mr0
* commit '3074179d22e9d7e1f506b85dca866301a6206156':
add more logging when download manager deletes files
Diffstat (limited to 'src/com/android/providers')
-rw-r--r-- | src/com/android/providers/downloads/StorageManager.java | 12 |
1 files changed, 6 insertions, 6 deletions
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(); |