OSDN Git Service

Pipe notifications from related users to listeners.
authorKenny Guy <kennyguy@google.com>
Mon, 3 Mar 2014 18:24:03 +0000 (18:24 +0000)
committerKenny Guy <kennyguy@google.com>
Tue, 8 Apr 2014 17:38:38 +0000 (18:38 +0100)
commita263e4e438746f91fb78857bd569ba4f796a346d
treecc93c663b7d15cdde229dfd844cce7732139778c
parent2eadb856d0c3747545fa2d19bec3270d112cf49c
Pipe notifications from related users to listeners.

For Listeners built against L or greater
Send notifications from related users to listeners.
Return notifications from related users getAllActiveNotifications
Cancel notifications from related users in cancelAllNotifications
Deprecate StatusBarNotification.getUserId() and expose getUser()
as APIs should use UserHandles.
Deprecate cancelNotification that takes package, id and tag
in favour of one that takes key.

Fix bug that notifications from related users didn't
trigger sounds.

Change-Id: I1b1c20c9f305b8f3c4047bc5720d8e99cdedfe70
api/current.txt
core/java/android/service/notification/NotificationListenerService.java
core/java/android/service/notification/StatusBarNotification.java
services/core/java/com/android/server/notification/NotificationManagerService.java