/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 | NotificationManagerService.java | 714 StatusBarNotification sbn = r.sbn; 715 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(), 716 sbn.getId(), Notification.FLAG_AUTO_CANCEL, 990 cancelNotification(record.sbn.getUid(), record.sbn.getInitialPid(), 991 record.sbn.getPackageName(), record.sbn.getTag(), 992 record.sbn 3601 hasAutoGroupSummaryLocked(StatusBarNotification sbn) argument 6263 isVisibleToListener(StatusBarNotification sbn, ManagedServiceInfo listener) argument 6306 TrimCache(StatusBarNotification sbn) argument 6395 notifyEnqueued(final ManagedServiceInfo info, final StatusBarNotification sbn) argument 6411 notifyAssistantSnoozedLocked(final StatusBarNotification sbn, final String snoozeCriterionId) argument 6805 notifyPosted(final ManagedServiceInfo info, final StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate) argument 6816 notifyRemoved(ManagedServiceInfo info, StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate, NotificationStats stats, int reason) argument 6958 matches(StatusBarNotification sbn) argument [all...] |
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/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/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/src/com/android/systemui/statusbar/ |
H A D | AppOpsInfo.java | 70 final StatusBarNotification sbn, 72 mPkg = sbn.getPackageName(); 73 mSbn = sbn; 68 bindGuts(final PackageManager pm, final OnSettingsClickListener onSettingsClick, final StatusBarNotification sbn, ArraySet<Integer> activeOps) argument
|
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 | 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 | NotificationInfo.java | 124 void checkSave(Runnable saveImportance, StatusBarNotification sbn); argument 142 final StatusBarNotification sbn, 149 numUniqueChannelsInRow, sbn, checkSaveListener, onSettingsClick, 160 StatusBarNotification sbn, 172 mSbn = sbn; 136 bindNotification( final PackageManager pm, final INotificationManager iNotificationManager, final String pkg, final NotificationChannel notificationChannel, final int numUniqueChannelsInRow, final StatusBarNotification sbn, final CheckSaveListener checkSaveListener, final OnSettingsClickListener onSettingsClick, final OnAppSettingsClickListener onAppSettingsClick, boolean isNonblockable) argument 154 bindNotification( PackageManager pm, INotificationManager iNotificationManager, String pkg, NotificationChannel notificationChannel, int numUniqueChannelsInRow, StatusBarNotification sbn, CheckSaveListener checkSaveListener, OnSettingsClickListener onSettingsClick, OnAppSettingsClickListener onAppSettingsClick, boolean isNonblockable, boolean isForBlockingHelper, boolean isUserSentimentNegative) argument
|
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 | NotificationLockscreenUserManager.java | 302 public boolean shouldShowOnKeyguard(StatusBarNotification sbn) { argument 308 && !mEntryManager.getNotificationData().isAmbient(sbn.getKey());
|
H A D | NotificationMenuRow.java | 147 public void createMenu(ViewGroup parent, StatusBarNotification sbn) { argument 168 public void onNotificationUpdated(StatusBarNotification sbn) { argument
|
H A D | NotificationSnooze.java | 218 public void setStatusBarNotification(StatusBarNotification sbn) { argument 219 mSbn = sbn;
|
H A D | StatusBarIconView.java | 157 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn) { argument 158 this(context, slot, sbn, false); 161 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn, argument 171 setNotification(sbn);
|
/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());
|
H A D | StatusBar.java | 1912 public boolean shouldPeek(Entry entry, StatusBarNotification sbn) { argument 1917 || mLockscreenUserManager.isLockscreenPublicMode(sbn.getUserId()); 1926 Log.d(TAG, "No peeking: disabled panel : " + sbn.getKey()); 1931 if (sbn.getNotification().fullScreenIntent != null) { 1933 if (DEBUG) Log.d(TAG, "No peeking: accessible fullscreen: " + sbn.getKey()); 2168 final StatusBarNotification sbn = entry.notification; 2169 final Notification notification = sbn.getNotification(); 2176 sbn.getKey()); 3155 StatusBarNotification sbn, ExpandableNotificationRow row) { 5068 public void onNotificationClicked(StatusBarNotification sbn, ExpandableNotificationRo argument 3154 onBindRow(Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 5296 setNotificationSnoozed(StatusBarNotification sbn, SnoozeOption snoozeOption) argument 5435 shouldAutoCancel(StatusBarNotification sbn) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | NotificationStackScrollLayout.java | 4733 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption) { argument 4734 mStatusBar.setNotificationSnoozed(sbn, snoozeOption);
|
/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/plugin/src/com/android/systemui/plugins/statusbar/ |
H A D | NotificationMenuRowPlugin.java | 91 public void createMenu(ViewGroup parent, StatusBarNotification sbn); argument 103 public void onNotificationUpdated(StatusBarNotification sbn); argument
|
H A D | NotificationSwipeActionHelper.java | 47 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption); argument
|
/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...] |
/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/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...] |