summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/DownloadHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* Clean up DownloadManager threading tests.Jeff Sharkey2013-01-081-24/+0
| | | | | | | | | | | Change runUntilStatus() methods to polling with timeout instead of requiring internal knowledge about threading. Fix notification tests, and move opening of InputStream until after handling headers to avoid FNFE. Always reset facade to defaults before each test. Change-Id: I6b2d6cfc4e685d2090c1133b1b2e89ae12760f8b
* Improve download remaining time calculation.Jeff Sharkey2012-11-281-10/+6
| | | | | | | | | | | Calculate remaining time in DownloadNotifier so we always use the most recent progress data, which avoids showing stale times. Weight speed calculation to prefer historical data so remaining time is smoother on bumpy network connections. Bug: 7631948 Change-Id: I497be0899e65086356745340b19d3987c6185bdd
* Show remaining time in download notifications.Jeff Sharkey2012-11-141-12/+34
| | | | | | | | | | 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
* (master) bug:3204324 allow no more than certain number of concurrent downloadsVasu Nori2011-03-101-0/+105
Change-Id: Ibbce0782fcf7649209d6f56be240209cebd9045b