summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2014-04-17 10:01:54 -0400
committerChris Wren <cwren@android.com>2014-05-09 15:48:53 -0400
commitf953664dc17dca23bd724bd64f89189c16c83263 (patch)
tree4ed0cc919c669a57698daa00e439247781487623 /api
parent91da58ded2e7c0dd3d045244cc78eb0d788736a7 (diff)
downloadframeworks_base-f953664dc17dca23bd724bd64f89189c16c83263.zip
frameworks_base-f953664dc17dca23bd724bd64f89189c16c83263.tar.gz
frameworks_base-f953664dc17dca23bd724bd64f89189c16c83263.tar.bz2
notification ranking infrastructure
Added an ordered list of notifications (n.b. a complete ordering). Added a mechanism for ranking to be updated asynchronously Added onNotificationRankingUpdate to NotificationListeners Added an opaque order update object and a convenience comparator that uses it to sort notifications for listeners Repurpose scorers to be ranking preprocessors. The preprocessors will perform heavy-weight validation of the notification object and memoize the results to improve efficiency of the ranking comparator. Current internal comparator implements status quo ordering, except that notes with a valid contact sort to the top of their priority bucket. Change-Id: I7244c65944a9657df41fb313b3cb5a52e149709d
Diffstat (limited to 'api')
-rw-r--r--api/current.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt
index 9910fdf..eb4a71b 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -25161,16 +25161,24 @@ 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 java.lang.String[] getOrderedNotificationKeys();
method public android.os.IBinder onBind(android.content.Intent);
method public void onListenerConnected(java.lang.String[]);
+ method public void onNotificationOrderUpdate();
method public abstract void onNotificationPosted(android.service.notification.StatusBarNotification);
method public abstract void onNotificationRemoved(android.service.notification.StatusBarNotification);
field public static final java.lang.String SERVICE_INTERFACE = "android.service.notification.NotificationListenerService";
}
+ public class NotificationOrderUpdate implements android.os.Parcelable {
+ ctor public NotificationOrderUpdate(android.os.Parcel);
+ method public int describeContents();
+ method public void writeToParcel(android.os.Parcel, int);
+ field public static final android.os.Parcelable.Creator CREATOR;
+ }
+
public class StatusBarNotification implements android.os.Parcelable {
ctor public StatusBarNotification(java.lang.String, java.lang.String, int, java.lang.String, int, int, int, android.app.Notification, android.os.UserHandle, long);
ctor public StatusBarNotification(android.os.Parcel);