summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Check canonical path when download requested."Jeff Sharkey2011-10-121-4/+10
|\
| * Check canonical path when download requested.Jeff Sharkey2011-10-121-4/+10
| | | | | | | | | | Bug: 5449870 Change-Id: I3219273be9b796b123545c811e5f39fa83b5768e
* | log when DownloadManager deletes filesDoug Zongker2011-10-111-0/+1
|/ | | | Change-Id: Id4800401c16811df9c4ee78ee9636c77b4c95756
* Don't change extensions for explicitly set download locations.Jeff Davidson2011-08-301-8/+18
| | | | | | | | | | | | | | This regression from GB was introduced by 38f1711910715538d6b64e505fe8fb9a0cd40475, which was intended to allow duplicate downloads of the same file, adding -<n> to the end of file names. As a side effect, this also activated extension validation logic, which adds/changes an extension to match the Mimetype. This change keeps the unique filename logic but prevents extension changes when an explicit filename is set. Thus, it is still possible for the actual download location to differ from the requested one, but only if the file already exists. Bug: 5196436 Change-Id: I198dc2a819c5d839a05b72c25e0830d889a9c5a3
* fix DownloadThread's use of ETag, range headersDoug Zongker2011-08-291-46/+54
| | | | | | | | | | | | | | | | | | DownloadThread was only maintaining ETag and the file size for the duration of one HTTP request, rather than over all the requests needed to fetch a file, which kind of defeats the point of having them. Fix this by moving several state variables from InnerState to State, and initializing the total bytes and current bytes values from the download database. Skip actually making the HTTP request if we've already downloaded all the bytes of the file. This works around bug 5217390 by making the second DownloadThread do nothing instead of trying to fetch past the end of the file. (A real fix would eliminate the race condition that causes the second thread to get created in the first place.) Bug: 5217390 Change-Id: Ib5b8f87398b4ed2cb3d7f09569e245b55a89da5a
* Move to Notification.Builder progress API.Jeff Sharkey2011-08-091-47/+33
| | | | | | | | Instead of using custom layout to surface progress information, use new Builder API. Also use resources to build percent string. Bug: 4022082 Change-Id: I556a666771e9103ce5d7ddb60faa879b8777b284
* Bugfix:5033349Dongwon Kang2011-07-201-4/+5
| | | | | | | | | - Checking download data dir instread of /cache. - Trying to remove stale files regardless of the low space thereshold. (Note: This bug happens when download dir size is 100mb and there is a file > 100mb in /cache.) Change-Id: Iacded74eaadb2aa7f0af8d1b7e0f922e81c7e07c
* Eliminate single-process mode.Jeff Brown2011-07-081-2/+1
| | | | | | Bug: 5010576 Change-Id: I2f9bcad41cf50ed0b17dd487d0389f7b38500fd7
* Migrate setThreadStatsTag() from String to int.Jeff Sharkey2011-06-251-1/+1
| | | | | Bug: 4948913 Change-Id: I831b9149208f0cc007cf3ebede3ef433b2636600
* Teach DownloadManager about network policy.Jeff Sharkey2011-06-175-35/+96
| | | | | | | | | | | Now network access is determined by using getActiveNetworkInfoForUid() which uses BLOCKED to indicate that network should be rejected for the requesting UID. While download in progress, watch for any policy changes that should trigger pause. Also check NetworkInfo.isConnected() for correctness. Change-Id: I1efa79823f15ecc3fa088a6719da1b770c64b255
* Merge "Download provider change for DRM Forward Lock plugin: to convert .dm ↵Gloria Wang2011-06-038-55/+319
|\ | | | | | | files to .fl files during downloading For bug 3188041"
| * Download provider change for DRM Forward Lock plugin:Gloria Wang2011-04-198-55/+319
| | | | | | | | | | | | | | to convert .dm files to .fl files during downloading For bug 3188041 Change-Id: I882b851664432fba3e57dc25a6be827b48006e69
* | Add Socket tagging for granular data accounting.Jeff Sharkey2011-05-131-5/+14
| | | | | | | | | | | | | | | | Tag active downloads, and account data usage towards UID that made the original request. Also release WakeLock only after we've cleaned up the download. Change-Id: I72d58c6a51beaeb357e59aae4d7c0f5ac9abaa8d
* | Output DownloadInfo state in Service.dump()Jeff Sharkey2011-04-282-26/+34
| | | | | | | | | | Bug: 3136228 Change-Id: I77c4f998c9718c7630800dec152779ff59186187
* | Allow VISIBLE_NOTIFY_COMPLETED on Request.Jeff Sharkey2011-04-131-4/+8
| | | | | | | | | | | | | | | | Updates list of allowed visibility values to enable Request builders to use Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED. Bug: 4283223 Change-Id: I8ebe4a13f95a58f25f6025946a6d4725261717f2
* | Remove the deprecated things from Config.java. These havent been working ↵Joe Onorato2011-04-071-2/+1
|/ | | | | | since before 1.0. Change-Id: Iba18a18547a161c1aa432a434b6c8f64693fb194
* am 32d9917c: am 7666801a: Merge "bug:4121206 handle STOPSHIP comments/code" ↵Vasu Nori2011-03-172-4/+2
|\ | | | | | | | | | | | | into honeycomb-mr1 * commit '32d9917cd4f56cabcbafa645c8cd89cd832ac523': bug:4121206 handle STOPSHIP comments/code
| * bug:4121206 handle STOPSHIP comments/codeVasu Nori2011-03-172-4/+2
| | | | | | | | Change-Id: I3c9f8e3b11dd301a0921d89e0333883489f37e55
* | (master) bug:3204324 allow no more than certain number of concurrent downloadsVasu Nori2011-03-104-17/+121
|/ | | | Change-Id: Ibbce0782fcf7649209d6f56be240209cebd9045b
* bug:4081088 NPE in DownloadProviderVasu Nori2011-03-091-2/+8
| | | | Change-Id: I033ba6abeed55c5ac76142c7a2e4849b8e044680
* bug:3513950 fix the commentsVasu Nori2011-03-071-6/+6
| | | | Change-Id: I6192a829c7cac86c55a0f67364ebd722504d5dc7
* remove log spew from downloadmanagerVasu Nori2011-03-021-2/+4
| | | | Change-Id: Iad8cfe0da389a70ff679cf6d3378f50e945d03a6
* bug:3425749 if adding completed download to db, send completion notifVasu Nori2011-02-102-46/+67
| | | | Change-Id: I9f9f6f2e0b2bd18f3767574fc51301b75bb1b76d
* bug:3422868 collect additional info to debug this problemVasu Nori2011-02-101-1/+10
| | | | | | | this bug is not so easy to reproduce. so, this CL will produce some additional logging info for better insight Change-Id: I0d53c647f1b98a49eb93b937c8e7203723c33dbe
* bug:3435895 listen to media_mounted broadcast intentVasu Nori2011-02-085-4/+34
| | | | | | and retry downloads that failed due to the error "sdcard media not mounted" Change-Id: Id181b8167d331214f72679c85f18cc8b9b969e40
* am 6e9abd8e: am d119d3cb: Revert "bug:3414192 if otaupdate column is set, ↵Vasu Nori2011-02-032-16/+0
|\ | | | | | | | | | | | | don\'t check mobile download limits" * commit '6e9abd8e04c4aaafb8493a25efc34f4dd4fa6013': Revert "bug:3414192 if otaupdate column is set, don't check mobile download limits"
| * Revert "bug:3414192 if otaupdate column is set, don't check mobile download ↵Vasu Nori2011-02-032-16/+0
| | | | | | | | | | | | limits" This reverts commit ea245800c69d6bc10dc2680e6a242f59e9cb49b6.
* | am 49663f1f: am f20af912: Revert "Merge "bug:3341145 if ignore_size_limits ↵Vasu Nori2011-02-033-10/+9
|\| | | | | | | | | | | | | flag set, validate caller\'s perms" into honeycomb" * commit '49663f1ffe58a546fb0d2ab84898843ef5e89eb5': Revert "Merge "bug:3341145 if ignore_size_limits flag set, validate caller's perms" into honeycomb"
| * Revert "Merge "bug:3341145 if ignore_size_limits flag set, validate caller's ↵Vasu Nori2011-02-033-10/+9
| | | | | | | | | | | | | | perms" into honeycomb" This reverts commit 3e7bb1c5d7e7d1a013df959c1a6947b33df0a0fd, reversing changes made to b2085f61b37ad4a70c799012f25ff62a38173f68.
* | am afefa43d: am cac5bbb5: Revert "bug:3420722"Vasu Nori2011-02-031-1/+0
|\| | | | | | | | | * commit 'afefa43d9919f9284885f7080111c54a50c4fc90': Revert "bug:3420722"
| * Revert "bug:3420722"Vasu Nori2011-02-031-1/+0
| | | | | | | | This reverts commit 1cccc19b596f168ed34126db38b046ab164e063b.
* | resolved conflicts for merge of 73642748 to masterVasu Nori2011-02-031-1/+1
|\| | | | | | | Change-Id: I477599f16db5ea64e4fbc4d2be68dcedf2c80269
| * bug:3420722Vasu Nori2011-02-031-0/+1
| | | | | | | | Change-Id: Id40d2dbbefe5fa2546f8c5231be5f7fe9a7b43d6
* | resolved conflicts for merge of 43d649e9 to masterVasu Nori2011-02-023-9/+10
|\| | | | | | | Change-Id: I27a615509269f256cf66de2dd217d8c4667caab4
| * Merge "bug:3341145 if ignore_size_limits flag set, validate caller's perms" ↵Vasu Nori2011-02-023-9/+10
| |\ | | | | | | | | | into honeycomb
| | * bug:3341145 if ignore_size_limits flag set, validate caller's permsVasu Nori2011-02-023-9/+10
| | | | | | | | | | | | | | | | | | and then of course ignore the mobile network size limits Change-Id: I6765be9255187f93bd51acecc19a15db4f324204
* | | am 6a601663: am b2085f61: Bug 3341145 - Holo styling for download dialogAdam Powell2011-02-021-1/+1
|\| | | | | | | | | | | | | | * commit '6a60166341f38841e9fc2c97da40423528f16d7d': Bug 3341145 - Holo styling for download dialog
| * | Bug 3341145 - Holo styling for download dialogAdam Powell2011-02-021-1/+1
| |/ | | | | | | Change-Id: I20049f8affe7e2ff919ecf8f6b1b7dd220143111
* | Check for null before accessing pckg.Leon Scroggins2011-02-021-1/+1
| | | | | | | | | | | | | | Prevents null pointer exception when using DownloadManager.completedDownload Change-Id: I53859705c5e925f2320491451e41a631e4fed715
* | am 8db8fba2: am ea245800: bug:3414192 if otaupdate column is set, don\'t ↵Vasu Nori2011-02-012-0/+16
|\| | | | | | | | | | | | | check mobile download limits * commit '8db8fba215a981edd24ad1f7118d3397be0114d2': bug:3414192 if otaupdate column is set, don't check mobile download limits
| * bug:3414192 if otaupdate column is set, don't check mobile download limitsVasu Nori2011-02-012-0/+16
| | | | | | | | | | | | | | this allows OTA update to work without being subject to download limits on mobile networks. Change-Id: I92c60ba3ecbde615bd93778b391a5fe067dbd2fe
* | am d47f3711: am 3ea897d9: Merge "bug:3396889 (HC branch) fix STOPSHIP code" ↵Vasu Nori2011-01-262-4/+3
|\| | | | | | | | | | | | | into honeycomb * commit 'd47f37112d4d0a95cd78e6ec3e14cbbb362b1595': bug:3396889 (HC branch) fix STOPSHIP code
| * bug:3396889 (HC branch) fix STOPSHIP codeVasu Nori2011-01-262-4/+3
| | | | | | | | Change-Id: I1eeb8c5a9936db08bc5997980dc6c7307691034e
* | bug:3062216 (master) store correct status about network when pausedVasu Nori2011-01-241-5/+9
| | | | | | | | | | bug:3062216 Change-Id: I4d510a9fc2095ec86991ae657e90d5f39bc55415
* | bug:3048327 (master) ability to add completed download to dnload mgrVasu Nori2011-01-213-16/+61
|/ | | | Change-Id: Ib9d4df107787191a5349365908cbe096b67770dc
* use DownloadManager's new public API instead of localcodeVasu Nori2011-01-171-12/+3
| | | | | | | | after Change-Id: I7380964c6098d5ca6396b17980f78457c23d1a87 remove localcoding in DownloadProvider for those newly introduced API methods Change-Id: I2e42f9c1d1de5e414eaac6354930cec98c7d2947
* manual merge of GB change Change-Id: I1acf2fb9491d24f5e109206a91dda3eea429e447Vasu Nori2011-01-162-9/+5
| | | | Change-Id: Ibaf889d78fc99a32038a77671036fc6a5068580f
* bug:3332449 downloadmanager deleting downloaded files sometimesVasu Nori2011-01-121-2/+9
| | | | | | | | | | | | | | | | removeSpuriousFiles() method in StorageManager.java is removing files because of it incorrectly thought a given file has NO entry in downloads db. more details: List<File> files; String filename; files.remove(filename) remove should be new File(filename) most probably this fix also addresses bug:3324673 Change-Id: I22c58398fe874fa81939b575c782b6700a2cac4e
* bug:3338089 NPE in downloadthreadVasu Nori2011-01-112-2/+15
| | | | Change-Id: I95b4c52598092e9f6ffa1713b36ac11d44e26279
* bug:3338089 print better error msg in DownloadThread when exception occursVasu Nori2011-01-101-4/+1
| | | | | | | when download thread gets an exception and aborts a download, print the stacktrace of the exception - so one can debug the problem. Change-Id: Iab1bae3b6180d8601e84020453ff35815ae3e69f