diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-11-12 16:50:17 -0800 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-11-14 16:21:54 -0800 |
commit | 52b703c5d0c4cff72bafdec0e2229368d3cc20d0 (patch) | |
tree | 0f5674a22b1113f32927f1585a8dc1adc9d2ea7b /res/values | |
parent | a40a349c0107660bfb4004467550725a3ca3ec97 (diff) | |
download | android_packages_providers_DownloadProvider-52b703c5d0c4cff72bafdec0e2229368d3cc20d0.tar.gz android_packages_providers_DownloadProvider-52b703c5d0c4cff72bafdec0e2229368d3cc20d0.tar.bz2 android_packages_providers_DownloadProvider-52b703c5d0c4cff72bafdec0e2229368d3cc20d0.zip |
Show remaining time in download notifications.
Calculate speed of in-progress downloads and estimate time remaining
until completion. Uses a moving average that is weighted 1:1 with
the most recent 500ms sample. Funnels timing data to notifications
through DownloadHandler.
Bug: 6777872
Change-Id: I9155f2979aa330bd1172f63bbfca1d053815cee5
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/strings.xml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index c607e35f..3a060e2d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -205,6 +205,9 @@ <item quantity="other"><xliff:g id="number">%d</xliff:g> files waiting</item> </plurals> + <!-- Time remaining until download is complete. [CHAR LIMIT=32] --> + <string name="download_remaining"><xliff:g id="duration" example="3 minutes">%s</xliff:g> left</string> + <!-- Text for a toast appearing when a user clicks on a completed download, informing the user that there is no application on the device that can open the file that was downloaded [CHAR LIMIT=200] --> |