Add "Cancel" action to downloads in notification.
authorOren Blasberg <orenb@google.com>
Fri, 19 Jun 2015 18:31:38 +0000 (11:31 -0700)
committerOren Blasberg <orenb@google.com>
Thu, 25 Jun 2015 22:50:58 +0000 (15:50 -0700)
commit6971133998ddc8c8c6b37b2fdaaec1d3ed152e90
tree0f8b878bed85ec64b384fd34db87079368d78d3a
parent8b2db225a6ccef9dff906ffed1e9c3193622f91d
Add "Cancel" action to downloads in notification.

Add a "Cancel" action to in-progress downloads shown in notification
pane.
We add a new action type for a new "cancel" intent sent by
DownloadNotifier to DownloadReceiver, which in turn cancels the
download by way of DownloadManager.

BUG=19972464

Change-Id: I83cd2f40e1442c327f756027b99f9eac913a0e70
src/com/android/providers/downloads/Constants.java
src/com/android/providers/downloads/DownloadNotifier.java
src/com/android/providers/downloads/DownloadReceiver.java
tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java