diff options
author | qqzhou <qqzhou@codeaurora.org> | 2013-12-17 14:18:55 +0800 |
---|---|---|
committer | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-01-24 03:26:04 +0200 |
commit | ecd609e7017b8a69688bbae25c17d878ea305f19 (patch) | |
tree | b7679063f5f42dc3070468483eab2da480f9f0c9 /res | |
parent | b37c8b79760ab1d82fd662f7de30de9ec3c09460 (diff) | |
download | android_packages_providers_DownloadProvider-ecd609e7017b8a69688bbae25c17d878ea305f19.tar.gz android_packages_providers_DownloadProvider-ecd609e7017b8a69688bbae25c17d878ea305f19.tar.bz2 android_packages_providers_DownloadProvider-ecd609e7017b8a69688bbae25c17d878ea305f19.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 manually 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 'res')
-rw-r--r-- | res/drawable/download_pause.xml | 15 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 8 |
2 files changed, 23 insertions, 0 deletions
diff --git a/res/drawable/download_pause.xml b/res/drawable/download_pause.xml new file mode 100644 index 00000000..3a862d22 --- /dev/null +++ b/res/drawable/download_pause.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <group> + <path + android:fillColor="#fafafa" + android:pathData="M6 19h4V5H6v14zm8-14v14h4V5h-4z" /> + <path + android:pathData="M0 0h24v24H0z" /> + </group> +</vector> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index fb6f06c3..b850b25e 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -16,4 +16,12 @@ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="download_speed_text"><xliff:g id="text">%1$s</xliff:g>, <xliff:g id="size" example="230 kB">%2$s</xliff:g>/s</string> + + <!-- Status indicating that the download has been paused to start in the future. Appears for an + individual item in the download list. [CHAR LIMIT=24] --> + <string name="download_paused">Paused</string> + <!-- Representation of download progress percentage when paused. [CHAR LIMIT=24] --> + <string name="download_paused_percent">Paused, <xliff:g id="number">%d</xliff:g><xliff:g id="percent">%%</xliff:g></string> + <!-- Representation of download progress percentage when queued. [CHAR LIMIT=24] --> + <string name="download_queued_percent">Queued, <xliff:g id="number">%d</xliff:g><xliff:g id="percent">%%</xliff:g></string> </resources> |