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:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user