/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ForegroundServiceController.java | 23 * @param sbn notification that was just posted 26 void addNotification(StatusBarNotification sbn, int importance); argument 29 * @param sbn notification that was just changed in some way 32 void updateNotification(StatusBarNotification sbn, int newImportance); argument 35 * @param sbn notification that was just canceled 37 boolean removeNotification(StatusBarNotification sbn); argument 47 * @param sbn 48 * @return true if sbn is the system-provided "dungeon" (list of running foreground services). 50 boolean isDungeonNotification(StatusBarNotification sbn); argument 53 * @return true if sbn i 55 isSystemAlertNotification(StatusBarNotification sbn) argument [all...] |
H A D | ForegroundServiceControllerImpl.java | 109 public void addNotification(StatusBarNotification sbn, int importance) { argument 110 updateNotification(sbn, importance); 114 public boolean removeNotification(StatusBarNotification sbn) { argument 116 final UserServices userServices = mUserServices.get(sbn.getUserId()); 121 sbn.getUserId(), sbn)); 125 if (isDungeonNotification(sbn)) { 132 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey()); 138 public void updateNotification(StatusBarNotification sbn, in argument 170 isDungeonNotification(StatusBarNotification sbn) argument 177 isSystemAlertNotification(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 | 46 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser()); 48 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid());
|
H A D | NotificationRecord.java | 97 final StatusBarNotification sbn; field in class:NotificationRecord 173 public NotificationRecord(Context context, StatusBarNotification sbn, argument 175 this.sbn = sbn; 177 .getPackageTargetSdkVersion(sbn.getPackageName()); 179 mOriginalFlags = sbn.getNotification().flags; 181 mCreationTimeMs = sbn.getPostTime(); 208 final Notification n = sbn.getNotification(); 244 final Notification notification = sbn.getNotification(); 275 final Notification notification = sbn [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationMessagingUtil.java | 49 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { argument 54 return hasMessagingStyle(sbn) || (isCategoryMessage(sbn) && isDefaultMessagingApp(sbn)); 57 public boolean isMessaging(StatusBarNotification sbn) { argument 58 return hasMessagingStyle(sbn) || isDefaultMessagingApp(sbn) || isCategoryMessage(sbn); 62 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { argument 63 final int userId = sbn 87 hasMessagingStyle(StatusBarNotification sbn) argument 92 isCategoryMessage(StatusBarNotification sbn) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationGroupManager.java | 59 public boolean isGroupExpanded(StatusBarNotification sbn) { argument 60 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 67 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { argument 68 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 91 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal 95 final StatusBarNotification sbn) { 96 String groupKey = getGroupKey(sbn); 105 if (isGroupChild(sbn)) { 122 final StatusBarNotification sbn = added.notification; 123 boolean isGroupChild = isGroupChild(sbn); 94 onEntryRemovedInternal(NotificationData.Entry removed, final StatusBarNotification sbn) argument 328 isSummaryOfSuppressedGroup(StatusBarNotification sbn) argument 332 isOnlyChild(StatusBarNotification sbn) argument 337 isOnlyChildInGroup(StatusBarNotification sbn) argument 346 getTotalNumberOfChildren(StatusBarNotification sbn) argument 385 isChildInGroupWithSummary(StatusBarNotification sbn) argument 405 isSummaryOfGroup(StatusBarNotification sbn) argument 420 getGroupSummary(StatusBarNotification sbn) argument 429 getLogicalGroupSummary( StatusBarNotification sbn) argument 443 toggleGroupExpansion(StatusBarNotification sbn) argument 452 isIsolated(StatusBarNotification sbn) argument 456 isGroupSummary(StatusBarNotification sbn) argument 463 isGroupChild(StatusBarNotification sbn) argument 470 getGroupKey(StatusBarNotification sbn) argument 591 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/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationListener.java | 64 for (StatusBarNotification sbn : notifications) { 65 mEntryManager.addNotification(sbn, currentRanking); 71 public void onNotificationPosted(final StatusBarNotification sbn, argument 73 if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn); 74 if (sbn != null && !onPluginNotificationPosted(sbn, rankingMap)) { 76 processForRemoteInput(sbn.getNotification(), mContext); 77 String key = sbn.getKey(); 86 && mPresenter.getGroupManager().isChildInGroupWithSummary(sbn)) { 88 Log.d(TAG, "Ignoring group child due to existing summary: " + sbn); 110 onNotificationRemoved(StatusBarNotification sbn, final RankingMap rankingMap) argument [all...] |
H A D | NotificationEntryManager.java | 152 final StatusBarNotification sbn = row.getStatusBarNotification(); 153 if (sbn == null) { 168 mCallback.onNotificationClicked(sbn, row); 171 public void register(ExpandableNotificationRow row, StatusBarNotification sbn) { argument 172 Notification notification = sbn.getNotification(); 328 final StatusBarNotification sbn = entry.notification; 331 updateNotification(entry, pmUser, sbn, entry.row); 335 bindRow(entry, pmUser, sbn, row); 336 updateNotification(entry, pmUser, sbn, row); 342 StatusBarNotification sbn, ExpandableNotificationRo 341 bindRow(NotificationData.Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 697 updateNotification(NotificationData.Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 743 createNotificationViews(StatusBarNotification sbn) argument 917 shouldPeek(NotificationData.Entry entry, StatusBarNotification sbn) argument 991 isSnoozedPackage(StatusBarNotification sbn) argument 1063 onNotificationClicked(StatusBarNotification sbn, ExpandableNotificationRow row) argument 1073 onBindRow(NotificationData.Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 1090 shouldPeek(NotificationData.Entry entry, StatusBarNotification sbn) argument [all...] |
H A D | NotificationData.java | 175 * @param sbn the notification 178 public void createIcons(Context context, StatusBarNotification sbn) argument 180 Notification n = sbn.getNotification(); 184 + sbn.getPackageName()); 189 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 194 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 230 updateIcons(Context context, StatusBarNotification sbn) argument 748 showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) argument 753 showNotificationEvenIfUnprovisioned(IPackageManager packageManager, StatusBarNotification sbn) argument 805 isSystemNotification(StatusBarNotification sbn) argument 818 isNotificationForCurrentProfiles(StatusBarNotification sbn) argument [all...] |
H A D | NotificationGutsManager.java | 156 StatusBarNotification sbn = row.getStatusBarNotification(); 160 row.setTag(sbn.getPackageName()); 171 String key = sbn.getKey(); 198 StatusBarNotification sbn = row.getStatusBarNotification(); 201 notificationSnoozeView.setStatusBarNotification(sbn); 218 StatusBarNotification sbn = row.getStatusBarNotification(); 219 UserHandle userHandle = sbn.getUser(); 230 appOpsInfoView.bindGuts(pmUser, onSettingsClick, sbn, row.getEntry().mActiveAppOps); 245 StatusBarNotification sbn = row.getStatusBarNotification(); 246 String packageName = sbn [all...] |
/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 103 ** @param sbn A data structure encapsulating at least the original information (tag and id) 112 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, argument 114 onNotificationRemoved(sbn, rankingMap, reason); 172 StatusBarNotification sbn; 174 sbn = sbnHolder.get(); 181 args.arg1 = sbn; [all...] |
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/ |
H A D | AssistantTest.java | 130 StatusBarNotification sbn = new StatusBarNotification(pkg, pkg, 0, tag, uid, uid, n, 133 return sbn; 136 private Ranking generateRanking(StatusBarNotification sbn, NotificationChannel channel) { argument 140 when(mockRanking.getKey()).thenReturn(sbn.getKey()); 153 StatusBarNotification sbn = generateSbn(pkg, uid, channel, tag, null); 154 mAssistant.setFakeRanking(generateRanking(sbn, channel)); 155 mAssistant.onNotificationPosted(sbn, mock(RankingMap.class)); 161 sbn, mock(RankingMap.class), stats, NotificationListenerService.REASON_CANCEL); 166 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, null, null); 168 mAssistant.setFakeRanking(generateRanking(sbn, P1C [all...] |
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | NotificationRecordTest.java | 187 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, 191 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 200 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, 204 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 214 StatusBarNotification sbn = getNotification(PKG_N_MR1, true /* noisy */, 218 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 226 StatusBarNotification sbn = getNotification(PKG_N_MR1, false /* noisy */, 230 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); 239 StatusBarNotification sbn = getNotification(PKG_O, true /* noisy */, 243 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channe [all...] |
H A D | NotificationManagerServiceTest.java | 314 StatusBarNotification sbn = new StatusBarNotification(pkg, pkg, uid, "tag", uid, 0, 316 return sbn; 327 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", mUid, 0, 329 return new NotificationRecord(mContext, sbn, channel); 347 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", mUid, 0, 349 return new NotificationRecord(mContext, sbn, channel); 519 final StatusBarNotification sbn = generateNotificationRecord(channel).sbn; 521 sbn.getId(), sbn [all...] |
H A D | ZenModeFilteringTest.java | 72 StatusBarNotification sbn = mock(StatusBarNotification.class); 73 when(sbn.getNotification()).thenReturn(mock(Notification.class)); 74 return new NotificationRecord(mContext, sbn, c); 98 r.sbn.getNotification().category = Notification.CATEGORY_ALARM; 105 r.sbn.getNotification().category = Notification.CATEGORY_CALL; 122 when(r.sbn.getPackageName()).thenReturn("android"); 123 when(r.sbn.getId()).thenReturn(SystemMessage.NOTE_ZEN_UPGRADE); 134 when(r.sbn.getPackageName()).thenReturn("android"); 135 when(r.sbn.getId()).thenReturn(SystemMessage.NOTE_ACCOUNT_CREDENTIAL_PERMISSION); 145 when(r.sbn [all...] |
H A D | NotificationIntrusivenessExtractorTest.java | 49 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, 51 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 66 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, 69 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel); 84 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, 88 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
|
H A D | SnoozeHelperTest.java | 80 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 90 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 100 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 102 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 104 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1); 108 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 110 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 122 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey())); 124 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey())); 126 UserHandle.USER_ALL, r3.sbn [all...] |
H A D | GroupHelperTest.java | 162 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); 163 posted.add(sbn); 164 mGroupHelper.onNotificationPosted(sbn, false); 189 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); 190 posted.add(sbn); 191 mGroupHelper.onNotificationPosted(sbn, false); 201 final StatusBarNotification sbn = 203 mGroupHelper.onNotificationPosted(sbn, false); 210 final StatusBarNotification sbn = 212 mGroupHelper.onNotificationPosted(sbn, fals [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/car/ |
H A D | CarNotificationEntryManager.java | 44 public boolean shouldPeek(NotificationData.Entry entry, StatusBarNotification sbn) { argument 52 return super.shouldPeek(entry, sbn);
|
/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/tests/src/com/android/systemui/statusbar/ |
H A D | SmartReplyControllerTest.java | 72 StatusBarNotification sbn = mock(StatusBarNotification.class); 73 when(sbn.getNotification()).thenReturn(mNotification); 74 when(sbn.getKey()).thenReturn(TEST_NOTIFICATION_KEY); 75 mEntry = new NotificationData.Entry(sbn); 80 StatusBarNotification sbn = mock(StatusBarNotification.class); 81 when(sbn.getKey()).thenReturn(TEST_NOTIFICATION_KEY); 84 eq(TEST_CHOICE_TEXT), eq(true))).thenReturn(sbn); 100 StatusBarNotification sbn = mock(StatusBarNotification.class); 101 when(sbn.getKey()).thenReturn(TEST_NOTIFICATION_KEY); 104 eq(TEST_CHOICE_TEXT), eq(true))).thenReturn(sbn); [all...] |
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/ |
H A D | Assistant.java | 188 public Adjustment onNotificationEnqueued(StatusBarNotification sbn) { argument 189 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey()); 194 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { argument 195 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); 197 Ranking ranking = getRanking(sbn.getKey(), rankingMap); 200 sbn.getPackageName(), sbn.getUserId(), ranking.getChannel().getId()); 205 sbn.getPackageName(), sbn.getKey(), sbn 216 onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, NotificationStats stats, int reason) argument 257 onNotificationSnoozedUntilContext(StatusBarNotification sbn, String snoozeCriterionId) argument [all...] |