Squashed commit of the following:

commit 2435eb9c89bd46511624b9d89ab22766f82dbfcb
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu May 9 13:46:37 2013 -0700

    Avoid NPE when finding common MIME type.

    Bug: 8609148
    Change-Id: Ibd1121d6833981234acdc927010087c12913e33d

commit 64a9e6cb3628db724e04492cf207757348960eb7
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Sun Apr 28 15:55:53 2013 -0700

    Completed downloads should clear when touched.

    Bug: 8744610
    Change-Id: I135a3acbc819fd725f00ba57461e21db1fe24850

commit e336af4d37af25d9261439d4ec0c153aa897dfbe
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Apr 11 11:08:10 2013 -0700

    Downloads should always be available.

    Bug: 8596021
    Change-Id: I56149da0519915764f5c38a8141e1a7dcfff5b25

commit 62608885d3d8a7b88776084040f666bd1304b811
Merge: af49093 498f62e
Author: Geremy Condra <gcondra@google.com>
Date:   Fri Apr 5 22:41:03 2013 +0000

    Merge "Restore the appropriate SELinux context to the downloads dir." into jb-mr2-dev

commit af49093b1554fdc55977e9281505e05865f33813
Author: Danny Baumann <dannybaumann@web.de>
Date:   Wed Apr 3 14:36:21 2013 +0200

    Fix download notification click behaviour.

    PendingIntent.getBroadcast() doesn't update the intent extras if not
    explicitly given something to distinguish the intents. This caused the
    notification on-click to do nothing on everything but the first
    download.

    Change-Id: I29544ae5b04f8304cbbe720066a26ff90e422107

commit 498f62e2da65df9e11e8da6feb959ed0d513f792
Author: Geremy Condra <gcondra@google.com>
Date:   Wed Apr 3 19:07:45 2013 -0700

    Restore the appropriate SELinux context to the downloads dir.

    Change-Id: I4839fd07abdd1c6b866f1d94dc36567df047e30c

commit 5048492e352be8134d92178d757a60117491e292
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Mar 26 13:15:43 2013 -0700

    New PendingIntents when extras change.

    Otherwise notifications end up launching with stale download IDs.

    Bug: 8417220
    Change-Id: Ie72a2f4ac7b72213678ac6001af45709034492dd

commit ff0220f5b4624049a1052bd868d7706eee5a0daf
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Mar 26 11:18:16 2013 -0700

    Unregister observer when tearing down service.

    Also reduce and adjust some logging.

    Bug: 8470658
    Change-Id: Ia1f1cbd315ded04edd2113506e5c5a1db5ec85b4

commit 0f2f63932bd8d963764d37527b3237d219fdaa4d
Author: Fabrice Di Meglio <fdimeglio@google.com>
Date:   Tue Mar 26 03:12:57 2013 +0000

    Revert "Avoid sending messages after HandlerThread.quit()."

    This reverts commit 97d507d95f9885ceb12f2ce2483361b5ed265f9f

    Change-Id: I20374301561b3a1c79c2d986292af50049de2aac

commit 97d507d95f9885ceb12f2ce2483361b5ed265f9f
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Mar 25 17:45:19 2013 -0700

    Avoid sending messages after HandlerThread.quit().

    Bug: 8470658
    Change-Id: I4cfd6a01c2c2d845a72d3f58c29eec8b44176537

commit 703bc3a83056a878a83e263b992fb5331b84535f
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Mar 25 13:54:29 2013 -0700

    Reduce logging, dump stacks before wtf().

    Most wtf() are looking like network timeouts, not threading bugs, so
    disable verbose debugging and add more targeted thread logging before
    calling wtf().

    Bug: 8233041
    Change-Id: I8e276bffd7880cfe13b65e7e81f5507cab627692

commit 2c462097d100646ec7491b5fd5fa00ae7ff49200
Merge: 1b5c009 a683635
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Mar 25 11:32:16 2013 -0700

    am a6836350: am 9f48387a: Merge "Add title attribute for menu item."

    * commit 'a683635084b05b9b03752c6dfedfb749d29080f4':
      Add title attribute for menu item.

commit a683635084b05b9b03752c6dfedfb749d29080f4
Merge: 07dab9c 9f48387
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Mar 25 11:31:03 2013 -0700

    am 9f48387a: Merge "Add title attribute for menu item."

    * commit '9f48387a1cf8116b8aba3035fbb1f0aec4cf0861':
      Add title attribute for menu item.

commit 1b5c0091270cdc04054c9a2af33ba4f94d652cff
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Mar 21 14:24:25 2013 -0700

    Start using MockStreamResponse.

    Change-Id: Ida4a0a85883ccd6763b07e958ddc6ecf7eedf790

commit 9f48387a1cf8116b8aba3035fbb1f0aec4cf0861
Merge: 195b46b abe0f6f
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Mar 25 17:32:53 2013 +0000

    Merge "Add title attribute for menu item."

commit a9c9eea93af0aebbdace4ce39acde8085186403e
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Mar 21 14:57:07 2013 -0700

    Finish RTL work in Downloads.

    Clean up some padding, and handle checkbox clicks based on RTL mode.

    Bug: 8133419
    Change-Id: I9c0f54218eb1c182fbe6f3f4eeb3e83e7ebc6ea9

commit 11787c02ad60f681af2cf4ef5d0fbf89efdbc4c2
Merge: b723f1a a9917b4
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Mar 21 00:07:11 2013 +0000

    Merge "Increase timeout for domains with many DNS entries." into jb-mr2-dev

commit a9917b41429e3e18074d8a8a709894e488883686
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Mar 20 17:03:48 2013 -0700

    Increase timeout for domains with many DNS entries.

    Bug: 8233041
    Change-Id: Ifb70273474c391ef687ba018d9ef809a359c7149

commit b723f1ae16c62d8e1e50c7bcd63d9b1552dd03cd
Author: fliang <fliang@codeaurora.org>
Date:   Wed Feb 27 05:04:42 2013 -0500

    Add title attribute for menu item.

    This fix is needed to display text instead of a blank rectangle when
    user selects the share or delete icons.

    Bug: 8418296
    Change-Id: Ie21af8600cb19bc652d3677c53bdc05278998612

commit abe0f6ff62bfea291176720cb3287975dc21a6c0
Author: fliang <fliang@codeaurora.org>
Date:   Wed Feb 27 05:04:42 2013 -0500

    Add title attribute for menu item.

    This fix is needed to display text instead of a blank rectangle when
    user selects the share or delete icons.

    Bug: 8418296
    Change-Id: Ie21af8600cb19bc652d3677c53bdc05278998612

commit 844782d81e12d8bd13c9b26a5f7aab3f4be81b5a
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Mar 18 18:30:02 2013 -0700

    Defeat transparent Accept-Encoding: gzip.

    Transparent gzip encoding doesn't allow us to easily resume partial
    requests, so defeat it for now.

    Bug: 8409417
    Change-Id: I1172709c09d1153fff1ba8df072a9bef896e244d

commit 45f654d03476d9a2493e7fc5f7334bcc0a6c10e3
Merge: 5ba6974 07dab9c
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Mar 8 11:09:46 2013 -0800

    am 07dab9c7: am 21f5f351: am ed009be9: (-s ours) DO NOT MERGE. Merge commit \'4602bf9d\' into mergeit

    * commit '07dab9c7689ef85ef6a062f57c38bf4c3a8506bd':
      Fix large file download failure issue

commit 07dab9c7689ef85ef6a062f57c38bf4c3a8506bd
Merge: 195b46b 21f5f35
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Mar 8 11:06:43 2013 -0800

    am 21f5f351: am ed009be9: (-s ours) DO NOT MERGE. Merge commit \'4602bf9d\' into mergeit

    * commit '21f5f3516e88e1a237be21e0bd4b07c903310cde':
      Fix large file download failure issue

commit 21f5f3516e88e1a237be21e0bd4b07c903310cde
Merge: b0bb182 ed009be
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Mar 8 11:04:20 2013 -0800

    am ed009be9: (-s ours) DO NOT MERGE. Merge commit \'4602bf9d\' into mergeit

    * commit 'ed009be9799ddfe554745c8aeb8f2ad47a10945b':
      Fix large file download failure issue

commit ed009be9799ddfe554745c8aeb8f2ad47a10945b
Merge: b0bb182 4602bf9
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Mar 8 10:57:15 2013 -0800

    DO NOT MERGE. Merge commit '4602bf9d' into mergeit

    Change-Id: Ic13c1bd2bad0d833dd50c3bf391b127d90436539

commit 4602bf9d3238fc17bb3fb0fd751aa21b32ca4bf9
Merge: 2fa007e 1c07423
Author: Catherine Liu <wlcl05@motorola.com>
Date:   Fri Mar 8 10:19:49 2013 -0800

    am 1c074231: am af909b55: Fix large file download failure issue

    * commit '1c074231df1ddad86cf7db1bed71a249c951ecec':
      Fix large file download failure issue

commit 1c074231df1ddad86cf7db1bed71a249c951ecec
Merge: d7dd601 af909b5
Author: Catherine Liu <wlcl05@motorola.com>
Date:   Fri Mar 8 10:18:26 2013 -0800

    am af909b55: Fix large file download failure issue

    * commit 'af909b55fe1ffa78e69cfda862fd5ebce712ac7a':
      Fix large file download failure issue

commit af909b55fe1ffa78e69cfda862fd5ebce712ac7a
Author: Catherine Liu <wlcl05@motorola.com>
Date:   Tue Feb 5 16:00:50 2013 -0600

    Fix large file download failure issue

    The root cause is int overflow as integer can only hold size
    Integer.MAX_VALUE = 0x7FFFFFFF. It is about 2G. So, when a file size
    is greater than 2G, it throws a "NumberFormatException", and then
    mark this download "unsuccessfully".
    The progress bar in notification for the large file downloading was
    not correct either. The total file size was converted from long to
    int value when in builder.setProgress().

    Change-Id: Ib038860e26cf8cade2c423403585c207f8b8979b

commit 5ba69740a47857fcebd36866e07963ba798269d5
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Mar 1 11:18:38 2013 -0800

    Fix race conditions around filename claiming.

    When multiple downloads are running in parallel, they can end up
    claiming the same filename and clobber over each other.  This change
    introduces locking around filename generation, and touches the
    claimed filename so other threads fail the File.exists() check and
    keep looking.

    Tests to verify.

    Bug: 8255596
    Change-Id: Ie75ed047c199cf679832c75159056ca036eac18d

commit 80a535d83ea9ed21f443fdc701c743569ae53eec
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Feb 26 12:43:56 2013 -0800

    Adjust timeouts to reduce false-positive bugs.

    Otherwise we end up triggering MSG_FINAL_UPDATE while still waiting
    for socket timeouts.  Using 20 seconds for timeout is more sane, and
    matches Volley.

    Bug: 8233041
    Change-Id: Ia7220033a5942c46ca1d79a88e2b3f530cb3edac

commit 7ce206b2108714035eeed29c1dc268a3f1ccf359
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Feb 22 11:57:48 2013 -0800

    Test to verify extremely large downloads.

    Streams a 3GB file to verify that it downloads correctly, using new
    MockWebServer streaming API.

    Bug: 8209169
    Change-Id: Ic36271bfef3176e1ccea2b40edc7abb1044222f1

commit 54277c8d2de6ba2db1cb5c632914a89aa4ad499c
Merge: 8d669d1 dd1179c
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Feb 21 00:11:58 2013 +0000

    Merge "Ack, we actually need to UpdateThread.quit()."

commit dd1179c09fb6ac2420292e52ea3ced395f76a7be
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Feb 20 16:10:39 2013 -0800

    Ack, we actually need to UpdateThread.quit().

    Otherwise they end up leaking.  There is a race around UpdateThread
    continuing to process messages before onDestroy() has been invoked,
    so explicitly UpdateThread.quit() in both places.

    Bug: 8233041
    Change-Id: I73f1b70aedace19e23a61a3dddf4986d82f2c7d6

commit 8d669d11147ea80495a1c99fa274b7cf93b4eb56
Merge: 3dcc9e3 71a5304
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Feb 20 23:58:25 2013 +0000

    Merge "Only use single UpdateThread."

commit 71a53040699e713bcae839a01b7f8abd9e13bab6
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Feb 20 15:54:26 2013 -0800

    Only use single UpdateThread.

    Since DownloadService starts and stops frequently, recycle a single
    UpdateThread across invocations.

    Bug: 8233041
    Change-Id: I07756fb6bfdbad811cbd58e628fdfdbf63d71bf8

commit 3dcc9e30898050de426972660e932fff251c8568
Merge: d1214c9 b3ef414
Author: Ed Heyl <edheyl@google.com>
Date:   Wed Feb 20 13:47:33 2013 -0800

    Merge remote-tracking branch 'goog/jb-mr2-release'

commit b3ef41473f038c4e23374bc9f595d1cd62d2fba8
Merge: d1214c9 9b0d47c
Author: The Android Automerger <android-build@android.com>
Date:   Wed Feb 20 05:56:21 2013 -0800

    merge in jb-mr2-release history after reset to master

commit d1214c9c92b6a4a44cfc46125c33d071a0f3d880
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Feb 19 17:11:41 2013 -0800

    Only report speeds from full samples windows.

    Wait until we've passed a full sample window (500ms) before reporting
    an estimated speed.  This avoid showing skewed times like "900 hours
    remaining."

    Also remember to clean up the UpdateThread.

    Bug: 8176417
    Change-Id: I851e0abcbb443114abe9c22f4650fee7a9bc3aaa

commit 2eb144d8effed2dbb067957c5b25e735233bca89
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Feb 19 12:48:08 2013 -0800

    Retries shouldn't backoff when network changes.

    When a download fails due to a network change, treat it as waiting
    for network, instead of subjecting it to full retry backoff.

    Change-Id: Ifdae62fd7c2baad7422f68e09da94740b5f513d0

commit 9b0d47c5e7ec8ac100389d5087b260ad41de577c
Merge: 292f9bf aa5d623
Author: The Android Automerger <android-build@android.com>
Date:   Tue Feb 19 09:52:06 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 292f9bffb4d4055db57b6e6419591f14e00bfc74
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Feb 14 10:07:16 2013 -0800

    Update database before sending broadcast.

    This was moved to to solve a race condition around service shutdown,
    but ended up causing another race with remote apps.

    Bug: 8200919
    Change-Id: Ief470e9454e9be8ec43ca3ec11e3b3440fa5852d

commit aa5d6239a5e3aaaaf268e15b25cdc63e049875d4
Merge: 9259762 e4626ed
Author: The Android Automerger <android-build@android.com>
Date:   Wed Feb 13 05:56:34 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 925976230936a5177365dc24b50da8607a9af8d4
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Feb 11 16:19:39 2013 -0800

    Redesign of DownloadManager update loop.

    Previously, the service lifecycle was managed through a large for()
    loop which was extremely tricky to reason about.  This resulted in
    several race conditions that could leave the service running
    indefinitely, or terminate it early before tasks had finished.

    This change redesigns the update loop to be event driven based on
    database updates, and to collapse mutiple pending update passes.  It
    is much easier to reason about service termination conditions, and
    it correctly uses startId to handle races during command delivery.

    Also moves scanner into isolated class, and switches to using public
    API instead of binding to private interface.

    Bug: 7638470, 7455406, 7162341
    Change-Id: I380e77f5432223b2acb4e819e37f29f98ee4782b

commit e4626ed42f3b061d78475c588c77ed67baf196bc
Merge: 1ad10ce d81ca79
Author: The Android Automerger <android-build@android.com>
Date:   Mon Feb 11 07:12:24 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 1ad10ce731d1b54692d7d5ee32601e965f503fa4
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Feb 7 16:13:20 2013 -0800

    Active notifications only for running downloads.

    Bug: 8145142
    Change-Id: I9119796f809aa967f7ec6bb2a3d2b815e86eaf1b

commit d81ca799b478777dc104b94abf383e3d50c94bed
Merge: afad579 8ad17eb
Author: The Android Automerger <android-build@android.com>
Date:   Thu Feb 7 07:11:22 2013 -0800

    merge in jb-mr2-release history after reset to master

commit afad57978db86c7012ff2df927a4a6191171d144
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Oct 26 17:28:34 2012 -0700

    Allow granting access to "my_downloads" paths.

    PackageInstaller attempts to grant Uri permissions on my_downloads
    paths passed internally.  This change lets the system successfully
    grant permissions to these paths.

    Bug: 7426851
    Change-Id: I9a4eea4397c02175aff4e3881a9a79cea1e6e0e3

commit 8ad17eb29e012a984330cd8f1bbf3a4ea27c88e4
Merge: 76483d4 232b0ad
Author: The Android Automerger <android-build@android.com>
Date:   Wed Feb 6 07:11:35 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 76483d4dff2243db6c92a30182b9197f9c14e7c6
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Feb 5 10:52:51 2013 -0800

    Update Downloads UI for RTL languages.

    Bug: 8133419
    Change-Id: I0c8c0909e41d51cfa2e136304a0a13c5d46afb3b

commit 232b0ad6db4a6af794f6ee6e1109050aefe2f779
Merge: 70c0e1e fd0dd73
Author: The Android Automerger <android-build@android.com>
Date:   Fri Feb 1 07:10:53 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 70c0e1eff5ff7cd5051738f76cecd6cb87353a43
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Jan 31 17:10:54 2013 -0800

    Migrate to using Mockito directly.

    Change-Id: Ice24d5c62bbcbcfd3d7374eac3a20580f7f31f36

commit fd0dd730864164585ec6c9969cd7016b230b8ac9
Merge: 1d0a0aa 427177c
Author: The Android Automerger <android-build@android.com>
Date:   Thu Jan 31 07:11:02 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 1d0a0aa2cc5bfed8107aa70f7e890fde9a7ea2b4
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Jan 30 11:26:46 2013 -0800

    Dump recent downloads from provider.

    The lifetime of DownloadService can be limited, and it's often
    missing from bugreports.  The provider has a much longer lifetime,
    so have it dump raw data about recent downloads.

    Bug: 7350685
    Change-Id: I55c9d602d77014ea27820936f1cf5c8ad24f286a

commit 427177c934410aebebfc95f3385765c9a6e9b9c6
Merge: 58eee87 5309ada
Author: The Android Automerger <android-build@android.com>
Date:   Wed Jan 30 07:11:03 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 58eee87b70862a7ced85eabc3c225fad24664065
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Jan 29 14:48:46 2013 -0800

    Tests for max retries/redirects, ETag switches.

    Verify that servers responding with many retries or redirects result
    in failed download, instead of spinning out of control.  Test to
    verify that changed ETag results in download failing.

    Also fix handling of HTTP 301 to update Uri in database.

    Change-Id: Iff2948d79961a245b7900117d107edaa356618c9

commit 5309adae0d1324b44fb696f4e96357a64b835deb
Merge: 3864883 ba2970a
Author: The Android Automerger <android-build@android.com>
Date:   Tue Jan 29 07:11:08 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 38648831a92295e9a11831e19e5a9dab4cbd939e
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Sat Jan 12 15:58:51 2013 -0800

    Cleaner thread management, less global state.

    Switch to using a ThreadPoolExecutor for handling downloads, which
    gives us parallelism logic that is easier to reason about.  Also
    open the door to eventually waiting until the executor is drained
    to stopSelf().

    Removes DownloadHandler singleton, and gives explicit path for
    publishing active download speeds to notifications.

    Change-Id: I1836e7742bb8a84861d1ca6bd1e59b2040bd12f8

commit ba2970ab9312f7db61776251f473151955ff6bfe
Merge: e4b1f0a ca20ba4
Author: The Android Automerger <android-build@android.com>
Date:   Wed Jan 23 07:10:58 2013 -0800

    merge in jb-mr2-release history after reset to master

commit e4b1f0ae43f169886d8d651a418e7f309e3e6f2f
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Jan 22 10:09:22 2013 -0800

    Import translations. DO NOT MERGE

    Change-Id: I37a549fc1bf508361eb7f2fbfaebbdf9d173db38
    Auto-generated-cl: translation import

commit ca20ba49257ea50a93fecf804c8f59d29ff8f390
Merge: 12f5dc4 04049fa
Author: The Android Automerger <android-build@android.com>
Date:   Fri Jan 18 07:11:02 2013 -0800

    merge in jb-mr2-release history after reset to master

commit 12f5dc46aaa8e28cabfbe25d55f0af68f24ab306
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Jan 17 17:26:51 2013 -0800

    Better handling of retryable errors.

    Now the final errors are always thrown, and the outer code decides
    how to handle them as retries.  Also clean up method signatures.

    Bug: 8022478
    Change-Id: I4e7e43be793294ab837370df521e7c381e0bb6c3

commit 04049fa208b3c45405f09c015edf927dc9643da4
Merge: 9786242 6b1f545
Author: The Android Automerger <android-build@android.com>
Date:   Mon Jan 14 07:50:16 2013 -0800

    merge in master-release history after reset to master

commit 97862429de71477b5c4488faa911a2256b90089b
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Sat Jan 12 15:01:04 2013 -0800

    Move network state to enums for type safety.

    Change-Id: Ib8ea24fc58a866f8a5626cdd20e5891eb0a2bbeb

commit 6b1f54569c72bcb962d7803028e7354b17de8886
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Jan 10 11:12:52 2013 -0800

    Only add one User-Agent header.

    Also include more details when reporting HTTP error codes.

    Bug: 7966393
    Change-Id: I251b1ec7c827693817391b6e9fb8b0cab995395e

commit 89afc754d46a8574a9e014c7670746668de9f9b3
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Jan 10 11:12:52 2013 -0800

    Only add one User-Agent header.

    Also include more details when reporting HTTP error codes.

    Bug: 7966393
    Change-Id: I251b1ec7c827693817391b6e9fb8b0cab995395e

commit 0de55602ec6d350548248feddc68c91b29326eff
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Sun Dec 23 19:28:09 2012 -0800

    Simplify download flow control, handle redirects.

    Move redirection handling into a single loop, and handle each HTTP
    response code inline to make flow control easier to reason about.

    Fix race condition in tests by waiting for first status update.

    Bug: 7887226
    Change-Id: Id4bfd182941baad4cd0bb702376c4beeb7275bb2

commit 8ac10e0e0667a4fe35191deebb5fa9786bf4226c
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Jan 3 22:59:50 2013 -0800

    Clean up DownloadManager threading tests.

    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

commit 701d66efeff513a7509eeaafab6e47f4f6edb857
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Sat Jan 5 09:47:36 2013 -0800

    Remove singleton StorageManager.

    Now DownloadService creates and owns the lifecycle of its own
    StorageManager instance.

    Change-Id: I8f6bedc02f1dbe610a8e6a25d55383a12716d344

commit b62364ce70074dbdea03aafdc0f64c7ba39c3a69
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Dec 20 15:10:34 2012 -0800

    Fold InnerState into State.

    It was cluttering up method signatures, and can easily be reset
    before starting each download pass.

    Change-Id: I7dee9d2160c3b5f737e7db86baa826d5d0b04b2d

commit a85832b4772626852142b60c4806ff5384a76478
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Dec 17 17:05:03 2012 -0800

    Always append to files, handle end of stream.

    Fix bug where resumed downloads wouldn't open in append mode. Handle
    end of stream exceptions from URLConnection as special-case for now
    to keep tests passing.

    Move stream creation outside of DrmOutputStream, and always fsync()
    before closing files. Treat HTTP header errors as retryable. Add
    explicit state checks to redirection tests.

    Change-Id: I19d007284f6bfbffaac93859fe47cd98b79a59c4

commit 3b3bbfe2cdd1988a38bcf780191e5273f9a62024
Merge: 226c76b 5cff4ec
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Dec 13 15:43:09 2012 -0800

    Merge "Cleaner I/O."

commit 5cff4ecb10e89e4fb39cd9e39b8753a31efbe3cc
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Dec 6 15:54:44 2012 -0800

    Cleaner I/O.

    This cleans up writing of downloaded data by always writing through
    OutputStream interface, which applies DRM if needed.  Hands I/O
    streams along with method calls to give clearer chain of ownership.

    Only retry writes once after verifying free space. Remove
    checkCanHandleDownload() check, since most downloads are now using
    public API.  Release DrmManagerClient sessions when finished.

    Change-Id: I49e479089a8218690b556d31ec65a030930ad368

commit 226c76b54ed0c1ad1b8a858abbe94551e47476c3
Merge: 1244a63 195b46b
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Dec 13 14:23:09 2012 -0800

    am 195b46b8: am b0bb182a: Cancel stale notifications when starting.

    * commit '195b46b8a59eb522fc91ac6f498f359a337d3f3e':
      Cancel stale notifications when starting.

commit 195b46b8a59eb522fc91ac6f498f359a337d3f3e
Merge: 770f0d7 b0bb182
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Dec 13 14:19:47 2012 -0800

    am b0bb182a: Cancel stale notifications when starting.

    * commit 'b0bb182a1b52b31ccf1ec5e0be82308ebb4857e2':
      Cancel stale notifications when starting.

commit 1244a63f799ab689a2d7d94415133be26580ae70
Merge: a58fab4 770f0d7
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 12 10:34:05 2012 -0800

    am 770f0d7c: (-s ours) am 1d71eb6b: Import translations. DO NOT MERGE

    * commit '770f0d7ce322ffb332ae325d7377afc4dcae4f7a':
      Import translations. DO NOT MERGE

commit a58fab43eb4649c1b6f316b54a1875e49af1ebde
Merge: 5135f3c 25ecefe
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 12 10:34:03 2012 -0800

    am 25ecefe9: (-s ours) Import translations. DO NOT MERGE

    * commit '25ecefe9d117834011070e3575e7ab099bec6cc8':
      Import translations. DO NOT MERGE

commit 770f0d7ce322ffb332ae325d7377afc4dcae4f7a
Merge: 25ecefe 1d71eb6
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 12 10:28:54 2012 -0800

    am 1d71eb6b: Import translations. DO NOT MERGE

    * commit '1d71eb6b347cf861c53c1bc4c18b8928528b244c':
      Import translations. DO NOT MERGE

commit 5135f3c4e2489b21d267e151f567613447e179e7
Merge: 93671f8 0982b33
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 12 10:27:26 2012 -0800

    Merge "Import translations. DO NOT MERGE"

commit 93671f84d5731734fc86f40bde1875e28db60f27
Merge: f78698b c92dc11
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Dec 12 09:54:36 2012 -0800

    Merge "Move DownloadManager to HttpURLConnection."

commit 0982b332dd3766eae74b8c469c75c62d0b7e3695
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 12 09:48:50 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: If63f10fb04fea622a810a473b7a6026e09243b62
    Auto-generated-cl: translation import

commit 25ecefe9d117834011070e3575e7ab099bec6cc8
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 12 09:47:52 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: If4d0d58f02f114be7500b092bc64bf98133a4c8f
    Auto-generated-cl: translation import

commit c92dc11cd94f5b00f0193cc8cf1e03644d825590
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Dec 6 11:54:45 2012 -0800

    Move DownloadManager to HttpURLConnection.

    Apache HttpClient is in maintenance mode, and doesn't have support
    for features like Server Name Indication (SNI).  This change moves
    DownloadManager to use HttpURLConnection internally.  It also
    moves redirection handling into HttpURLConnection.

    Bug: 7070597
    Change-Id: Ie80093eeeecd14f94e1c8b7597ff3f8f5d220691

commit f78698b64e24648c758db3d30771f0f539fddc3b
Merge: 5a91eaa e12b912
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Dec 6 23:23:21 2012 -0800

    am e12b912f: (-s ours) am 99de1b60: Import translations. DO NOT MERGE

    * commit 'e12b912f9cbf5d55043dc9d6fdfc9398463d046b':
      Import translations. DO NOT MERGE

commit 5a91eaab8e265373352077f62ada1033b7207e2c
Merge: 48f95fd 05a3d61
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Dec 6 23:23:20 2012 -0800

    am 05a3d61b: (-s ours) Import translations. DO NOT MERGE

    * commit '05a3d61b7481a46083877c1832f43bda07a450bb':
      Import translations. DO NOT MERGE

commit 48f95fdc2838f070b84ba952660351ca65efbece
Merge: c9eaed8 9ad850e
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Dec 6 23:23:19 2012 -0800

    am 9ad850e7: (-s ours) am 5f956afb: Import translations. DO NOT MERGE

    * commit '9ad850e79f5aa38ef4069b4a7743c5aeb934ae29':
      Import translations. DO NOT MERGE

commit c9eaed8dcf3a8ed8a25909be8ec5d63af3264928
Merge: 5806f86 9529ca6
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Dec 6 23:23:19 2012 -0800

    am 9529ca65: (-s ours) Import translations. DO NOT MERGE

    * commit '9529ca65cf71b11a20f7586c2a6e3ce80963d676':
      Import translations. DO NOT MERGE

commit e12b912f9cbf5d55043dc9d6fdfc9398463d046b
Merge: 05a3d61 99de1b6
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Dec 6 08:25:20 2012 -0800

    am 99de1b60: Import translations. DO NOT MERGE

    * commit '99de1b606e5462ab191d2af5b9bd8c7c4ed30d00':
      Import translations. DO NOT MERGE

commit 5806f8679862efb0954db06a5d8f0080efcdc0e9
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Dec 6 08:20:42 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I97f4b6ad261e150770d996f03972f61084493ea9
    Auto-generated-cl: translation import

commit 05a3d61b7481a46083877c1832f43bda07a450bb
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Dec 6 08:20:03 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Ibc78b0a1952d9482c86b603b5b7d4cc528e4f54b
    Auto-generated-cl: translation import

commit 9ad850e79f5aa38ef4069b4a7743c5aeb934ae29
Merge: 9529ca6 5f956af
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 5 13:27:45 2012 -0800

    am 5f956afb: Import translations. DO NOT MERGE

    * commit '5f956afb7c75a2184bbada95eb4d91c35d1736ae':
      Import translations. DO NOT MERGE

commit 0ad85e1836fd4eef74806f798063bcd494087819
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 5 10:22:18 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Ic7e93c202d44b5dccd3a20dc945482bdee956d86
    Auto-generated-cl: translation import

commit 9529ca65cf71b11a20f7586c2a6e3ce80963d676
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Dec 5 10:21:39 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Ib14b80172fb2383c5e3a955ea9994ff3e448d0c6
    Auto-generated-cl: translation import

commit 01794a47418fc062ff0ed998005e9be68264dc59
Merge: 806d7d9 9ecb7a1
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 29 20:52:27 2012 -0800

    am 9ecb7a13: (-s ours) am 0daff11c: Import translations. DO NOT MERGE

    * commit '9ecb7a13dec41365c0dbb112286b99ebd9faf61a':
      Import translations. DO NOT MERGE

commit 806d7d97548b87b1ead1d999b993d64d3bfb34a3
Merge: b506d72 66748b4
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 29 20:51:04 2012 -0800

    am 66748b46: (-s ours) Import translations. DO NOT MERGE

    * commit '66748b469b439b746cbe44dd3bcc7c6978f1528f':
      Import translations. DO NOT MERGE

commit 9ecb7a13dec41365c0dbb112286b99ebd9faf61a
Merge: 66748b4 0daff11
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 29 20:48:14 2012 -0800

    am 0daff11c: Import translations. DO NOT MERGE

    * commit '0daff11c040114ecee4ff8f06b982eedde85f020':
      Import translations. DO NOT MERGE

commit b506d729db1701ff29aa57154dd4b01adde6dd62
Merge: 40100a7 237569f
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 29 20:46:49 2012 -0800

    Merge "Import translations. DO NOT MERGE"

commit 40100a79bdf726deb42a7b96930cb6be22ee20ba
Merge: f24b5d9 d75f110
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Nov 29 14:31:51 2012 -0800

    am d75f110f: am e495c97a: Merge "Improve download remaining time calculation." into jb-mr1.1-dev

    * commit 'd75f110ff5a9c235f4f243bf0bb51bd5f535e2b3':
      Improve download remaining time calculation.

commit 237569f4a3450212156182559429c47f20494af3
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 29 07:40:37 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I2629d923382c2964ebef6299b1206381956d707c
    Auto-generated-cl: translation import

commit 66748b469b439b746cbe44dd3bcc7c6978f1528f
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 29 07:39:53 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I4cc19c97596a5e1c3a104913c0b6b1269a33f852
    Auto-generated-cl: translation import

commit d75f110ff5a9c235f4f243bf0bb51bd5f535e2b3
Merge: e33e83a e495c97
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Nov 28 15:14:54 2012 -0800

    am e495c97a: Merge "Improve download remaining time calculation." into jb-mr1.1-dev

    * commit 'e495c97a17e9387d92e369a52b1212e6f908a8de':
      Improve download remaining time calculation.

commit f24b5d91918a292e3ac4ef59b6629f6bc555a42b
Merge: 06e285d e33e83a
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Nov 27 18:43:56 2012 -0800

    am e33e83a5: am 8ec8bdeb: Merge "Update extras for in-progress download." into jb-mr1.1-dev

    * commit 'e33e83a5c3cc97ce3b47f1f9b6410c3928f1f7de':
      Update extras for in-progress download.

commit 06e285daa8df6aef6e30b00ceaebede8e6328c2d
Merge: 9ff9314 a940d37
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 27 18:42:41 2012 -0800

    am a940d370: (-s ours) am d912ebe9: Import translations. DO NOT MERGE

    * commit 'a940d3700093fb83c8916bd4b218761e534b9bd4':
      Import translations. DO NOT MERGE

commit 9ff9314aa89f37741208b89774f577ed7ecf9037
Merge: 73b6260 d5ea3a5
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 27 18:42:40 2012 -0800

    am d5ea3a50: (-s ours) Import translations. DO NOT MERGE

    * commit 'd5ea3a50feebae50c303b6cc314972d8d12d5e80':
      Import translations. DO NOT MERGE

commit e33e83a5c3cc97ce3b47f1f9b6410c3928f1f7de
Merge: a940d37 8ec8bde
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Nov 27 16:13:49 2012 -0800

    am 8ec8bdeb: Merge "Update extras for in-progress download." into jb-mr1.1-dev

    * commit '8ec8bdebaefcecb8b3e6b9f724aba7b25406db21':
      Update extras for in-progress download.

commit a940d3700093fb83c8916bd4b218761e534b9bd4
Merge: d5ea3a5 d912ebe
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 27 12:57:22 2012 -0800

    am d912ebe9: Import translations. DO NOT MERGE

    * commit 'd912ebe9c815b88bbdf43b6a9a9605a370d18eaf':
      Import translations. DO NOT MERGE

commit 73b6260df4a77581dbd14856cdba6f645a3bc57a
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 27 12:06:35 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I737fb23b9ef7c768fc3aadda23997d42c0cf0b5c
    Auto-generated-cl: translation import

commit d5ea3a50feebae50c303b6cc314972d8d12d5e80
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 27 12:05:52 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Ib9b90701453d04cf708cfc3488a64b9ebb5146b7
    Auto-generated-cl: translation import

commit 61ce99006e71ed6ec565bf4fd646c92d05408300
Merge: aab40fe cc07fb4
Author: Baligh Uddin <baligh@google.com>
Date:   Mon Nov 26 09:06:58 2012 -0800

    Merge "Import translations. DO NOT MERGE"

commit aab40fe409655e336ac1ad5c8575fc8fbf8292ed
Merge: b41f431 9fc01e6
Author: Baligh Uddin <baligh@google.com>
Date:   Mon Nov 26 08:54:59 2012 -0800

    am 9fc01e63: (-s ours) am 65ab05d0: Import translations. DO NOT MERGE

    * commit '9fc01e63c8c13f597036747bc725b91f1de9aa9e':
      Import translations. DO NOT MERGE

commit 9fc01e63c8c13f597036747bc725b91f1de9aa9e
Merge: 0b0a729 65ab05d
Author: Baligh Uddin <baligh@google.com>
Date:   Mon Nov 26 08:51:15 2012 -0800

    am 65ab05d0: Import translations. DO NOT MERGE

    * commit '65ab05d0a0070a73ded180c2d2f639644239bcf3':
      Import translations. DO NOT MERGE

commit b41f4312f5f848accc38ba8e329a07ba29ea7d07
Merge: bc68a0e 0b0a729
Author: Baligh Uddin <baligh@google.com>
Date:   Mon Nov 26 08:46:18 2012 -0800

    am 0b0a729e: (-s ours) Import translations. DO NOT MERGE

    * commit '0b0a729e5c947f1059045c4daa764ef4e0204f8b':
      Import translations. DO NOT MERGE

commit cc07fb4d33adf080d5b15151b45453e31f5b7fe6
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 22 21:19:54 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I1b6057ab8d9f98e603d132ec894f1f701af2a6df
    Auto-generated-cl: translation import

commit 0b0a729e5c947f1059045c4daa764ef4e0204f8b
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 22 21:19:16 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I5e3bc1c3f822f82f5bbf03b7122ae0753dbfeae6
    Auto-generated-cl: translation import

commit bc68a0ef9ed9552524e21c17f0e489027ca7c783
Merge: 7c6ecd1 2cf400f
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 22 10:56:59 2012 -0800

    am 2cf400fc: (-s ours) am 892ed772: Import translations. DO NOT MERGE

    * commit '2cf400fcf5a88142753d1fe08a00be2e427516f5':
      Import translations. DO NOT MERGE

commit 7c6ecd1e4a83155ed201d800c3a71bbbe9e87fc2
Merge: ba0962d e6db051
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 22 10:55:36 2012 -0800

    am e6db0518: (-s ours) Import translations. DO NOT MERGE

    * commit 'e6db051893ab043e1dc0564bc8657fbb3c8159ae':
      Import translations. DO NOT MERGE

commit 2cf400fcf5a88142753d1fe08a00be2e427516f5
Merge: e6db051 892ed77
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 22 10:53:12 2012 -0800

    am 892ed772: Import translations. DO NOT MERGE

    * commit '892ed772f460bf9690d9a0b275f50c9ffab84919':
      Import translations. DO NOT MERGE

commit ba0962d11028666ea9224eb161076e26e64c1075
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 20 21:58:47 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I05ffc0a6f3255e2aa987e702423de9bcb29a323a
    Auto-generated-cl: translation import

commit e6db051893ab043e1dc0564bc8657fbb3c8159ae
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 20 21:58:09 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I071f0954450427cb5e171af805bba0778d132ca9
    Auto-generated-cl: translation import

commit 6ed79deedf76ef3b7b50df5683acf03318d4b4e0
Merge: a849058 0649df4
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 15:52:51 2012 -0800

    am 0649df4c: (-s ours) am 53948fb5: Import translations. DO NOT MERGE

    * commit '0649df4cbd1f8fd78918f0b1973484ed53f34d13':
      Import translations. DO NOT MERGE

commit 0649df4cbd1f8fd78918f0b1973484ed53f34d13
Merge: 49c229f 53948fb
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 15:48:00 2012 -0800

    am 53948fb5: Import translations. DO NOT MERGE

    * commit '53948fb5ec17bdeffb1990554eebd8e6e7456016':
      Import translations. DO NOT MERGE

commit a849058da7cedce77c0f94e989d571f59720f2f3
Merge: 6980595 fc2c7cb
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 15:47:19 2012 -0800

    Merge "Import translations. DO NOT MERGE"

commit 6980595c619f666aab5bee3522cca08b6a852007
Merge: 7d3713f 49c229f
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 15:19:02 2012 -0800

    am 49c229f8: (-s ours) Import translations. DO NOT MERGE

    * commit '49c229f8c9708824e5fbf7ad5959b13ba1a8d88f':
      Import translations. DO NOT MERGE

commit fc2c7cb6e38a7b485a82a2c6edb1484da6a368a5
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 13:03:00 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Ia6d3a87fb3e890e6ec216fdd3a3e6b633fc90030
    Auto-generated-cl: translation import

commit 49c229f8c9708824e5fbf7ad5959b13ba1a8d88f
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 13:01:46 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Ia5f394c3c136e33a05decc5636508fce54364b1f
    Auto-generated-cl: translation import

commit 7d3713fcf620b182a7bac31f42e7b71d872194dd
Merge: 790a840 37771cd
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Nov 16 10:37:56 2012 -0800

    am 37771cd7: am 253e36a9: Merge "Show remaining time in download notifications." into jb-mr1.1-dev

    * commit '37771cd722c670792c4d9fa8b02e19a15306a035':
      Show remaining time in download notifications.

commit 790a840e9663ecd927c1142fe3f1409ef57e7595
Merge: 651527a a99f801
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 10:37:14 2012 -0800

    am a99f801e: (-s ours) am a8e93e66: Import translations. DO NOT MERGE

    * commit 'a99f801ede9104e580445bf72d1803f426a8cb84':
      Import translations. DO NOT MERGE

commit 651527a5546a8d5a170168bc438239d3b1f8f309
Merge: 656ad11 e37079a
Author: Baligh Uddin <baligh@google.com>
Date:   Fri Nov 16 10:37:12 2012 -0800

    am e37079a1: (-s ours) Import translations. DO NOT MERGE

    * commit 'e37079a1b59bae2382d3ea816bdf47e23aac2e75':
      Import translations. DO NOT MERGE

commit 37771cd722c670792c4d9fa8b02e19a15306a035
Merge: a99f801 253e36a
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Thu Nov 15 11:53:16 2012 -0800

    am 253e36a9: Merge "Show remaining time in download notifications." into jb-mr1.1-dev

    * commit '253e36a97df21ac2d7ada4e33d9d0fc16fa3215f':
      Show remaining time in download notifications.

commit a99f801ede9104e580445bf72d1803f426a8cb84
Merge: e37079a a8e93e6
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Nov 15 09:40:32 2012 -0800

    am a8e93e66: Import translations. DO NOT MERGE

    * commit 'a8e93e66495dbb9d63f61e49a0e09210989d2e65':
      Import translations. DO NOT MERGE

commit 656ad111100153512b1cf118f4ebf3194b8397ca
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Nov 14 08:48:40 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Icd6893f3d72012a8180aa39ad271176d4cdf9f92
    Auto-generated-cl: translation import

commit e37079a1b59bae2382d3ea816bdf47e23aac2e75
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Nov 14 08:47:51 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: Iccc90cef5b510768a23d8ddc125e38d6ce19159a
    Auto-generated-cl: translation import

commit 8b6080fef4115cad1b3ee3070e8665ddb6871899
Merge: 917ed8a a40a349
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Tue Nov 13 15:56:15 2012 -0800

    am a40a349c: Rewrite of download notifications.

    * commit 'a40a349c0107660bfb4004467550725a3ca3ec97':
      Rewrite of download notifications.

commit 917ed8a6b211a7f7c74be32bed0bfc7ca805eeda
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Nov 6 12:53:36 2012 -0800

    Import translations. DO NOT MERGE

    Change-Id: I3ff4771df98581e7d83f441d0f42fb0aecdb7ad0
    Auto-generated-cl: translation import

commit 6b2e3675211bb3319b0d1fa6b35b8995a11d1686
Merge: 9352696 2fa007e
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Oct 24 18:14:45 2012 -0700

    am 2fa007ef: Better sanity checking for finished downloads.

    * commit '2fa007ef678b2283d47d007aa3dc91af683cc52c':
      Better sanity checking for finished downloads.

commit 935269687ba3846e4c1aac912e4c4047e1ea13ed
Merge: c9533a0 169ab53
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Oct 22 12:45:54 2012 -0700

    am 169ab531: Bring back DRM mimetypes.

    * commit '169ab531ca6bb2f43ed18fe2b03f66c808f12b81':
      Bring back DRM mimetypes.

commit c9533a0e23689000bca615727500eb0612d280a5
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Oct 16 12:43:59 2012 -0700

    Import translations. DO NOT MERGE

    Change-Id: I27be3167a8c837d98786394d6b8ca2403d992055
    Auto-generated-cl: translation import

commit ccd040c32fda1f25496bda1bb037855a81430299
Merge: e07c49e 7444bae
Author: Jason Chen <jasonchen@google.com>
Date:   Sun Oct 14 23:07:53 2012 -0700

    am 7444bae1: Let\'s enhance

    * commit '7444bae122a6f0922792813c6200fe135b4daaa3':
      Let's enhance

commit e07c49ef91c3b1ac4c9fd2326fb90048157286ce
Merge: dc109b0 70b5c30
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Fri Oct 5 15:25:47 2012 -0700

    am 70b5c30d: Skip scanning a file which will be deleted.

    * commit '70b5c30db87b3405e2e001c06c4a4a5dd6e25b72':
      Skip scanning a file which will be deleted.

commit dc109b02d9abe58b7c915a292bde5716227dd89a
Merge: c93ebff b92aa3a
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Wed Oct 3 11:45:11 2012 -0700

    am b92aa3a8: Handle not fully connected networks.

    * commit 'b92aa3a88dd25a798bbedc860d9b29aef42bbb0f':
      Handle not fully connected networks.

commit c93ebff02062495f8953a2e6e2367f0712273853
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Oct 2 13:54:19 2012 -0700

    Import translations. DO NOT MERGE

    Change-Id: I6ea27f3fae7bcf40c51027ae1f8862f79d2b9b16
    Auto-generated-cl: translation import

commit 28b8c3d8fba3e3d304c763851083a99a22468eee
Merge: 565918c f161f8b
Author: Ruben Brunk <rubenbrunk@google.com>
Date:   Fri Sep 28 11:30:21 2012 -0700

    am f161f8b6: Merge "Remove FLAG_ACTIVITY_NEW_TASK from the VIEW intent." into jb-mr1-dev

    * commit 'f161f8b6ab4ddf3dbedd1731771b1eacc628c48c':
      Remove FLAG_ACTIVITY_NEW_TASK from the VIEW intent.

commit 565918c034a53323871617df38f796036c1105b3
Merge: adcb629 46bb7dd
Author: Ben Gruver <bgruv@google.com>
Date:   Fri Sep 28 11:05:03 2012 -0700

    am 46bb7dd1: Send uid of the application that initiated the download

    * commit '46bb7dd18c9b092d352d76ab44a4e52951941b2c':
      Send uid of the application that initiated the download

commit adcb6296782d25f9cf85610c7cd859f7d00901a9
Author: Baligh Uddin <baligh@google.com>
Date:   Wed Sep 26 15:29:32 2012 -0700

    Import translations. DO NOT MERGE

    Change-Id: I4eed6d17b8a6c47d9acb7246df6f55850292fcba
    Auto-generated-cl: translation import

commit f4f8fdbe41275f52f4956d90e0db176c64b9a243
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Sep 25 12:29:41 2012 -0700

    Import translations. DO NOT MERGE

    Change-Id: I52c3655c40eb42793292bef3ba4c423c7ce609b7
    Auto-generated-cl: translation import

commit 673f9d1eecae5afdad9def1895f774df738b9abd
Merge: 4c26768 14991c6
Author: Romain Guy <romainguy@google.com>
Date:   Fri Sep 14 10:28:22 2012 -0700

    am 14991c65: Properly dispatch checkbox toggling Bug #6995003

    * commit '14991c65911034a97268840d36cf9549e06fd56e':
      Properly dispatch checkbox toggling Bug #6995003

commit 4c26768a11856116643010e4838f969c8e8b9cae
Author: Baligh Uddin <baligh@google.com>
Date:   Thu Sep 13 11:06:52 2012 -0700

    Import translations. DO NOT MERGE

    Change-Id: If5194340d699f19790ece73c8e33b9c319ac7da4
    Auto-generated-cl: translation import

commit da36500ecf690cc46c87555b54e6821b0fbcd08c
Merge: d122388 c0622bf
Author: Jeff Sharkey <jsharkey@android.com>
Date:   Mon Aug 27 22:01:23 2012 -0700

    am c0622bf8: Send ORIGINATING_URI and REFERRER to installer.

    * commit 'c0622bf896c1af62b0e69b18cd84c7de3b67beb3':
      Send ORIGINATING_URI and REFERRER to installer.

commit d122388855a4c6d8c97a81aeb09f74dfef3f75db
Author: Baligh Uddin <baligh@google.com>
Date:   Tue Aug 21 09:29:14 2012 -0700

    Import translations. DO NOT MERGE

    Change-Id: I39b732269503209083d57c5e9fdaf12347958627
    Auto-generated-cl: translation import

Change-Id: Idda58017f931ae0305a889128dfab9b7a1cfe331