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
Open images with content://media/ instead of content://downloads/ URI.

This allows images to be shared directly after opening them with the
DownloadManager.

Change-Id: I65c79923b7aef4c1113e572030c9c7f750b73df0
Clear notifications for Deleted items from Download list

Issue: Notifications for deleted items from the Download
list are not getting cleared and thus tapping on such
notifications causes crash (Illegal Argument Exception)

Fix: clear notifications for deleted items by adding them
in the stale list

Change-Id: I7a27d19fff994876eee07d4c4d63b2808cc516d3
CRs-Fixed: 536562
DownloadProvider: don't allow backups.

Change-Id: I5a07244d4bb7e11af4f5eb1a624fc20165248aab
Creates parent directories before creates file

Change-Id: I124f7ce2b731b100e9572d7c5d95206e243ee316
Signed-off-by: Roger Chen <cxr514033970@gmail.com>
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
DownloadNotifier: Normal notification for singles

This builds upon the previous DownloadNotifier, but changes the notification style
when downloading single files by removing the big view.
See this post for more information:
https://plus.google.com/u/0/+Mart%C3%ADndelRosarioOK/posts/hgGcgsFqyp6

PS2: Fixing dependencies
PS3: Removing tabs/whitespace
PS4: Fix missing speed text after last patchset.
PS5: Restore previous change, fix missing time this time.
PS6: Reformat layout

Change-Id: Iaab38d7e7f9de3d9eb3deb5f061ee646b346c7cc
Avoid leaking cursors

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

Change-Id: I596074aa9ab5752f91a26b5a03e1f39c23c64a5f
[2/2] Add to support pause/resume download

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

PSs: Code cleanup.

Change-Id: I7c2c6043bd6e26c4d4b0c74265f87629967302a0

Conflicts:
	src/com/android/providers/downloads/DownloadNotifier.java