diff options
Diffstat (limited to 'src/com/android/providers/downloads/DownloadService.java')
-rw-r--r-- | src/com/android/providers/downloads/DownloadService.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/DownloadService.java b/src/com/android/providers/downloads/DownloadService.java index 07ab9416..3824fc2e 100644 --- a/src/com/android/providers/downloads/DownloadService.java +++ b/src/com/android/providers/downloads/DownloadService.java @@ -287,6 +287,13 @@ public class DownloadService extends Service { if (Constants.LOGV) { Log.v(Constants.TAG, "scheduling retry in " + wakeUp + "ms"); } + if (Constants.LOGX) { + if (Helpers.isNetworkAvailable(DownloadService.this)) { + Log.i(Constants.TAG, "Alarm in " + wakeUp + "ms, Net Up"); + } else { + Log.i(Constants.TAG, "Alarm in " + wakeUp + "ms, Net Down"); + } + } Intent intent = new Intent(Constants.ACTION_RETRY); intent.setClassName("com.android.providers.downloads", DownloadReceiver.class.getName()); @@ -661,6 +668,13 @@ public class DownloadService extends Service { ContentUris.withAppendedId(Downloads.CONTENT_URI, info.mId), values, null, null); } + if (Constants.LOGX) { + if (Helpers.isNetworkAvailable(DownloadService.this)) { + Log.i(Constants.TAG, "Thread for " + info.mId + ", Net Up"); + } else { + Log.i(Constants.TAG, "Thread for " + info.mId + ", Net Down"); + } + } DownloadThread downloader = new DownloadThread(this, info); info.mHasActiveThread = true; downloader.start(); @@ -748,6 +762,13 @@ public class DownloadService extends Service { getContentResolver().update( ContentUris.withAppendedId(Downloads.CONTENT_URI, info.mId), values, null, null); + if (Constants.LOGX) { + if (Helpers.isNetworkAvailable(DownloadService.this)) { + Log.i(Constants.TAG, "Thread for " + info.mId + ", Net Up"); + } else { + Log.i(Constants.TAG, "Thread for " + info.mId + ", Net Down"); + } + } DownloadThread downloader = new DownloadThread(this, info); info.mHasActiveThread = true; downloader.start(); |