Rewrite of download notifications.
authorJeff Sharkey <jsharkey@android.com>
Fri, 3 Aug 2012 04:58:17 +0000 (21:58 -0700)
committerJeff Sharkey <jsharkey@android.com>
Fri, 9 Nov 2012 23:40:00 +0000 (15:40 -0800)
commita40a349c0107660bfb4004467550725a3ca3ec97
tree3fb1f96ad2d1da1d346fd32f239d1ee8ef149376
parent2fa007ef678b2283d47d007aa3dc91af683cc52c
Rewrite of download notifications.

Switch to using new inbox-style notifications when collapsing multiple
downloads. Correctly handles clustering, including cancellation of
stale notifications. All notifications are now handled in a single
class, making it easier to reason about correctness.

Fixed bugs around handling of visibility flags. Move away from using
"int" as internal keys, since they can overflow. Started work for
time estimates, will finish in a future CL.

Explicitly pass all relevant IDs to DownloadReceiver instead of doing
a second racy query. Fix StrictMode warnings when querying in
DownloadReceiver.

Bug: 6777872, 5463678, 6663547, 6967346, 6634261, 5608365
Change-Id: I5eb47b73b90b6250acec2ce5bf8d7a274ed9d3a9
res/values/strings.xml
src/com/android/providers/downloads/DownloadNotification.java [deleted file]
src/com/android/providers/downloads/DownloadNotifier.java [new file with mode: 0644]
src/com/android/providers/downloads/DownloadProvider.java
src/com/android/providers/downloads/DownloadReceiver.java
src/com/android/providers/downloads/DownloadService.java
tests/src/com/android/providers/downloads/FakeSystemFacade.java
tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java