/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ForegroundServiceController.java | 21 * @param sbn notification that was just posted 24 void addNotification(StatusBarNotification sbn, int importance); argument 27 * @param sbn notification that was just changed in some way 30 void updateNotification(StatusBarNotification sbn, int newImportance); argument 33 * @param sbn notification that was just canceled 35 boolean removeNotification(StatusBarNotification sbn); argument 45 * @param sbn 46 * @return true if sbn is the system-provided "dungeon" (list of running foreground services). 48 boolean isDungeonNotification(StatusBarNotification sbn); argument
|
H A D | ForegroundServiceControllerImpl.java | 60 public void addNotification(StatusBarNotification sbn, int importance) { argument 61 updateNotification(sbn, importance); 65 public boolean removeNotification(StatusBarNotification sbn) { argument 67 final UserServices userServices = mUserServices.get(sbn.getUserId()); 72 sbn.getUserId(), sbn)); 76 if (isDungeonNotification(sbn)) { 83 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey()); 89 public void updateNotification(StatusBarNotification sbn, in argument 114 isDungeonNotification(StatusBarNotification sbn) argument [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | GroupHelper.java | 48 public void onNotificationPosted(StatusBarNotification sbn, boolean autogroupSummaryExists) { argument 49 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); 52 if (!sbn.isAppGroup()) { 57 = mUngroupedNotifications.get(sbn.getUserId()); 61 mUngroupedNotifications.put(sbn.getUserId(), ungroupedNotificationsByUser); 63 = ungroupedNotificationsByUser.get(sbn.getPackageName()); 68 notificationsForPackage.add(sbn.getKey()); 69 ungroupedNotificationsByUser.put(sbn.getPackageName(), notificationsForPackage); 77 adjustAutogroupingSummary(sbn.getUserId(), sbn 90 onNotificationRemoved(StatusBarNotification sbn) argument 101 maybeUngroup(StatusBarNotification sbn, boolean notificationGone, int userId) argument [all...] |
H A D | NotificationChannelExtractor.java | 45 record.updateNotificationChannel(mConfig.getNotificationChannel(record.sbn.getPackageName(), 46 record.sbn.getUid(), record.getChannel().getId(), false));
|
H A D | BadgeExtractor.java | 44 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser()); 46 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid());
|
H A D | NotificationRecord.java | 81 final StatusBarNotification sbn; field in class:NotificationRecord 141 public NotificationRecord(Context context, StatusBarNotification sbn, argument 144 this.sbn = sbn; 145 mOriginalFlags = sbn.getNotification().flags; 147 mCreationTimeMs = sbn.getPostTime(); 165 mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(), 166 0, UserHandle.getUserId(sbn.getUid())); 178 final Notification n = sbn.getNotification(); 214 final Notification notification = sbn [all...] |
H A D | NotificationComparator.java | 109 final int leftPriority = left.sbn.getNotification().priority; 110 final int rightPriority = right.sbn.getNotification().priority; 150 return mMessagingUtil.isImportantMessaging(record.sbn, record.getImportance()); 164 && isDefaultPhoneApp(record.sbn.getPackageName());
|
H A D | NotificationManagerService.java | 652 StatusBarNotification sbn = r.sbn; 653 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(), 654 sbn.getId(), Notification.FLAG_AUTO_CANCEL, 852 cancelNotification(record.sbn.getUid(), record.sbn.getInitialPid(), 853 record.sbn.getPackageName(), record.sbn.getTag(), 854 record.sbn 3101 hasAutoGroupSummaryLocked(StatusBarNotification sbn) argument 5311 isVisibleToListener(StatusBarNotification sbn, ManagedServiceInfo listener) argument 5336 TrimCache(StatusBarNotification sbn) argument 5420 notifyEnqueued(final ManagedServiceInfo info, final StatusBarNotification sbn) argument 5436 notifyAssistantSnoozedLocked(final StatusBarNotification sbn, final String snoozeCriterionId) argument 5542 notifyPostedLocked(StatusBarNotification sbn, StatusBarNotification oldSbn) argument 5581 notifyRemovedLocked(StatusBarNotification sbn, int reason) argument 5687 notifyPosted(final ManagedServiceInfo info, final StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate) argument 5698 notifyRemoved(ManagedServiceInfo info, StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate, int reason) argument 5823 matches(StatusBarNotification sbn) argument [all...] |
H A D | SnoozeHelper.java | 133 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration); 149 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); 154 records.put(record.sbn.getPackageName(), pkgRecords); 156 mPackages.put(record.getKey(), record.sbn.getPackageName()); 168 final StatusBarNotification sbn = record.getValue().sbn; 169 if (Objects.equals(sbn.getTag(), tag) && sbn.getId() == id) { 229 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); 283 if (potentialGroupSummary.sbn [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationGroupManager.java | 53 public boolean isGroupExpanded(StatusBarNotification sbn) { argument 54 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 61 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { argument 62 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 85 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal 89 final StatusBarNotification sbn) { 90 String groupKey = getGroupKey(sbn); 99 if (isGroupChild(sbn)) { 116 final StatusBarNotification sbn = added.notification; 117 boolean isGroupChild = isGroupChild(sbn); 88 onEntryRemovedInternal(NotificationData.Entry removed, final StatusBarNotification sbn) argument 225 isSummaryOfSuppressedGroup(StatusBarNotification sbn) argument 229 isOnlyChild(StatusBarNotification sbn) argument 234 isOnlyChildInGroup(StatusBarNotification sbn) argument 243 getTotalNumberOfChildren(StatusBarNotification sbn) argument 282 isChildInGroupWithSummary(StatusBarNotification sbn) argument 302 isSummaryOfGroup(StatusBarNotification sbn) argument 317 getGroupSummary(StatusBarNotification sbn) argument 326 getLogicalGroupSummary( StatusBarNotification sbn) argument 340 toggleGroupExpansion(StatusBarNotification sbn) argument 349 isIsolated(StatusBarNotification sbn) argument 353 isGroupSummary(StatusBarNotification sbn) argument 360 isGroupChild(StatusBarNotification sbn) argument 367 getGroupKey(StatusBarNotification sbn) argument 448 shouldIsolate(StatusBarNotification sbn) argument [all...] |
H A D | NotificationListenerWithPlugins.java | 83 public boolean onPluginNotificationPosted(StatusBarNotification sbn, argument 86 if (plugin.onNotificationPosted(sbn, rankingMap)) { 97 public boolean onPluginNotificationRemoved(StatusBarNotification sbn, argument 100 if (plugin.onNotificationRemoved(sbn, rankingMap)) { 137 public void addNotification(StatusBarNotification sbn) { 138 onNotificationPosted(sbn, getRankingMap()); 142 public void removeNotification(StatusBarNotification sbn) { 143 onNotificationRemoved(sbn, getRankingMap());
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationMessagingUtil.java | 51 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { argument 52 final int userId = sbn.getUserId(); 57 return Objects.equals(mDefaultSmsApp.get(userId), sbn.getPackageName()); 76 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { argument 81 Class<? extends Notification.Style> style = sbn.getNotification().getNotificationStyle(); 86 if (Notification.CATEGORY_MESSAGE.equals(sbn.getNotification().category) 87 && isDefaultMessagingApp(sbn)) {
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
H A D | NotificationRecordTest.java | 188 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, 192 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 201 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, 205 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 215 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */, 219 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 227 StatusBarNotification sbn = getNotification(true /*preO */, false /* noisy */, 231 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 240 StatusBarNotification sbn = getNotification(false /*preO */, true /* noisy */, 244 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channe [all...] |
H A D | NotificationManagerServiceTest.java | 250 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", mUid, 0, 252 return new NotificationRecord(mContext, sbn, channel); 270 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", mUid, 0, 272 return new NotificationRecord(mContext, sbn, channel); 442 final StatusBarNotification sbn = generateNotificationRecord(channel).sbn; 444 sbn.getId(), sbn.getNotification(), sbn.getUserId()); 446 assertEquals(0, mBinderService.getActiveNotifications(sbn [all...] |
H A D | NotificationIntrusivenessExtractorTest.java | 47 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, 49 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 64 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, 67 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 82 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, 86 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
H A D | SnoozeHelperTest.java | 79 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 89 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 99 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 101 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 103 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); 107 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 109 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 121 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 123 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 125 UserHandle.USER_ALL, r3.sbn [all...] |
H A D | GroupHelperTest.java | 160 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); 161 posted.add(sbn); 162 mGroupHelper.onNotificationPosted(sbn, false); 187 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); 188 posted.add(sbn); 189 mGroupHelper.onNotificationPosted(sbn, false); 199 final StatusBarNotification sbn = 201 mGroupHelper.onNotificationPosted(sbn, false); 208 final StatusBarNotification sbn = 210 mGroupHelper.onNotificationPosted(sbn, fals [all...] |
H A D | NotificationChannelExtractorTest.java | 63 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, 65 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
/frameworks/base/core/java/android/service/notification/ |
H A D | NotificationAssistantService.java | 75 * @param sbn the notification to snooze 78 abstract public void onNotificationSnoozedUntilContext(StatusBarNotification sbn, argument 84 * @param sbn the new notification 87 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn); argument 144 StatusBarNotification sbn; 146 sbn = sbnHolder.get(); 153 args.arg1 = sbn; 162 StatusBarNotification sbn; 164 sbn = sbnHolder.get(); 171 args.arg1 = sbn; [all...] |
H A D | NotificationListenerService.java | 299 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 303 public void onNotificationPosted(StatusBarNotification sbn) { argument 310 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 316 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { argument 317 onNotificationPosted(sbn); 333 * @param sbn A data structure encapsulating at least the original information (tag and id) 337 public void onNotificationRemoved(StatusBarNotification sbn) { argument 354 * @param sbn A data structure encapsulating at least the original information (tag and id) 361 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { argument 362 onNotificationRemoved(sbn); 386 onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, int reason) argument [all...] |
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
H A D | NotificationListenerController.java | 33 default boolean onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { argument 36 default boolean onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { argument 58 void addNotification(StatusBarNotification sbn); argument 59 void removeNotification(StatusBarNotification sbn); argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationData.java | 136 * @param sbn the notification 139 public void createIcons(Context context, StatusBarNotification sbn) argument 141 Notification n = sbn.getNotification(); 145 + sbn.getPackageName()); 150 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 155 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 191 updateIcons(Context context, StatusBarNotification sbn) argument 511 shouldFilterOut(StatusBarNotification sbn) argument 546 showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) argument 551 showNotificationEvenIfUnprovisioned(IPackageManager packageManager, StatusBarNotification sbn) argument 603 isSystemNotification(StatusBarNotification sbn) argument 616 isNotificationForCurrentProfiles(StatusBarNotification sbn) argument [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
H A D | ForegroundServiceControllerTest.java | 271 final StatusBarNotification sbn = mock(StatusBarNotification.class); 272 when(sbn.getNotification()).thenReturn(n); 273 when(sbn.getId()).thenReturn(id); 274 when(sbn.getPackageName()).thenReturn(pkg); 275 when(sbn.getTag()).thenReturn(null); 276 when(sbn.getUserId()).thenReturn(userid); 277 when(sbn.getUser()).thenReturn(new UserHandle(userid)); 278 when(sbn.getKey()).thenReturn("MOCK:"+userid+"|"+pkg+"|"+id+"|"+tag); 279 return sbn; 291 final StatusBarNotification sbn [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | NotificationTestHelper.java | 85 StatusBarNotification sbn = new StatusBarNotification("com.android.systemui", 88 NotificationData.Entry entry = new NotificationData.Entry(sbn); 90 entry.createIcons(mContext, sbn);
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
H A D | NotificationMenuRowPlugin.java | 81 public void createMenu(ViewGroup parent, StatusBarNotification sbn); argument 93 public void onNotificationUpdated(StatusBarNotification sbn); argument
|