diff options
author | Christoph Studer <chstuder@google.com> | 2014-05-20 18:36:43 +0200 |
---|---|---|
committer | Christoph Studer <chstuder@google.com> | 2014-05-21 22:03:45 +0200 |
commit | cee44ba418bef83571349acb2d24ef29833502e0 (patch) | |
tree | 87805ba12348d620860ba5803d5f20146cb2c684 /api | |
parent | 5b53148a4e8d47b88362703445010c54f9fd6ecc (diff) | |
download | frameworks_base-cee44ba418bef83571349acb2d24ef29833502e0.zip frameworks_base-cee44ba418bef83571349acb2d24ef29833502e0.tar.gz frameworks_base-cee44ba418bef83571349acb2d24ef29833502e0.tar.bz2 |
Simplify NotificationListenerService API
Use ParceledListSlice to send the list of active notifications
from NoMan to NotificationListeners.
This allows us to simplify the API to what it was before
introducing the "String[] key" workaround for dealing with large
numbers of StatusBarNotifications.
While we're at it, rename Ranking.getIndexOfKey to something that
makes more sense.
Bug: 15126927
Change-Id: I02c2087978c6c4ec1198be496c6250a66143ecb3
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/api/current.txt b/api/current.txt index 3d5cae2..9b5a672 100644 --- a/api/current.txt +++ b/api/current.txt @@ -25650,12 +25650,10 @@ package android.service.notification { method public final deprecated void cancelNotification(java.lang.String, java.lang.String, int); method public final void cancelNotification(java.lang.String); method public final void cancelNotifications(java.lang.String[]); - method public java.lang.String[] getActiveNotificationKeys(); method public android.service.notification.StatusBarNotification[] getActiveNotifications(); - method public android.service.notification.StatusBarNotification[] getActiveNotifications(java.lang.String[]); method public android.service.notification.NotificationListenerService.Ranking getCurrentRanking(); method public android.os.IBinder onBind(android.content.Intent); - method public void onListenerConnected(java.lang.String[]); + method public void onListenerConnected(); method public abstract void onNotificationPosted(android.service.notification.StatusBarNotification); method public void onNotificationRankingUpdate(); method public abstract void onNotificationRemoved(android.service.notification.StatusBarNotification); @@ -25664,8 +25662,8 @@ package android.service.notification { public static class NotificationListenerService.Ranking implements android.os.Parcelable { method public int describeContents(); - method public int getIndexOfKey(java.lang.String); method public java.lang.String[] getOrderedKeys(); + method public int getRank(java.lang.String); method public boolean isAmbient(java.lang.String); method public boolean isInterceptedByDoNotDisturb(java.lang.String); method public void writeToParcel(android.os.Parcel, int); |