From cc048de9b7b2433ef497e4495126a166409ad3f7 Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Thu, 17 Mar 2011 14:39:27 -0700 Subject: bug:4121206 handle STOPSHIP comments/code Change-Id: I3c9f8e3b11dd301a0921d89e0333883489f37e55 --- src/com/android/providers/downloads/Constants.java | 4 ++-- src/com/android/providers/downloads/DownloadThread.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/com/android') diff --git a/src/com/android/providers/downloads/Constants.java b/src/com/android/providers/downloads/Constants.java index acf9732a..ef0c6dbb 100644 --- a/src/com/android/providers/downloads/Constants.java +++ b/src/com/android/providers/downloads/Constants.java @@ -144,10 +144,10 @@ public class Constants { static final boolean LOGX = false; /** Enable verbose logging - use with "setprop log.tag.DownloadManager VERBOSE" */ - private static final boolean LOCAL_LOGV = true; // STOPSHIP change this to false + private static final boolean LOCAL_LOGV = false; public static final boolean LOGV = LOCAL_LOGV && Log.isLoggable(TAG, Log.VERBOSE); /** Enable super-verbose logging */ - private static final boolean LOCAL_LOGVV = true; // STOPSHIP change this to false + private static final boolean LOCAL_LOGVV = false; public static final boolean LOGVV = LOCAL_LOGVV && LOGV; } diff --git a/src/com/android/providers/downloads/DownloadThread.java b/src/com/android/providers/downloads/DownloadThread.java index 100ebcab..735946c9 100644 --- a/src/com/android/providers/downloads/DownloadThread.java +++ b/src/com/android/providers/downloads/DownloadThread.java @@ -658,13 +658,11 @@ public class DownloadThread extends Thread { */ private void handleOtherStatus(State state, InnerState innerState, int statusCode) throws StopRequestException { - // STOPSHIP remove this. should help in debugging http://b/issue?id=3422868 if (statusCode == 416) { // range request failed. it should never fail. throw new IllegalStateException("Http Range request failure: totalBytes = " + innerState.mTotalBytes + ", bytes recvd so far: " + innerState.mBytesSoFar); } - // END STOPSHIP int finalStatus; if (Downloads.Impl.isStatusError(statusCode)) { finalStatus = statusCode; -- cgit v1.2.3