Lines Matching defs:sbn
49 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) {
54 return hasMessagingStyle(sbn) || (isCategoryMessage(sbn) && isDefaultMessagingApp(sbn));
57 public boolean isMessaging(StatusBarNotification sbn) {
58 return hasMessagingStyle(sbn) || isDefaultMessagingApp(sbn) || isCategoryMessage(sbn);
62 private boolean isDefaultMessagingApp(StatusBarNotification sbn) {
63 final int userId = sbn.getUserId();
68 return Objects.equals(mDefaultSmsApp.get(userId), sbn.getPackageName());
87 private boolean hasMessagingStyle(StatusBarNotification sbn) {
88 Class<? extends Notification.Style> style = sbn.getNotification().getNotificationStyle();
92 private boolean isCategoryMessage(StatusBarNotification sbn) {
93 return Notification.CATEGORY_MESSAGE.equals(sbn.getNotification().category);