9 years agoam 04d70252: am 36f06f4c: Merge "DB migration to eliminate some null fields in old...
Steve Howard [Thu, 23 Sep 2010 20:10:54 +0000]
am 04d70252: am 36f06f4c: Merge "DB migration to eliminate some null fields in old downloads" into gingerbread

Merge commit '04d7025262d7f6c5c372ec699d78b18d05b0400b'

* commit '04d7025262d7f6c5c372ec699d78b18d05b0400b':
  DB migration to eliminate some null fields in old downloads

9 years agoam 5dbaa73a: am ebb555c0: Support multi-valued HTTP headers, handle new API changes
Steve Howard [Thu, 23 Sep 2010 20:10:51 +0000]
am 5dbaa73a: am ebb555c0: Support multi-valued HTTP headers, handle new API changes

Merge commit '5dbaa73a7f356f67810becbf3ad258a7dd765e59'

* commit '5dbaa73a7f356f67810becbf3ad258a7dd765e59':
  Support multi-valued HTTP headers, handle new API changes

9 years agoam 36f06f4c: Merge "DB migration to eliminate some null fields in old downloads"...
Steve Howard [Thu, 23 Sep 2010 19:50:24 +0000]
am 36f06f4c: Merge "DB migration to eliminate some null fields in old downloads" into gingerbread

Merge commit '36f06f4c8497ab47e64bcc5d8cea12a109fede5e' into gingerbread-plus-aosp

* commit '36f06f4c8497ab47e64bcc5d8cea12a109fede5e':
  DB migration to eliminate some null fields in old downloads

9 years agoam ebb555c0: Support multi-valued HTTP headers, handle new API changes
Steve Howard [Thu, 23 Sep 2010 19:50:21 +0000]
am ebb555c0: Support multi-valued HTTP headers, handle new API changes

Merge commit 'ebb555c0687061993dd6a22d15f6aab2437ee8c5' into gingerbread-plus-aosp

* commit 'ebb555c0687061993dd6a22d15f6aab2437ee8c5':
  Support multi-valued HTTP headers, handle new API changes

9 years agoMerge "DB migration to eliminate some null fields in old downloads" into gingerbread
Steve Howard [Thu, 23 Sep 2010 19:44:11 +0000]
Merge "DB migration to eliminate some null fields in old downloads" into gingerbread

9 years agoDB migration to eliminate some null fields in old downloads
Steve Howard [Thu, 23 Sep 2010 02:51:59 +0000]
DB migration to eliminate some null fields in old downloads

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

9 years agoSupport multi-valued HTTP headers, handle new API changes
Steve Howard [Wed, 22 Sep 2010 22:57:30 +0000]
Support multi-valued HTTP headers, handle new API changes

* 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

9 years agoam ca3d52cc: am ece96c74: Expose permission to download without notification.
Steve Howard [Tue, 21 Sep 2010 22:07:27 +0000]
am ca3d52cc: am ece96c74: Expose permission to download without notification.

Merge commit 'ca3d52cc2aa06ab889f2680f1cc28f540efc1cf1'

* commit 'ca3d52cc2aa06ab889f2680f1cc28f540efc1cf1':
  Expose permission to download without notification.

9 years agoam ece96c74: Expose permission to download without notification.
Steve Howard [Tue, 21 Sep 2010 22:03:03 +0000]
am ece96c74: Expose permission to download without notification.

Merge commit 'ece96c7475696d8b447bb8523f4ad83c897002ea' into gingerbread-plus-aosp

* commit 'ece96c7475696d8b447bb8523f4ad83c897002ea':
  Expose permission to download without notification.

9 years agoExpose permission to download without notification.
Steve Howard [Tue, 21 Sep 2010 20:53:45 +0000]
Expose permission to download without notification.

Change-Id: I43d3b9ca4ea7d4786a47363b4f5f7e6f003013bb

9 years agoam 7b96b251: am d3197296: Implement dialogs for wifi required + recommended limits.
Steve Howard [Tue, 21 Sep 2010 20:12:59 +0000]
am 7b96b251: am d3197296: Implement dialogs for wifi required + recommended limits.

Merge commit '7b96b251c0404ed3f05652bd7d5209910fb999cc'

* commit '7b96b251c0404ed3f05652bd7d5209910fb999cc':
  Implement dialogs for wifi required + recommended limits.

9 years agoam d3197296: Implement dialogs for wifi required + recommended limits.
Steve Howard [Tue, 21 Sep 2010 20:02:10 +0000]
am d3197296: Implement dialogs for wifi required + recommended limits.

Merge commit 'd319729622da1893e895f2e35f41d01ecdca3705' into gingerbread-plus-aosp

* commit 'd319729622da1893e895f2e35f41d01ecdca3705':
  Implement dialogs for wifi required + recommended limits.

9 years agoImplement dialogs for wifi required + recommended limits.
Steve Howard [Fri, 17 Sep 2010 23:45:58 +0000]
Implement dialogs for wifi required + recommended limits.

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

9 years agoam 7c5a33e4: am 78f433c6: Display time for today\'s downloads, delete files on external
Steve Howard [Tue, 21 Sep 2010 02:32:46 +0000]
am 7c5a33e4: am 78f433c6: Display time for today\'s downloads, delete files on external

Merge commit '7c5a33e468d8d029f66c2fe9191132e9b4ad991b'

* commit '7c5a33e468d8d029f66c2fe9191132e9b4ad991b':
  Display time for today's downloads, delete files on external

9 years agoam 2031fa7b: am dc738781: Merge "Improve file error reporting + new detailed error...
Steve Howard [Tue, 21 Sep 2010 02:32:27 +0000]
am 2031fa7b: am dc738781: Merge "Improve file error reporting + new detailed error messages in UI" into gingerbread

Merge commit '2031fa7bad5ef3e31cf0ea73d0b9bf4670842cf0'

* commit '2031fa7bad5ef3e31cf0ea73d0b9bf4670842cf0':
  Improve file error reporting + new detailed error messages in UI

9 years agoam b8cadd87: am 2d0ed12e: Fix DownloadProvider makefile to correctly include sub...
Steve Howard [Tue, 21 Sep 2010 02:31:20 +0000]
am b8cadd87: am 2d0ed12e: Fix DownloadProvider makefile to correctly include sub-makefiles

Merge commit 'b8cadd87bfc628090c36f74979c7691bb1219ea1'

* commit 'b8cadd87bfc628090c36f74979c7691bb1219ea1':
  Fix DownloadProvider makefile to correctly include sub-makefiles

9 years agoam 78f433c6: Display time for today\'s downloads, delete files on external
Steve Howard [Mon, 20 Sep 2010 22:58:23 +0000]
am 78f433c6: Display time for today\'s downloads, delete files on external

Merge commit '78f433c68f14dfba605ceb0e5f3dc54243efd2b2' into gingerbread-plus-aosp

* commit '78f433c68f14dfba605ceb0e5f3dc54243efd2b2':
  Display time for today's downloads, delete files on external

9 years agoDisplay time for today's downloads, delete files on external
Steve Howard [Fri, 17 Sep 2010 00:03:39 +0000]
Display time for today's downloads, delete files on external

* 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

9 years agoam dc738781: Merge "Improve file error reporting + new detailed error messages in...
Steve Howard [Mon, 20 Sep 2010 22:43:49 +0000]
am dc738781: Merge "Improve file error reporting + new detailed error messages in UI" into gingerbread

Merge commit 'dc738781156d0f5ac1db62838d42c876d740810d' into gingerbread-plus-aosp

* commit 'dc738781156d0f5ac1db62838d42c876d740810d':
  Improve file error reporting + new detailed error messages in UI

9 years agoMerge "Improve file error reporting + new detailed error messages in UI" into gingerbread
Steve Howard [Mon, 20 Sep 2010 22:40:55 +0000]
Merge "Improve file error reporting + new detailed error messages in UI" into gingerbread

9 years agoImprove file error reporting + new detailed error messages in UI
Steve Howard [Thu, 16 Sep 2010 19:04:17 +0000]
Improve file error reporting + new detailed error messages in UI

* 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

9 years agoam 2d0ed12e: Fix DownloadProvider makefile to correctly include sub-makefiles
Steve Howard [Mon, 20 Sep 2010 20:13:25 +0000]
am 2d0ed12e: Fix DownloadProvider makefile to correctly include sub-makefiles

Merge commit '2d0ed12eb053170dac2a93f725e86103e74d0da2' into gingerbread-plus-aosp

* commit '2d0ed12eb053170dac2a93f725e86103e74d0da2':
  Fix DownloadProvider makefile to correctly include sub-makefiles

9 years agoam 5eb34906: am dbefa6f5: New assets for download manager UI.
Steve Howard [Mon, 20 Sep 2010 19:41:09 +0000]
am 5eb34906: am dbefa6f5: New assets for download manager UI.

Merge commit '5eb3490642695957074b6547eb48e3d36ab49131'

* commit '5eb3490642695957074b6547eb48e3d36ab49131':
  New assets for download manager UI.

9 years agoFix DownloadProvider makefile to correctly include sub-makefiles
Steve Howard [Mon, 20 Sep 2010 19:40:32 +0000]
Fix DownloadProvider makefile to correctly include sub-makefiles

Change-Id: I569e168267305939197e9af86f9598b17283a2c6

9 years agoam dbefa6f5: New assets for download manager UI.
Steve Howard [Mon, 20 Sep 2010 19:29:42 +0000]
am dbefa6f5: New assets for download manager UI.

Merge commit 'dbefa6f5eff88f97dd91a8adfd65dbd946adb99e' into gingerbread-plus-aosp

* commit 'dbefa6f5eff88f97dd91a8adfd65dbd946adb99e':
  New assets for download manager UI.

9 years agoam b9115af1: am 3398db8f: Fix notification bugs, cleanup DownloadService + DownloadRe...
Steve Howard [Mon, 20 Sep 2010 18:55:00 +0000]
am b9115af1: am 3398db8f: Fix notification bugs, cleanup DownloadService + DownloadReceiver

Merge commit 'b9115af1e7b39a25c00aed7c9d3bb413ecef9eda'

* commit 'b9115af1e7b39a25c00aed7c9d3bb413ecef9eda':
  Fix notification bugs, cleanup DownloadService + DownloadReceiver

9 years agoam 3398db8f: Fix notification bugs, cleanup DownloadService + DownloadReceiver
Steve Howard [Mon, 20 Sep 2010 18:43:31 +0000]
am 3398db8f: Fix notification bugs, cleanup DownloadService + DownloadReceiver

Merge commit '3398db8f3b195959faa2a7cf09918f364432ac28' into gingerbread-plus-aosp

* commit '3398db8f3b195959faa2a7cf09918f364432ac28':
  Fix notification bugs, cleanup DownloadService + DownloadReceiver

9 years agoNew assets for download manager UI.
Steve Howard [Thu, 16 Sep 2010 23:35:23 +0000]
New assets for download manager UI.

Includes new launcher icon and new icon/string for sorting by time.

Change-Id: I5b87da9d5fa53184b1a3096f25e0d45678aa1700

9 years agoFix notification bugs, cleanup DownloadService + DownloadReceiver
Steve Howard [Wed, 15 Sep 2010 19:29:50 +0000]
Fix notification bugs, cleanup DownloadService + DownloadReceiver

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

9 years agoam e8027017: am 4bebe75b: Temporary fix to support old URIs for Market
Steve Howard [Sat, 18 Sep 2010 07:16:41 +0000]
am e8027017: am 4bebe75b: Temporary fix to support old URIs for Market

Merge commit 'e80270177d1b504525d1f4ea4139b0c213fea891'

* commit 'e80270177d1b504525d1f4ea4139b0c213fea891':
  Temporary fix to support old URIs for Market

9 years agoam 4bebe75b: Temporary fix to support old URIs for Market
Steve Howard [Sat, 18 Sep 2010 02:29:30 +0000]
am 4bebe75b: Temporary fix to support old URIs for Market

Merge commit '4bebe75b3e2361d7fb0aa966598c41c45ad9317f' into gingerbread-plus-aosp

* commit '4bebe75b3e2361d7fb0aa966598c41c45ad9317f':
  Temporary fix to support old URIs for Market

9 years agoTemporary fix to support old URIs for Market
Steve Howard [Fri, 17 Sep 2010 23:55:25 +0000]
Temporary fix to support old URIs for Market

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

9 years agoam 176a7442: resolved conflicts for merge of 3d55d829 to gingerbread-plus-aosp
Steve Howard [Thu, 16 Sep 2010 21:29:14 +0000]
am 176a7442: resolved conflicts for merge of 3d55d829 to gingerbread-plus-aosp

Merge commit '176a74426f750dc56e7d200a4cdc3b6ed75fe6cd'

* commit '176a74426f750dc56e7d200a4cdc3b6ed75fe6cd':
  New URI structure with "my_downloads" and "all_downloads"

9 years agoresolved conflicts for merge of 3d55d829 to gingerbread-plus-aosp
Steve Howard [Thu, 16 Sep 2010 20:58:30 +0000]
resolved conflicts for merge of 3d55d829 to gingerbread-plus-aosp

Change-Id: I18ede2f2d5ad8aa40cd61bdb7213659d356fdf57

9 years agoNew URI structure with "my_downloads" and "all_downloads"
Steve Howard [Mon, 13 Sep 2010 01:53:31 +0000]
New URI structure with "my_downloads" and "all_downloads"

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

9 years agoam 57df1b6a: am 33671e9c: Use new status bar text styles in download notification.
Steve Howard [Mon, 13 Sep 2010 22:01:45 +0000]
am 57df1b6a: am 33671e9c: Use new status bar text styles in download notification.

Merge commit '57df1b6a7219e049371cae72b36a63d04e214f59'

* commit '57df1b6a7219e049371cae72b36a63d04e214f59':
  Use new status bar text styles in download notification.

9 years agoam 33671e9c: Use new status bar text styles in download notification.
Steve Howard [Mon, 13 Sep 2010 18:52:01 +0000]
am 33671e9c: Use new status bar text styles in download notification.

Merge commit '33671e9c1e9ffa3776ed987bddeb70a04daa7cfe' into gingerbread-plus-aosp

* commit '33671e9c1e9ffa3776ed987bddeb70a04daa7cfe':
  Use new status bar text styles in download notification.

9 years agoMerge "Import revised translations."
Eric Fischer [Mon, 13 Sep 2010 17:08:30 +0000]
Merge "Import revised translations."

9 years agoam d5c0120a: am 13db2005: Merge "Fix silly bug with completed notifications." into...
Steve Howard [Mon, 13 Sep 2010 02:17:05 +0000]
am d5c0120a: am 13db2005: Merge "Fix silly bug with completed notifications." into gingerbread

Merge commit 'd5c0120af6eae66f15e83ef61eb61ea19542b097'

* commit 'd5c0120af6eae66f15e83ef61eb61ea19542b097':
  Fix silly bug with completed notifications.

9 years agoam 7fa71b17: am 71e7fda9: Further work on the new downloads UI.
Steve Howard [Mon, 13 Sep 2010 02:17:02 +0000]
am 7fa71b17: am 71e7fda9: Further work on the new downloads UI.

Merge commit '7fa71b17d1bcaceb4688cb4b0e6982d1db4a0538'

* commit '7fa71b17d1bcaceb4688cb4b0e6982d1db4a0538':
  Further work on the new downloads UI.

9 years agoam 13db2005: Merge "Fix silly bug with completed notifications." into gingerbread
Steve Howard [Mon, 13 Sep 2010 02:15:22 +0000]
am 13db2005: Merge "Fix silly bug with completed notifications." into gingerbread

Merge commit '13db200521cf8ead0d96173bccd7e141182eeccd' into gingerbread-plus-aosp

* commit '13db200521cf8ead0d96173bccd7e141182eeccd':
  Fix silly bug with completed notifications.

9 years agoUse new status bar text styles in download notification.
Steve Howard [Sat, 11 Sep 2010 00:49:08 +0000]
Use new status bar text styles in download notification.

This avoids the black text on black background problem with new
themes.

Change-Id: I3e05a2a4035dc5837dad67d889f92864c619c6b5

9 years agoam 71e7fda9: Further work on the new downloads UI.
Steve Howard [Mon, 13 Sep 2010 02:13:35 +0000]
am 71e7fda9: Further work on the new downloads UI.

Merge commit '71e7fda9135a0915af1fd419d07ebf85ad09beb4' into gingerbread-plus-aosp

* commit '71e7fda9135a0915af1fd419d07ebf85ad09beb4':
  Further work on the new downloads UI.

9 years agoMerge "Fix silly bug with completed notifications." into gingerbread
Steve Howard [Mon, 13 Sep 2010 02:13:16 +0000]
Merge "Fix silly bug with completed notifications." into gingerbread

9 years agoFix silly bug with completed notifications.
Steve Howard [Sat, 11 Sep 2010 00:21:49 +0000]
Fix silly bug with completed notifications.

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

9 years agoFurther work on the new downloads UI.
Steve Howard [Thu, 9 Sep 2010 00:15:27 +0000]
Further work on the new downloads UI.

* 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

9 years agoImport revised translations.
Eric Fischer [Fri, 10 Sep 2010 22:47:55 +0000]
Import revised translations.

Change-Id: I4142010ad4bf7f22c089cb307e73ff8865cdaafa

9 years agoam b62d8ca6: (-s ours) am f8ccad3e: Import revised translations. DO NOT MERGE
Eric Fischer [Fri, 10 Sep 2010 22:05:57 +0000]
am b62d8ca6: (-s ours) am f8ccad3e: Import revised translations.  DO NOT MERGE

Merge commit 'b62d8ca63ce24ff427896e4c3784f742b9b2e78b'

* commit 'b62d8ca63ce24ff427896e4c3784f742b9b2e78b':
  Import revised translations.  DO NOT MERGE

9 years agoam f8ccad3e: Import revised translations. DO NOT MERGE
Eric Fischer [Fri, 10 Sep 2010 20:31:21 +0000]
am f8ccad3e: Import revised translations.  DO NOT MERGE

Merge commit 'f8ccad3e970434111b3920dc639e05ca48ca66c2' into gingerbread-plus-aosp

* commit 'f8ccad3e970434111b3920dc639e05ca48ca66c2':
  Import revised translations.  DO NOT MERGE

9 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Fri, 10 Sep 2010 20:09:15 +0000]
Import revised translations.  DO NOT MERGE

Change-Id: I806756f787cd261ca5cfdb8aeb40b1e6681c7f42

9 years agoam 93fc6e7f: am 217149ef: First pass at new system UI for download manager.
Steve Howard [Thu, 9 Sep 2010 21:22:42 +0000]
am 93fc6e7f: am 217149ef: First pass at new system UI for download manager.

Merge commit '93fc6e7f750c159d94c871f4bb579e40679e85cf'

* commit '93fc6e7f750c159d94c871f4bb579e40679e85cf':
  First pass at new system UI for download manager.

9 years agoam 217149ef: First pass at new system UI for download manager.
Steve Howard [Thu, 9 Sep 2010 18:28:34 +0000]
am 217149ef: First pass at new system UI for download manager.

Merge commit '217149efdc4a559c38442da179f548e125c0afc5' into gingerbread-plus-aosp

* commit '217149efdc4a559c38442da179f548e125c0afc5':
  First pass at new system UI for download manager.

9 years agoFirst pass at new system UI for download manager.
Steve Howard [Thu, 2 Sep 2010 01:21:32 +0000]
First pass at new system UI for download manager.

This is the initial checkin for a new system UI for the download
manager.  This UI shows all entries present in the Download Manager
database, sorted by either date or size.  It allows the user to
monitor status, open files, and delete/cancel entries.

The code was initially copied from the "Downloads" page of
packages/apps/Browser, since the design is based on that UI.  Much of
the code is changed, although DateSortedExpandableListAdapter is
nearly identical.

The code is not quite finished, but this is very much a working first
pass.

Change-Id: I7fe102e9f2998e57d893cc3c0f5f6da1cf2db549

9 years agoMerge "Import revised translations"
Eric Fischer [Mon, 30 Aug 2010 21:22:29 +0000]
Merge "Import revised translations"

9 years agoam caab8ef3: am 89e4816f: Added support for downloading files with unicode characters
Andreas Sandblad [Mon, 30 Aug 2010 21:06:07 +0000]
am caab8ef3: am 89e4816f: Added support for downloading files with unicode characters

Merge commit 'caab8ef3d5eac4b64aef7042078a542bb52f3bda'

* commit 'caab8ef3d5eac4b64aef7042078a542bb52f3bda':
  Added support for downloading files with unicode characters

9 years agoImport revised translations
Eric Fischer [Mon, 30 Aug 2010 20:40:43 +0000]
Import revised translations

Change-Id: I363e65bb597c31e8a9bbd635519b3bd356a1aa43

9 years agoam 89e4816f: Added support for downloading files with unicode characters
Andreas Sandblad [Mon, 30 Aug 2010 20:30:39 +0000]
am 89e4816f: Added support for downloading files with unicode characters

Merge commit '89e4816fe5f06f4bc2c2fe0e38e63c7fbe468cd7' into gingerbread-plus-aosp

* commit '89e4816fe5f06f4bc2c2fe0e38e63c7fbe468cd7':
  Added support for downloading files with unicode characters

9 years agoam 05ef8174: (-s ours) am 6951c630: Import revised translations. DO NOT MERGE
Eric Fischer [Mon, 30 Aug 2010 20:30:21 +0000]
am 05ef8174: (-s ours) am 6951c630: Import revised translations.  DO NOT MERGE

Merge commit '05ef8174888d1363db58d2664a58a491abf882f7'

* commit '05ef8174888d1363db58d2664a58a491abf882f7':
  Import revised translations.  DO NOT MERGE

9 years agoam 6951c630: Import revised translations. DO NOT MERGE
Eric Fischer [Mon, 30 Aug 2010 19:33:33 +0000]
am 6951c630: Import revised translations.  DO NOT MERGE

Merge commit '6951c6304f5acad616652c0efc3f59ec4ec2a7e5' into gingerbread-plus-aosp

* commit '6951c6304f5acad616652c0efc3f59ec4ec2a7e5':
  Import revised translations.  DO NOT MERGE

9 years agoAdded support for downloading files with unicode characters
Andreas Sandblad [Wed, 25 Aug 2010 07:40:10 +0000]
Added support for downloading files with unicode characters

Currently only certain ASCII characters are allowed in a filename, all
other characters are replaced with an underscore. This gives bad
usability for foreign languages (e.g. japanese). This fix replaces the
current regexp with a method which replaces only those characters unsafe
to be used on VFAT filesystems (should work on most other
filesystems as well).

Change-Id: I114d47b4b35f28490e6b12493138355532fda499

9 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Sat, 28 Aug 2010 00:18:20 +0000]
Import revised translations.  DO NOT MERGE

Change-Id: Ic5de3f973bab21a4d09d375cca1e6775eb1612d7

9 years agoam 70862710: (-s ours) am 89e79002: test - DO NOT MERGE
Jean-Baptiste Queru [Thu, 26 Aug 2010 22:52:36 +0000]
am 70862710: (-s ours) am 89e79002: test - DO NOT MERGE

Merge commit '708627101a977671e3f242dad330361e98206b8f'

* commit '708627101a977671e3f242dad330361e98206b8f':
  test - DO NOT MERGE

9 years agoam 89e79002: test - DO NOT MERGE
Jean-Baptiste Queru [Thu, 26 Aug 2010 20:45:09 +0000]
am 89e79002: test - DO NOT MERGE

Merge commit '89e7900237473cfc86072fd59bb313928877d5c5' into gingerbread-plus-aosp

* commit '89e7900237473cfc86072fd59bb313928877d5c5':
  test - DO NOT MERGE

9 years agotest - DO NOT MERGE
Jean-Baptiste Queru [Thu, 26 Aug 2010 20:25:43 +0000]
test - DO NOT MERGE

Change-Id: Ib1198bb87ef8c94946e52203954122856c5145bb

9 years agoam 9877c7f8: am 97d590d5: Add UI message when queued for wifi due to size.
Steve Howard [Tue, 24 Aug 2010 18:01:44 +0000]
am 9877c7f8: am 97d590d5: Add UI message when queued for wifi due to size.

Merge commit '9877c7f8414bfa1feb49b2afe166f99fff678794'

* commit '9877c7f8414bfa1feb49b2afe166f99fff678794':
  Add UI message when queued for wifi due to size.

9 years agoam b14c9649: am 1df61f0e: Avoid endless restarts when waiting for connectivity.
Steve Howard [Sat, 21 Aug 2010 16:40:28 +0000]
am b14c9649: am 1df61f0e: Avoid endless restarts when waiting for connectivity.

Merge commit 'b14c9649a85152aaf87117fa376bbcd46e754cde'

* commit 'b14c9649a85152aaf87117fa376bbcd46e754cde':
  Avoid endless restarts when waiting for connectivity.

9 years agoam 97d590d5: Add UI message when queued for wifi due to size.
Steve Howard [Sat, 21 Aug 2010 04:39:20 +0000]
am 97d590d5: Add UI message when queued for wifi due to size.

Merge commit '97d590d5a1f583acb7992d20851bdc6cd0454d12' into gingerbread-plus-aosp

* commit '97d590d5a1f583acb7992d20851bdc6cd0454d12':
  Add UI message when queued for wifi due to size.

9 years agoAdd UI message when queued for wifi due to size.
Steve Howard [Sat, 21 Aug 2010 00:45:03 +0000]
Add UI message when queued for wifi due to size.

As it stands, when a download is paused because it's too big to
proceed over mobile, and must proceed over wifi, it looks like any
other paused download, with no indication of why it's paused.  That
may be passable for most other reasons for pausing a download, but it
seems too confusing for this case.  So this change adds a simple
string message that replaces the progress bar when a download is
paused for this reason (the icon also changes to a warning).

The implementation isn't beautiful and could use some improvement, but
I think it's acceptable and necessary.  The exact UI design and
wording are certainly open to change.

Change-Id: I753d57f463e2614b5694bdc178d2a51066da8ca3

9 years agoam 1df61f0e: Avoid endless restarts when waiting for connectivity.
Steve Howard [Thu, 19 Aug 2010 15:32:26 +0000]
am 1df61f0e: Avoid endless restarts when waiting for connectivity.

Merge commit '1df61f0e1a275961ad9762ffc1d141adb91870e0' into gingerbread-plus-aosp

* commit '1df61f0e1a275961ad9762ffc1d141adb91870e0':
  Avoid endless restarts when waiting for connectivity.

9 years agoAvoid endless restarts when waiting for connectivity.
Steve Howard [Wed, 18 Aug 2010 23:11:34 +0000]
Avoid endless restarts when waiting for connectivity.

Adding an extra check for usable network connectivity to avoid an endless
restart-pause loop while waiting for usable connectivity.

Change-Id: If4da9ad222993b5479ada658508f445d10a42013

9 years agoresolved conflicts for merge of 2f3c8c7e to master
Steve Howard [Wed, 18 Aug 2010 22:08:50 +0000]
resolved conflicts for merge of 2f3c8c7e to master

Change-Id: Idcaa37fc828bfae41a150f2cce7b55fa152987be

9 years agoam 0f1c2853: (-s ours) am 0937e177: Import revised translations. DO NOT MERGE
Eric Fischer [Wed, 18 Aug 2010 21:22:28 +0000]
am 0f1c2853: (-s ours) am 0937e177: Import revised translations.  DO NOT MERGE

Merge commit '0f1c28532ce3a16aa61a271c9e44a9b7f72ba878'

* commit '0f1c28532ce3a16aa61a271c9e44a9b7f72ba878':
  Import revised translations.  DO NOT MERGE

9 years agoam 7bdfb134: Merge "Fix and test handling of null/empty download fields." into ginger...
Steve Howard [Wed, 18 Aug 2010 20:38:44 +0000]
am 7bdfb134: Merge "Fix and test handling of null/empty download fields." into gingerbread

Merge commit '7bdfb134c6c1c4e3d4c5da61327e62bc38407c95' into gingerbread-plus-aosp

* commit '7bdfb134c6c1c4e3d4c5da61327e62bc38407c95':
  Fix and test handling of null/empty download fields.

9 years agoam 0937e177: Import revised translations. DO NOT MERGE
Eric Fischer [Wed, 18 Aug 2010 20:36:39 +0000]
am 0937e177: Import revised translations.  DO NOT MERGE

Merge commit '0937e177818843f24a9d6b17c06fadb21886d005' into gingerbread-plus-aosp

* commit '0937e177818843f24a9d6b17c06fadb21886d005':
  Import revised translations.  DO NOT MERGE

9 years agoMerge "Fix and test handling of null/empty download fields." into gingerbread
Steve Howard [Wed, 18 Aug 2010 16:05:12 +0000]
Merge "Fix and test handling of null/empty download fields." into gingerbread

9 years agoFix and test handling of null/empty download fields.
Steve Howard [Tue, 3 Aug 2010 19:39:35 +0000]
Fix and test handling of null/empty download fields.

Minor change to make title/description default to blank stings, and
add test case covering all null/empty download fields.

Change-Id: Id44344bc2e464f46589faed49c8f383a45a8d329

9 years agoImport revised translations.
Eric Fischer [Tue, 17 Aug 2010 23:56:57 +0000]
Import revised translations.

Change-Id: I5897c2ba31070f3c6b8225720db12eef5364777f

9 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Tue, 17 Aug 2010 23:45:53 +0000]
Import revised translations.  DO NOT MERGE

Change-Id: Ie97669dcd7a43f4f408beeee7ab7e65d9114731d

9 years agoam fa5175e5: am adb6887d: Clean up error codes returned by download manager.
Steve Howard [Tue, 17 Aug 2010 15:41:40 +0000]
am fa5175e5: am adb6887d: Clean up error codes returned by download manager.

Merge commit 'fa5175e572258fba0cd55e1c8a01b654178e3f1e'

* commit 'fa5175e572258fba0cd55e1c8a01b654178e3f1e':
  Clean up error codes returned by download manager.

9 years agoam adb6887d: Clean up error codes returned by download manager.
Steve Howard [Tue, 17 Aug 2010 15:29:44 +0000]
am adb6887d: Clean up error codes returned by download manager.

Merge commit 'adb6887d3270d180c94eaf90878d5b67d74a8f28' into gingerbread-plus-aosp

* commit 'adb6887d3270d180c94eaf90878d5b67d74a8f28':
  Clean up error codes returned by download manager.

9 years agoam e80c3555: am e61798da: Extend PublicApiAccessTest to exercise DownloadManager.
Steve Howard [Mon, 16 Aug 2010 22:19:36 +0000]
am e80c3555: am e61798da: Extend PublicApiAccessTest to exercise DownloadManager.

Merge commit 'e80c35557bd72489323303af9d93c2c33c88cce9'

* commit 'e80c35557bd72489323303af9d93c2c33c88cce9':
  Extend PublicApiAccessTest to exercise DownloadManager.

9 years agoClean up error codes returned by download manager.
Steve Howard [Sat, 31 Jul 2010 01:55:38 +0000]
Clean up error codes returned by download manager.

This set of changes cleans up the error codes returned by the download
manager in various failure cases, aiming for improved consistency.
Error codes are part of the public API so it's important to get this
right now.

The main changes here are:
* Refactoring the flow of error status information throughout
  DownloadThread to make it more explicit, by having StopRequest
  accept a status code in its constructor and eliminating
  State.mFinaStatus.
* Eliminating the use of valid HTTP 4xx statuses when those statuses
  weren't actually returned by the server.  Now, if the returned error
  code is a valid HTTP status code, that means it was returned by the
  server.  These cases have been replaced with more sensible
  artificial error codes, including a new ERROR_CANNOT_RESUME when an
  interrupted download can't be resumed.
* Improvements to some of the error handling code paths -- ensuring we
  don't clear the cache for external downloads, ensuring we don't fail
  with CANNOT_RESUME when the download hasn't actually started yet,
  removing the restriction on acceptable mime types for public API
  downloads.

Change-Id: I0d825845fe0fe7ed5df74bad26e8d34ac0d1cc4e

9 years agoam e61798da: Extend PublicApiAccessTest to exercise DownloadManager.
Steve Howard [Mon, 16 Aug 2010 20:20:22 +0000]
am e61798da: Extend PublicApiAccessTest to exercise DownloadManager.

Merge commit 'e61798da80558450f580ed948d0d469bd6423d8e' into gingerbread-plus-aosp

* commit 'e61798da80558450f580ed948d0d469bd6423d8e':
  Extend PublicApiAccessTest to exercise DownloadManager.

9 years agoExtend PublicApiAccessTest to exercise DownloadManager.
Steve Howard [Mon, 2 Aug 2010 18:52:16 +0000]
Extend PublicApiAccessTest to exercise DownloadManager.

This change adds a new test case to PublicApiAccessTest to enqueue a
request through DownloadManager, ensuring that the values constructed
by DownloadManager fit within the allowed bounds.  It also fixes a bug
with allowing http header values exposed by the new test.

Change-Id: I94fec57d7a41298ac42ddaab338516e6a60c4e75

9 years agoMerge "Import revised translations."
Eric Fischer [Tue, 10 Aug 2010 19:21:27 +0000]
Merge "Import revised translations."

9 years agoImport revised translations.
Eric Fischer [Tue, 10 Aug 2010 19:13:35 +0000]
Import revised translations.

Change-Id: I5ff563b44875bf1668a906c45420e303be614881

9 years agoam b986eca2: (-s ours) am 99de0992: Import revised translations. DO NOT MERGE
Eric Fischer [Tue, 10 Aug 2010 19:04:18 +0000]
am b986eca2: (-s ours) am 99de0992: Import revised translations.  DO NOT MERGE

Merge commit 'b986eca2ca6764f1f3ed60ebfb82a8d8306acbac'

* commit 'b986eca2ca6764f1f3ed60ebfb82a8d8306acbac':
  Import revised translations.  DO NOT MERGE

9 years agoam 99de0992: Import revised translations. DO NOT MERGE
Eric Fischer [Tue, 10 Aug 2010 19:00:42 +0000]
am 99de0992: Import revised translations.  DO NOT MERGE

Merge commit '99de0992f03c5b4a1611d25db1df0773433dea7c' into gingerbread-plus-aosp

* commit '99de0992f03c5b4a1611d25db1df0773433dea7c':
  Import revised translations.  DO NOT MERGE

9 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Tue, 10 Aug 2010 18:52:39 +0000]
Import revised translations.  DO NOT MERGE

Change-Id: Ib2ce8f6ee48925ab4371c39266ef4696cb812f91

9 years agoam 1d332ceb: am da5a4183: Merge "Make all public API downloads visible." into gingerbread
Steve Howard [Sat, 7 Aug 2010 02:06:59 +0000]
am 1d332ceb: am da5a4183: Merge "Make all public API downloads visible." into gingerbread

Merge commit '1d332ceb5756ef2e09ae97f1735aa9b529063874'

* commit '1d332ceb5756ef2e09ae97f1735aa9b529063874':
  Make all public API downloads visible.

9 years agoam da5a4183: Merge "Make all public API downloads visible." into gingerbread
Steve Howard [Sat, 7 Aug 2010 01:54:35 +0000]
am da5a4183: Merge "Make all public API downloads visible." into gingerbread

Merge commit 'da5a4183312f520cf35b154d33cb7205e6ba5557' into gingerbread-plus-aosp

* commit 'da5a4183312f520cf35b154d33cb7205e6ba5557':
  Make all public API downloads visible.

9 years agoMerge "Make all public API downloads visible." into gingerbread
Steve Howard [Fri, 6 Aug 2010 18:22:53 +0000]
Merge "Make all public API downloads visible." into gingerbread

9 years agoImport revised translations.
Eric Fischer [Thu, 5 Aug 2010 23:10:43 +0000]
Import revised translations.

Change-Id: Ic4df1a4487552342e398a4c0ae94c33b7a448976

9 years agoam 5f587436: (-s ours) am a3c9f66a: Import revised translations. DO NOT MERGE
Eric Fischer [Thu, 5 Aug 2010 18:45:13 +0000]
am 5f587436: (-s ours) am a3c9f66a: Import revised translations.  DO NOT MERGE

Merge commit '5f587436aad18acc3bbf6577872cc80b0af980d2'

* commit '5f587436aad18acc3bbf6577872cc80b0af980d2':
  Import revised translations.  DO NOT MERGE

9 years agoam a3c9f66a: Import revised translations. DO NOT MERGE
Eric Fischer [Wed, 4 Aug 2010 17:59:41 +0000]
am a3c9f66a: Import revised translations.  DO NOT MERGE

Merge commit 'a3c9f66a80c4d801b893f7867041f34d902156fe' into gingerbread-plus-aosp

* commit 'a3c9f66a80c4d801b893f7867041f34d902156fe':
  Import revised translations.  DO NOT MERGE

9 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Wed, 4 Aug 2010 17:46:11 +0000]
Import revised translations.  DO NOT MERGE

Change-Id: Ic6f84636b3bbb635ecc790711ba5828dd094f878

9 years agoam 3253c05a: am 0d4f9f10: Get wifi limit from secure settings.
Steve Howard [Tue, 3 Aug 2010 22:52:36 +0000]
am 3253c05a: am 0d4f9f10: Get wifi limit from secure settings.

Merge commit '3253c05afccc0cb62c29958d023d863222a5845c'

* commit '3253c05afccc0cb62c29958d023d863222a5845c':
  Get wifi limit from secure settings.

9 years agoam 0d4f9f10: Get wifi limit from secure settings.
Steve Howard [Tue, 3 Aug 2010 00:16:33 +0000]
am 0d4f9f10: Get wifi limit from secure settings.

Merge commit '0d4f9f105c3a31475a36e9a1edfa868c66ff455f' into gingerbread-plus-aosp

* commit '0d4f9f105c3a31475a36e9a1edfa868c66ff455f':
  Get wifi limit from secure settings.

9 years agoam 92ae639f: am dea0a5f8: Add test for many interruptions to a single download.
Steve Howard [Fri, 30 Jul 2010 20:12:42 +0000]
am 92ae639f: am dea0a5f8: Add test for many interruptions to a single download.

Merge commit '92ae639f324084a23a54812ab92304b009a93340'

* commit '92ae639f324084a23a54812ab92304b009a93340':
  Add test for many interruptions to a single download.

9 years agoam dea0a5f8: Add test for many interruptions to a single download.
Steve Howard [Fri, 30 Jul 2010 20:11:01 +0000]
am dea0a5f8: Add test for many interruptions to a single download.

Merge commit 'dea0a5f8e5804d3aba40eaa7de763dd88058384e' into gingerbread-plus-aosp

* commit 'dea0a5f8e5804d3aba40eaa7de763dd88058384e':
  Add test for many interruptions to a single download.