am 700269d6: am 04322209: am c88b35aa: Merge "remove unused matchesCallFilter(Bundle, int)" into lmp-dev

* commit '700269d6a98920e3b7df9202b901f63852c75530':
  remove unused matchesCallFilter(Bundle, int)
This commit is contained in:
Chris Wren
2014-09-13 02:15:34 +00:00
committed by Android Git Automerger
3 changed files with 2 additions and 9 deletions

View File

@@ -71,7 +71,6 @@ interface INotificationManager
ComponentName getEffectsSuppressor();
boolean matchesCallFilter(in Bundle extras);
boolean matchesCallFilterAsUser(in Bundle extras, int userId);
ZenModeConfig getZenModeConfig();
boolean setZenModeConfig(in ZenModeConfig config);

View File

@@ -1471,14 +1471,7 @@ public class NotificationManagerService extends SystemService {
@Override
public boolean matchesCallFilter(Bundle extras) {
enforceSystemOrSystemUI("INotificationManager.matchesCallFilter");
return matchesCallFilterAsUser(extras, Binder.getCallingUid());
}
@Override
public boolean matchesCallFilterAsUser(Bundle extras, int userId) {
enforceSystemOrSystemUI("INotificationManager.matchesCallFilter");
UserHandle userHandle = new UserHandle(userId);
return mZenModeHelper.matchesCallFilter(userHandle, extras,
return mZenModeHelper.matchesCallFilter(UserHandle.getCallingUserHandle(), extras,
mRankingHelper.findExtractor(ValidateNotificationPeople.class));
}
};

View File

@@ -112,6 +112,7 @@ public class ValidateNotificationPeople implements NotificationSignalExtractor {
}
public float getContactAffinity(UserHandle userHandle, Bundle extras) {
if (DEBUG) Slog.d(TAG, "checking affinity for " + userHandle);
if (extras == null) return NONE;
final String key = Long.toString(System.nanoTime());
final float[] affinityOut = new float[1];