summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorChristoph Studer <chstuder@google.com>2014-06-12 15:25:59 +0200
committerChristoph Studer <chstuder@google.com>2014-07-10 21:37:56 +0000
commit1d599da8424cef8d07cb4c533bd212d992d8f676 (patch)
tree9c1656aacaf4210f8d6df0a2ee2a29d31c14fde4 /api
parent1c52d02679af9e4322d7182824443b006579b1ed (diff)
downloadframeworks_base-1d599da8424cef8d07cb4c533bd212d992d8f676.zip
frameworks_base-1d599da8424cef8d07cb4c533bd212d992d8f676.tar.gz
frameworks_base-1d599da8424cef8d07cb4c533bd212d992d8f676.tar.bz2
NotificationListenerService API: Avoid unnecessary allocations
Instead of producing Ranking objects, RankingMap just populates them now, allowing developers to re-use objects and avoid unnecessary allocations. Also rename isInterceptedByDnd() to meetsInterruptionFilter(), since DND is not a concept anymore. Bug: 15415840 Bug: 16099064 Change-Id: If9861cbdf14593e641a4d4ffd1b967647eb8e2b8
Diffstat (limited to 'api')
-rw-r--r--api/current.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index 9d43d58..38e0320 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -26336,16 +26336,17 @@ package android.service.notification {
}
public static class NotificationListenerService.Ranking {
+ ctor public NotificationListenerService.Ranking();
method public java.lang.String getKey();
method public int getRank();
method public boolean isAmbient();
- method public boolean isInterceptedByDoNotDisturb();
+ method public boolean meetsInterruptionFilter();
}
public static class NotificationListenerService.RankingMap implements android.os.Parcelable {
method public int describeContents();
method public java.lang.String[] getOrderedKeys();
- method public android.service.notification.NotificationListenerService.Ranking getRanking(java.lang.String);
+ method public boolean getRanking(java.lang.String, android.service.notification.NotificationListenerService.Ranking);
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator CREATOR;
}