Remove download notification after preview

Removes download notification from the notification bar after
previewing it. There should be an additional check for download
shown in the notifications after completion to prevent from
situation when ContentObserver is unregistered and the onChange
is never called.

Change-Id: I0914a680f08eb96949b56e08719eb28d2e80ccc9
DownloadProvider: Add transfer speeds in notification

This will show transfer speed in notification when in expanded mode.
For multiple files, the combined speed are displayed.

Screenshot: http://i.imgur.com/xqLRvMo.png

PS1: Initial commit
PS2: clean code
     add missing declarations & import

Change-Id: I801dbe61c7ee59d0c1d14d5851ad6dc3a7678499

Conflicts:
	src/com/android/providers/downloads/DownloadNotifier.java
Revert "DownloadProvider: Add transfer speeds in notification"

This reverts commit 759696d18c10e68f50f2d30d27822f28efd611d7.
DownloadProvider: Transfer speeds in notification

Change-Id: Ic7efcdfe7a329946f3b63c331064ac2f16faafeb
DownloadProvider: Normal notification for singles

This builds upon the previous DownloadNotifier, but changes
the notification style when downloading single files by
removing the big view.

Change-Id: I06d2b555bb51613661ccb50df3b7bc59439b2252

Conflicts:
	src/com/android/providers/downloads/DownloadNotifier.java
DownloadProvider: Standardize notifications

Standardize play store and browser download notifications
Image: http://i.imgur.com/w3VaRUK.png

Change-Id: Ibadcca3725b4adb330a5670414ac8f89790448b8
[2/2] DownloadProvider: DownloadManager: add support pause/resume/stop notifications

User can manually pause current download and resume to continue download remaining data of the file.
add a progressbar to show download progress. (only legacy View)
add pause/resume/stop/retry into notifications
add remaining time into notifications

Change-Id: I7c2c6043bd6e26c4d4b0c74265f87629967302a0
Refactor
Avoid leaking cursors

Adding try/finally blocks to make sure that cursor
resources are let go

Change-Id: I596074aa9ab5752f91a26b5a03e1f39c23c64a5f

Patchset: 2
http://review.cyanogenmod.org/#/c/63333/