summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Import revised translations.Eric Fischer2010-09-2420-29/+409
| | | | Change-Id: Ifcc565b9b2106e412cb883afd3446e4740c29306
* am 04d70252: am 36f06f4c: Merge "DB migration to eliminate some null fields ↵Steve Howard2010-09-231-1/+28
|\ | | | | | | | | | | | | | | | | in old downloads" into gingerbread Merge commit '04d7025262d7f6c5c372ec699d78b18d05b0400b' * commit '04d7025262d7f6c5c372ec699d78b18d05b0400b': DB migration to eliminate some null fields in old downloads
| * am 36f06f4c: Merge "DB migration to eliminate some null fields in old ↵Steve Howard2010-09-231-1/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | downloads" into gingerbread Merge commit '36f06f4c8497ab47e64bcc5d8cea12a109fede5e' into gingerbread-plus-aosp * commit '36f06f4c8497ab47e64bcc5d8cea12a109fede5e': DB migration to eliminate some null fields in old downloads
| | * Merge "DB migration to eliminate some null fields in old downloads" into ↵Steve Howard2010-09-231-1/+28
| | |\ | | | | | | | | | | | | gingerbread
| | | * DB migration to eliminate some null fields in old downloadsSteve Howard2010-09-221-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DownloadProvider now ensures that current bytes, total bytes, title and description are never null in the DB. Some new code relies on this assumption for simplicity. That means we need to ensure this invariant is true for pre-existing downloads as well. Change-Id: Iea2289516d2636edf3394678ab08aa9cea31dc69
* | | | am 5dbaa73a: am ebb555c0: Support multi-valued HTTP headers, handle new API ↵Steve Howard2010-09-234-20/+22
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes Merge commit '5dbaa73a7f356f67810becbf3ad258a7dd765e59' * commit '5dbaa73a7f356f67810becbf3ad258a7dd765e59': Support multi-valued HTTP headers, handle new API changes
| * | | am ebb555c0: Support multi-valued HTTP headers, handle new API changesSteve Howard2010-09-234-20/+22
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'ebb555c0687061993dd6a22d15f6aab2437ee8c5' into gingerbread-plus-aosp * commit 'ebb555c0687061993dd6a22d15f6aab2437ee8c5': Support multi-valued HTTP headers, handle new API changes
| | * | Support multi-valued HTTP headers, handle new API changesSteve Howard2010-09-224-20/+22
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | * backend support for multiple values for the same HTTP headers, for corresponding API changes * other minor changes in response to DownloadManager API changes Change-Id: I7c595e94a60ed7afaca6cc3fb4c05aaeeff20c2a
* | | am ca3d52cc: am ece96c74: Expose permission to download without notification.Steve Howard2010-09-212-3/+4
|\| | | | | | | | | | | | | | | | | | | | Merge commit 'ca3d52cc2aa06ab889f2680f1cc28f540efc1cf1' * commit 'ca3d52cc2aa06ab889f2680f1cc28f540efc1cf1': Expose permission to download without notification.
| * | am ece96c74: Expose permission to download without notification.Steve Howard2010-09-212-3/+4
| |\| | | | | | | | | | | | | | | | | | | Merge commit 'ece96c7475696d8b447bb8523f4ad83c897002ea' into gingerbread-plus-aosp * commit 'ece96c7475696d8b447bb8523f4ad83c897002ea': Expose permission to download without notification.
| | * Expose permission to download without notification.Steve Howard2010-09-212-3/+4
| | | | | | | | | | | | Change-Id: I43d3b9ca4ea7d4786a47363b4f5f7e6f003013bb
* | | am 7b96b251: am d3197296: Implement dialogs for wifi required + recommended ↵Steve Howard2010-09-2110-26/+293
|\| | | | | | | | | | | | | | | | | | | | | | | | | | limits. Merge commit '7b96b251c0404ed3f05652bd7d5209910fb999cc' * commit '7b96b251c0404ed3f05652bd7d5209910fb999cc': Implement dialogs for wifi required + recommended limits.
| * | am d3197296: Implement dialogs for wifi required + recommended limits.Steve Howard2010-09-2110-26/+293
| |\| | | | | | | | | | | | | | | | | | | Merge commit 'd319729622da1893e895f2e35f41d01ecdca3705' into gingerbread-plus-aosp * commit 'd319729622da1893e895f2e35f41d01ecdca3705': Implement dialogs for wifi required + recommended limits.
| | * Implement dialogs for wifi required + recommended limits.Steve Howard2010-09-2110-26/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change extends the original work to add a size limit over which wifi is required to download a file. First, this change adds a second size limit, over which wifi is recommended but not required. The user has the option to bypass this limit. Second, this change implements dialogs shown to the user when either limit is exceeded. These dialogs are shown by the background download manager service when a download is started and found to be over the limit (and wifi is not connected). I'm including one small fix to the unit tests needed from the previous change. Change-Id: Ia0f0acaa7b0d00e98355925c3446c0472048df10
* | | am 7c5a33e4: am 78f433c6: Display time for today\'s downloads, delete files ↵Steve Howard2010-09-202-2/+47
|\| | | | | | | | | | | | | | | | | | | | | | | | | | on external Merge commit '7c5a33e468d8d029f66c2fe9191132e9b4ad991b' * commit '7c5a33e468d8d029f66c2fe9191132e9b4ad991b': Display time for today's downloads, delete files on external
| * | am 78f433c6: Display time for today\'s downloads, delete files on externalSteve Howard2010-09-202-2/+47
| |\| | | | | | | | | | | | | | | | | | | Merge commit '78f433c68f14dfba605ceb0e5f3dc54243efd2b2' into gingerbread-plus-aosp * commit '78f433c68f14dfba605ceb0e5f3dc54243efd2b2': Display time for today's downloads, delete files on external
| | * Display time for today's downloads, delete files on externalSteve Howard2010-09-202-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * in downloads UI, for downloads that occurred today, display the time of day rather than the date * when deleting a download on external from the downloads UI, explicitly delete the underlying file as well (the service only deletes cache files when deleting a download from the database, it intentionally leaves external files around) Change-Id: I9aa02dabe3c091a67e2c2196a0ea2f313bcdcef0
* | | am 2031fa7b: am dc738781: Merge "Improve file error reporting + new detailed ↵Steve Howard2010-09-206-74/+184
|\| | | | | | | | | | | | | | | | | | | | | | | | | | error messages in UI" into gingerbread Merge commit '2031fa7bad5ef3e31cf0ea73d0b9bf4670842cf0' * commit '2031fa7bad5ef3e31cf0ea73d0b9bf4670842cf0': Improve file error reporting + new detailed error messages in UI
| * | am dc738781: Merge "Improve file error reporting + new detailed error ↵Steve Howard2010-09-206-74/+184
| |\| | | | | | | | | | | | | | | | | | | | | | | | | messages in UI" into gingerbread Merge commit 'dc738781156d0f5ac1db62838d42c876d740810d' into gingerbread-plus-aosp * commit 'dc738781156d0f5ac1db62838d42c876d740810d': Improve file error reporting + new detailed error messages in UI
| | * Merge "Improve file error reporting + new detailed error messages in UI" ↵Steve Howard2010-09-206-74/+184
| | |\ | | | | | | | | | | | | into gingerbread
| | | * Improve file error reporting + new detailed error messages in UISteve Howard2010-09-206-74/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * support new error code for "destination file already exists" * improve error handling for various file error cases to return a more specific error code when appropriate * make UI support more detailed error messages for some cases * use Uri.getPath() instead of Uri.getSchemeSpecificPart() for file URIs Change-Id: Icb01d4d3b47c7776be3ddcd8347212e950cd023e
* | | | am b8cadd87: am 2d0ed12e: Fix DownloadProvider makefile to correctly include ↵Steve Howard2010-09-201-5/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sub-makefiles Merge commit 'b8cadd87bfc628090c36f74979c7691bb1219ea1' * commit 'b8cadd87bfc628090c36f74979c7691bb1219ea1': Fix DownloadProvider makefile to correctly include sub-makefiles
| * | | am 2d0ed12e: Fix DownloadProvider makefile to correctly include sub-makefilesSteve Howard2010-09-201-5/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '2d0ed12eb053170dac2a93f725e86103e74d0da2' into gingerbread-plus-aosp * commit '2d0ed12eb053170dac2a93f725e86103e74d0da2': Fix DownloadProvider makefile to correctly include sub-makefiles
| | * | Fix DownloadProvider makefile to correctly include sub-makefilesSteve Howard2010-09-201-5/+2
| | |/ | | | | | | | | | Change-Id: I569e168267305939197e9af86f9598b17283a2c6
* | | am 5eb34906: am dbefa6f5: New assets for download manager UI.Steve Howard2010-09-207-3/+4
|\| | | | | | | | | | | | | | | | | | | | Merge commit '5eb3490642695957074b6547eb48e3d36ab49131' * commit '5eb3490642695957074b6547eb48e3d36ab49131': New assets for download manager UI.
| * | am dbefa6f5: New assets for download manager UI.Steve Howard2010-09-207-3/+4
| |\| | | | | | | | | | | | | | | | | | | Merge commit 'dbefa6f5eff88f97dd91a8adfd65dbd946adb99e' into gingerbread-plus-aosp * commit 'dbefa6f5eff88f97dd91a8adfd65dbd946adb99e': New assets for download manager UI.
| | * New assets for download manager UI.Steve Howard2010-09-207-3/+4
| | | | | | | | | | | | | | | | | | Includes new launcher icon and new icon/string for sorting by time. Change-Id: I5b87da9d5fa53184b1a3096f25e0d45678aa1700
* | | am b9115af1: am 3398db8f: Fix notification bugs, cleanup DownloadService + ↵Steve Howard2010-09-209-646/+476
|\| | | | | | | | | | | | | | | | | | | | | | | | | | DownloadReceiver Merge commit 'b9115af1e7b39a25c00aed7c9d3bb413ecef9eda' * commit 'b9115af1e7b39a25c00aed7c9d3bb413ecef9eda': Fix notification bugs, cleanup DownloadService + DownloadReceiver
| * | am 3398db8f: Fix notification bugs, cleanup DownloadService + DownloadReceiverSteve Howard2010-09-209-646/+476
| |\| | | | | | | | | | | | | | | | | | | Merge commit '3398db8f3b195959faa2a7cf09918f364432ac28' into gingerbread-plus-aosp * commit '3398db8f3b195959faa2a7cf09918f364432ac28': Fix notification bugs, cleanup DownloadService + DownloadReceiver
| | * Fix notification bugs, cleanup DownloadService + DownloadReceiverSteve Howard2010-09-209-646/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change started out just fixing a few regressions related to notifications: * Browser downloads weren't picking up a title from the determined filename. This was due to my change to default the title field to "" instead of null. * Notification click/hide events weren't being handled properly. This was due to previous change to the URI structure of DownloadProvider. DownloadReceiver needed to be changed to perform queries through /all_downloads URIs, like all other parts of the download manager code. I did some general refactoring of the DownloadReceiver code while I was there. * The code in DownloadNotification wasn't picking up some updates to downloads properly. This was due to my change to make DownloadNotification use the DownloadInfo objects rather than querying the database directly, so that it could make use of info provided by the DownloadThread that didn't go into the DB. Fixing this didn't turn out to be all that complicated, but along the way to figuring this out I made some substantial refactoring in DownloadService which made it much cleaner anyway and eliminated a lot of duplication. That's something that had to happen eventually, so I'm leaving it all in. Change-Id: I847ccf80e3d928c84e36bc24791b33204104e1b2
* | | am e8027017: am 4bebe75b: Temporary fix to support old URIs for MarketSteve Howard2010-09-182-1/+9
|\| | | | | | | | | | | | | | | | | | | | Merge commit 'e80270177d1b504525d1f4ea4139b0c213fea891' * commit 'e80270177d1b504525d1f4ea4139b0c213fea891': Temporary fix to support old URIs for Market
| * | am 4bebe75b: Temporary fix to support old URIs for MarketSteve Howard2010-09-172-1/+9
| |\| | | | | | | | | | | | | | | | | | | Merge commit '4bebe75b3e2361d7fb0aa966598c41c45ad9317f' into gingerbread-plus-aosp * commit '4bebe75b3e2361d7fb0aa966598c41c45ad9317f': Temporary fix to support old URIs for Market
| | * Temporary fix to support old URIs for MarketSteve Howard2010-09-172-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | Market has its own copies of the download manager URIs. This change bring back support for those so Market will keep working until they can properly update their code. Change-Id: I283ea65931085c0f083a182842d362c113427537
* | | am 176a7442: resolved conflicts for merge of 3d55d829 to gingerbread-plus-aospSteve Howard2010-09-1612-247/+307
|\| | | | | | | | | | | | | | | | | | | | Merge commit '176a74426f750dc56e7d200a4cdc3b6ed75fe6cd' * commit '176a74426f750dc56e7d200a4cdc3b6ed75fe6cd': New URI structure with "my_downloads" and "all_downloads"
| * | resolved conflicts for merge of 3d55d829 to gingerbread-plus-aospSteve Howard2010-09-1612-247/+307
| |\| | | | | | | | | | Change-Id: I18ede2f2d5ad8aa40cd61bdb7213659d356fdf57
| | * New URI structure with "my_downloads" and "all_downloads"Steve Howard2010-09-1412-248/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a second view into the download manager database via a set of URIs starting with /all_downloads, renaming the original /download URIs to /my_downloads. In addition to making things more clear, this change allows the downloads UI to grant permissions on individual downloads to viewer apps. The old semantics were: * for ordinary callers, /download included only downloads initiated by the calling UID * for intraprocess calls or calls by root, /download included all downloads The new semantics are * /my_downloads always includes only downloads initiated by the calling UID, and requires only INTERNET permission. It could just as well require no permission, but that's not possible in the framework, since path-permissions can only broaden access, not tighten it. It doesn't matter, because these URIs are useless without INTERNET permission -- if a user can't initiate downloads, there's no reason to read this. * /all_downloads always includes all downloads on the system, and requires the new permission ACCESS_ALL_DOWNLOADS. This permission is currently protectionLevel=signature -- this could be relaxed later to support third-party download managers. All download manager code has been changed to use /all_downloads URIs, except when passing a URI to another app. In making this change across the download manager code, I've taken some liberties in cleaning things up. Other apps are unchanged and will use /my_downloads. Finally, this incorporates changes to DownloadManager to return a content URI for /cache downloads -- the download UI no longer assumes it's a file URI, and it grants permissions to the receiver of the VIEW intent. The public API test has also been updated. I've also fixed some null cursor checking in DownloadManager. Change-Id: I05a501eb4388249fe80c43724405657c950d7238
* | | am 57df1b6a: am 33671e9c: Use new status bar text styles in download ↵Steve Howard2010-09-131-22/+18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | notification. Merge commit '57df1b6a7219e049371cae72b36a63d04e214f59' * commit '57df1b6a7219e049371cae72b36a63d04e214f59': Use new status bar text styles in download notification.
| * | am 33671e9c: Use new status bar text styles in download notification.Steve Howard2010-09-131-22/+18
| |\| | | | | | | | | | | | | | | | | | | Merge commit '33671e9c1e9ffa3776ed987bddeb70a04daa7cfe' into gingerbread-plus-aosp * commit '33671e9c1e9ffa3776ed987bddeb70a04daa7cfe': Use new status bar text styles in download notification.
| | * Use new status bar text styles in download notification.Steve Howard2010-09-121-22/+18
| | | | | | | | | | | | | | | | | | | | | This avoids the black text on black background problem with new themes. Change-Id: I3e05a2a4035dc5837dad67d889f92864c619c6b5
* | | Merge "Import revised translations."Eric Fischer2010-09-1320-40/+20
|\ \ \
| * | | Import revised translations.Eric Fischer2010-09-1020-40/+20
| | | | | | | | | | | | | | | | Change-Id: I4142010ad4bf7f22c089cb307e73ff8865cdaafa
* | | | am d5c0120a: am 13db2005: Merge "Fix silly bug with completed ↵Steve Howard2010-09-121-2/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | notifications." into gingerbread Merge commit 'd5c0120af6eae66f15e83ef61eb61ea19542b097' * commit 'd5c0120af6eae66f15e83ef61eb61ea19542b097': Fix silly bug with completed notifications.
| * | | am 13db2005: Merge "Fix silly bug with completed notifications." into ↵Steve Howard2010-09-121-2/+1
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '13db200521cf8ead0d96173bccd7e141182eeccd' into gingerbread-plus-aosp * commit '13db200521cf8ead0d96173bccd7e141182eeccd': Fix silly bug with completed notifications.
| | * | Merge "Fix silly bug with completed notifications." into gingerbreadSteve Howard2010-09-121-2/+1
| | |\ \
| | | * | Fix silly bug with completed notifications.Steve Howard2010-09-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This functionality isn't part of the public API, hence it lacks test coverage. Rather than adding tests, I'm inclined to leave it and hopefully we'll be able to migrate existing apps to the public API soon enough. Change-Id: I1210c6525dfb7cb12c1b8e35c04684060d3ad87e
* | | | | am 7fa71b17: am 71e7fda9: Further work on the new downloads UI.Steve Howard2010-09-128-25/+258
|\| | | | | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Merge commit '7fa71b17d1bcaceb4688cb4b0e6982d1db4a0538' * commit '7fa71b17d1bcaceb4688cb4b0e6982d1db4a0538': Further work on the new downloads UI.
| * | | am 71e7fda9: Further work on the new downloads UI.Steve Howard2010-09-128-25/+258
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '71e7fda9135a0915af1fd419d07ebf85ad09beb4' into gingerbread-plus-aosp * commit '71e7fda9135a0915af1fd419d07ebf85ad09beb4': Further work on the new downloads UI.
| | * | Further work on the new downloads UI.Steve Howard2010-09-108-25/+258
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add support for downloads not visible in the UI * add support for restarting failed downloads and downloads for which the file is missing * add "clear selection" button to selection menu * fix DateSortedExpandableListAdapter to ensure the view refreshes properly anytime the underlying data changes * make DownloadList handle when a selected download gets deleted by another app * make DownloadList close a dialog for a pending download when the download starts * show a dialog when the user tries to open a download but the file is missing * display "<Unknown>" when no title is provided for a download * add a test case for DownloadManager.orderBy() (should've gone in the previous commit) Change-Id: Ibf3062e8228e7f2c1270be24d8d5527dfb064658
* | | am b62d8ca6: (-s ours) am f8ccad3e: Import revised translations. DO NOT MERGEEric Fischer2010-09-100-0/+0
|\| | | | | | | | | | | | | | | | | | | | Merge commit 'b62d8ca63ce24ff427896e4c3784f742b9b2e78b' * commit 'b62d8ca63ce24ff427896e4c3784f742b9b2e78b': Import revised translations. DO NOT MERGE
| * | am f8ccad3e: Import revised translations. DO NOT MERGEEric Fischer2010-09-1020-40/+20
| |\| | | | | | | | | | | | | | | | | | | Merge commit 'f8ccad3e970434111b3920dc639e05ca48ca66c2' into gingerbread-plus-aosp * commit 'f8ccad3e970434111b3920dc639e05ca48ca66c2': Import revised translations. DO NOT MERGE