summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/Constants.java
diff options
context:
space:
mode:
authorqqzhou <qqzhou@codeaurora.org>2013-12-17 14:18:55 +0800
committerSteve Kondik <shade@chemlab.org>2014-05-03 23:42:37 +0000
commitded2da137ce7c2c71ded2e6d163217ef95267ebb (patch)
tree01be38f32387964cc71b45efb5897bfc6ba7edcf /src/com/android/providers/downloads/Constants.java
parent341aed6f2793c65874117b928a95947eb3b4b513 (diff)
downloadandroid_packages_providers_DownloadProvider-ded2da137ce7c2c71ded2e6d163217ef95267ebb.tar.gz
android_packages_providers_DownloadProvider-ded2da137ce7c2c71ded2e6d163217ef95267ebb.tar.bz2
android_packages_providers_DownloadProvider-ded2da137ce7c2c71ded2e6d163217ef95267ebb.zip
DownloadProvider: add to support pause/resume download by manual
This feature contains below points: 1. add to pause running download by manual. 2. add to resume manuallly paused download by manual. 3. add to show proper contents in notification and download-list for manually paused status. 4. add to support download breakpoint continuing when HTTP server doesn't contain etag in response header. Android baseline only supports this when etag is not null. 5. add to show proper contents in notification and download-list for status of waiting-for-network. Change-Id: I433cdee2de8b3add0248bbb0a9d02f8da4e5bb38
Diffstat (limited to 'src/com/android/providers/downloads/Constants.java')
-rwxr-xr-x[-rw-r--r--]src/com/android/providers/downloads/Constants.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/Constants.java b/src/com/android/providers/downloads/Constants.java
index 89210a25..1128afc6 100644..100755
--- a/src/com/android/providers/downloads/Constants.java
+++ b/src/com/android/providers/downloads/Constants.java
@@ -60,6 +60,9 @@ public class Constants {
/** the intent that gets sent when deleting the notification of a completed download */
public static final String ACTION_HIDE = "android.intent.action.DOWNLOAD_HIDE";
+ /** the intent that gets sent when choosing to resume the paused download */
+ public static final String ACTION_RESUME = "android.intent.action.DOWNLOAD_RESUME";
+
/** The default base name for downloaded files if we can't get one at the HTTP level */
public static final String DEFAULT_DL_FILENAME = "downloadfile";