summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Revert "Merge "downloadmanager should use "files" dir - not "cache" dir to ↵Vasu Nori2011-01-072-10/+4
| | | | | | | store its files" into honeycomb" This reverts commit 7d96bafa59111d9ca735e5ef86dc0598f946b2be, reversing changes made to 2ce876d2d7000b0c3a1430c5f4932568090f5170.
* downloadmanager should use "files" dir - not "cache" dir to store its filesVasu Nori2011-01-072-4/+10
| | | | | | | | | | | | | data/data/com.android.providers.downlaods/cache is being used to store the downloaded files, when the user doesn't specify the destination path. but system seems to remove files from this dir EVEN when space is running low. bug:3324673 instead, let DownloadManager use data/data/com.android.providers.downlaods/files dir Downlaodmanager manages its space anyway. Change-Id: I2eb15570395a214477891f50f635fada0b466544
* Adding HelpersTest.java for testing the download provider's helpers class. ↵olly2011-01-041-2/+2
| | | | | | Note - only a small fraction of input cases are currently tested. Change-Id: I830fff43cc283367a3534b7a3ffcc2a6d296e7c3
* bug:3286430 set quota on downloads data dirVasu Nori2010-12-238-421/+623
| | | | | | | | | | make sure the doanloads data dir size is limited by some quote - 100MB default and 200MB for SR. bug:3286430 tests are in Change-Id: I688f7e058511089bec7fa21e972e23780604d98a Change-Id: Iba7fab9fa91ea018f35e1c3ef5ec0e6b03cba650
* Fixing Helpers to correctly parse file names / extensions in the case where ↵olly2010-12-211-4/+4
| | | | | | | | the filename does not have a file extension but there are one or more dots in the parent directory names. e.g. /mnt/sdcard/Android/data/com.google.android.youtube/files/file Change-Id: I5aad1625a9f36135e947c0f929ee740fc66eb0d3
* Merge "when download-complete-notif is clicked on, don't show notif anymore"Vasu Nori2010-12-161-1/+1
|\
| * when download-complete-notif is clicked on, don't show notif anymoreVasu Nori2010-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | bug:3272589 in HC, when using public API, if the downloaded file is in downloads data dir, wrong intent action is set when the user clicks on download-complete notification. fix this by sending the correct intent action if the download is in downloads data dir or any other location specified by the app. Change-Id: I72621be5f1d6a5caecb8ec85634b351e08b66c31