From ce7d6d292b2309eff95d4206b09858f13fff5213 Mon Sep 17 00:00:00 2001 From: Christoph Studer Date: Tue, 26 Aug 2014 19:21:31 +0200 Subject: NoListener: meetsInterruptionFilter -> matchesInterruptionFilter Rename Ranking.meetsInterruptionFilter() to matchesInterruptionFilter() as suggested by API council. Marking the old version @removed for now, will remove once prebuilds had the chance to update. Bug: 17255109 Change-Id: Iaee094df2dddf82029e127c194ea88581d1a48bb --- .../notification/NotificationListenerService.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'core/java/android/service') diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java index 4651d7e..450b9a7 100644 --- a/core/java/android/service/notification/NotificationListenerService.java +++ b/core/java/android/service/notification/NotificationListenerService.java @@ -539,7 +539,7 @@ public abstract class NotificationListenerService extends Service { private String mKey; private int mRank = -1; private boolean mIsAmbient; - private boolean mMeetsInterruptionFilter; + private boolean mMatchesInterruptionFilter; public Ranking() {} @@ -571,17 +571,27 @@ public abstract class NotificationListenerService extends Service { /** * Returns whether the notification meets the user's interruption * filter. + * + * @removed */ public boolean meetsInterruptionFilter() { - return mMeetsInterruptionFilter; + return mMatchesInterruptionFilter; + } + + /** + * Returns whether the notification matches the user's interruption + * filter. + */ + public boolean matchesInterruptionFilter() { + return mMatchesInterruptionFilter; } private void populate(String key, int rank, boolean isAmbient, - boolean meetsInterruptionFilter) { + boolean matchesInterruptionFilter) { mKey = key; mRank = rank; mIsAmbient = isAmbient; - mMeetsInterruptionFilter = meetsInterruptionFilter; + mMatchesInterruptionFilter = matchesInterruptionFilter; } } -- cgit v1.1