/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | NotificationThrottler.java | 22 import android.service.notification.StatusBarNotification; 59 static Set<StatusBarNotification> throttle( in throttle() 63 Set<StatusBarNotification> throttledNotificationSet = new HashSet<>(); in throttle() 72 StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications(); in throttle() 86 for (StatusBarNotification currentNotification : activeNotifications) { in throttle() 99 List<StatusBarNotification> notifications = getSortedMatchingNotifications(context, groupKey); in throttle() 108 private static List<StatusBarNotification> getSortedMatchingNotifications( in getSortedMatchingNotifications() 110 List<StatusBarNotification> notifications = new ArrayList<>(); in getSortedMatchingNotifications() 112 for (StatusBarNotification notification : notificationManager.getActiveNotifications()) { in getSortedMatchingNotifications() 119 new Comparator<StatusBarNotification>() { in getSortedMatchingNotifications() [all …]
|
D | DialerNotificationManager.java | 22 import android.service.notification.StatusBarNotification; 39 private static final Set<StatusBarNotification> throttledNotificationSet = new HashSet<>(); 72 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancel() 76 Pair<StatusBarNotification, Integer> groupSummaryAndCount = in cancel() 93 StatusBarNotification[] notifications = notificationManager.getActiveNotifications(); in cancelAll() 94 for (StatusBarNotification notification : notifications) { in cancelAll() 101 public static StatusBarNotification[] getActiveNotifications(@NonNull Context context) { in getActiveNotifications() 108 @NonNull StatusBarNotification[] notifications, @NonNull String tag, int id) { in findGroupKey() 109 for (StatusBarNotification notification : notifications) { in findGroupKey() 118 private static Pair<StatusBarNotification, Integer> getGroupSummaryAndCount( in getGroupSummaryAndCount() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | EapFailureNotifierTest.java | 45 import android.service.notification.StatusBarNotification; 145 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureEapFailureConfigWithOverride() 146 activeNotifications[0] = new StatusBarNotification("android", "", 56, "", 0, 0, 0, in onEapFailureEapFailureConfigWithOverride() 186 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureWithDefinedErrorCodeWithoutNotificationShown() 187 activeNotifications[0] = new StatusBarNotification("android", "", 56, "", 0, 0, 0, in onEapFailureWithDefinedErrorCodeWithoutNotificationShown() 213 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailure_showNotificationFalse_notShown() 214 activeNotifications[0] = new StatusBarNotification("android", "", 56, "", 0, 0, 0, in onEapFailure_showNotificationFalse_notShown() 236 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureWithDefinedErrorCodeWithNotificationShownWithoutSameSsid() 237 activeNotifications[0] = new StatusBarNotification("android", "", 57, "", 0, 0, 0, in onEapFailureWithDefinedErrorCodeWithNotificationShownWithoutSameSsid() 266 StatusBarNotification[] activeNotifications = new StatusBarNotification[1]; in onEapFailureWithDefinedErrorCodeWithNotificationShownWithSameSsid() [all …]
|
D | WifiNotificationManagerTest.java | 30 import android.service.notification.StatusBarNotification; 58 @Mock private StatusBarNotification mStatusBarNotification; 106 .thenReturn(new StatusBarNotification[]{mStatusBarNotification}); in testUserSwitchNotificationSendCorrect() 131 StatusBarNotification testNotification = new StatusBarNotification("pkg", "opPkg", in testApmNotificationNotCancelled() 133 StatusBarNotification apmNotification = new StatusBarNotification("pkg", "opPkg", in testApmNotificationNotCancelled() 137 new StatusBarNotification[]{testNotification, apmNotification}); in testApmNotificationNotCancelled()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationListener.java | 31 import android.service.notification.StatusBarNotification; 121 StatusBarNotification sbn = (StatusBarNotification) message.obj; in handleWorkerMessage() 128 StatusBarNotification sbn = (StatusBarNotification) message.obj; in handleWorkerMessage() 143 List<StatusBarNotification> activeNotifications = null; in handleWorkerMessage() 156 for (StatusBarNotification sbn : getActiveNotificationsSafely(keys)) { in handleWorkerMessage() 187 (List<StatusBarNotification>) message.obj); in handleUiMessage() 195 private @NonNull StatusBarNotification[] getActiveNotificationsSafely(@Nullable String[] keys) { in getActiveNotificationsSafely() 196 StatusBarNotification[] result = null; in getActiveNotificationsSafely() 202 return result == null ? new StatusBarNotification[0] : result; in getActiveNotificationsSafely() 239 public void onNotificationPosted(final StatusBarNotification sbn) { in onNotificationPosted() [all …]
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/notifications/ |
D | TvNotificationHandler.java | 22 import android.service.notification.StatusBarNotification; 40 private final SparseArray<StatusBarNotification> mNotifications = new SparseArray<>(); 49 public SparseArray<StatusBarNotification> getCurrentNotifications() { in getCurrentNotifications() 64 public void onNotificationPosted(StatusBarNotification sbn, in onNotificationPosted() 79 public void onNotificationRemoved(StatusBarNotification sbn, in onNotificationRemoved() 93 public void onNotificationRemoved(StatusBarNotification sbn, in onNotificationRemoved() 112 void notificationsUpdated(SparseArray<StatusBarNotification> sbns); in notificationsUpdated()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | AlertEntry.java | 20 import android.service.notification.StatusBarNotification; 31 private StatusBarNotification mStatusBarNotification; 34 public AlertEntry(StatusBarNotification statusBarNotification) { in AlertEntry() 45 public AlertEntry(StatusBarNotification statusBarNotification, long postTime) { in AlertEntry() 73 public StatusBarNotification getStatusBarNotification() { in getStatusBarNotification()
|
D | CarNotificationListener.java | 30 import android.service.notification.StatusBarNotification; 131 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() 156 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved() 252 Collectors.toConcurrentMap(StatusBarNotification::getKey, AlertEntry::new)); in onListenerConnected() 310 private boolean isNotificationForCurrentUser(StatusBarNotification sbn) { in isNotificationForCurrentUser()
|
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | CtsNotificationListenerServiceUtils.kt | 21 import android.service.notification.StatusBarNotification in <lambda>() 84 fun getNotification(packageName: String, notificationId: Int): StatusBarNotification? { in <lambda>() 89 fun getNotifications(packageName: String): List<StatusBarNotification> { in <lambda>() 90 val notifications: MutableList<StatusBarNotification> = ArrayList() in <lambda>() 112 ): StatusBarNotification? { in <lambda>() 113 val notifications: List<StatusBarNotification> = getNotifications(pkg) in <lambda>()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | PreprocessingManagerTest.java | 46 import android.service.notification.StatusBarNotification; 98 private StatusBarNotification mStatusBarNotification1; 100 private StatusBarNotification mStatusBarNotification2; 102 private StatusBarNotification mStatusBarNotification3; 104 private StatusBarNotification mStatusBarNotification4; 106 private StatusBarNotification mStatusBarNotification5; 108 private StatusBarNotification mStatusBarNotification6; 110 private StatusBarNotification mStatusBarNotification7; 112 private StatusBarNotification mStatusBarNotification8; 114 private StatusBarNotification mStatusBarNotification9; [all …]
|
D | CarNotificationDiffTest.java | 25 import android.service.notification.StatusBarNotification; 98 mNotification1 = new AlertEntry(new StatusBarNotification(PKG_1, OP_PKG, in setupBaseActivityAndLayout() 101 mNotification2 = new AlertEntry(new StatusBarNotification(PKG_1, OP_PKG, in setupBaseActivityAndLayout() 104 mNotification3 = new AlertEntry(new StatusBarNotification(PKG_2, OP_PKG, in setupBaseActivityAndLayout() 201 mNotification4 = new AlertEntry(new StatusBarNotification(PKG_1, OP_PKG, in sameGroupUniqueIdentifiers_diffNotificationKey_shouldReturnFalse() 218 mNotification4 = new AlertEntry(new StatusBarNotification(PKG_1, OP_PKG, in sameGroupUniqueIdentifiers_sameChildrenNotification_shouldReturnTrue() 314 new StatusBarNotification(PKG_1, OP_PKG, in areBundleEqual_sameSize_shouldReturnTrue() 318 new StatusBarNotification(PKG_1, OP_PKG, in areBundleEqual_sameSize_shouldReturnTrue() 359 AlertEntry oldAlertEntry = new AlertEntry(new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, in areBundleEqual_diffSize_shouldReturnFalse() 362 AlertEntry newAlertEntry = new AlertEntry(new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, in areBundleEqual_diffSize_shouldReturnFalse() [all …]
|
D | CarHeadsUpNotificationManagerTest.java | 45 import android.service.notification.StatusBarNotification; 205 new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, UID, INITIAL_PID, in setup() 208 new StatusBarNotification(PKG_2, OP_PKG, ID, TAG, UID, INITIAL_PID, in setup() 212 new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, UID, INITIAL_PID, in setup() 215 new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, UID, INITIAL_PID, in setup() 219 new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, UID, INITIAL_PID, in setup() 222 new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, UID, INITIAL_PID, in setup() 226 new StatusBarNotification(PKG_1, OP_PKG, ID, TAG, UID, INITIAL_PID, in setup() 443 StatusBarNotification sbn = mock(StatusBarNotification.class); in isHeadsUpDismissible_ongoingCallNotificationWithFullScreenIntent_returnsFalse()
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/ |
D | NotificationEntryTest.java | 43 import android.service.notification.StatusBarNotification; 75 private StatusBarNotification generateSbn(String channelId) { in generateSbn() 80 return new StatusBarNotification(mPkg, mPkg, 0, "tag", mUid, mUid, 0, n, in generateSbn() 84 private StatusBarNotification generateSbn(String channelId, String packageName) { in generateSbn() 89 return new StatusBarNotification(packageName, packageName, 0, "tag", mUid, mUid, 0, n, in generateSbn() 93 private StatusBarNotification generateSbn(Notification n) { in generateSbn() 94 return new StatusBarNotification(mPkg, mPkg, 0, "tag", mUid, mUid, 0, n, in generateSbn() 112 StatusBarNotification sbn = generateSbn(channel.getId()); in testHasPerson() 125 StatusBarNotification sbn = generateSbn(channel.getId()); in testNotPerson() 134 StatusBarNotification sbn = generateSbn(channel.getId(), DEFAULT_SMS_PACKAGE_NAME); in testHasPerson_matchesDefaultSmsApp() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/history/ |
D | NotificationSbnAdapter.java | 42 import android.service.notification.StatusBarNotification; 67 private List<StatusBarNotification> mValues; 112 final StatusBarNotification sbn = mValues.get(position); in onBindViewHolder() 145 private Drawable loadBackground(StatusBarNotification sbn) { in loadBackground() 163 public void onRebuildComplete(List<StatusBarNotification> notifications) { in onRebuildComplete() 165 StatusBarNotification sbn = notifications.get(i); in onRebuildComplete() 174 public void addSbn(StatusBarNotification sbn) { in addSbn() 182 private boolean shouldShowSbn(StatusBarNotification sbn) { in shouldShowSbn() 240 private Drawable loadIcon(StatusBarNotification sbn) { in loadIcon() 251 private int normalizeUserId(StatusBarNotification sbn) { in normalizeUserId()
|
D | NotificationStation.java | 47 import android.service.notification.StatusBarNotification; 123 public void onNotificationPosted(StatusBarNotification sbn, RankingMap ranking) { 134 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap ranking) { 239 private void markNotificationAsDismissed(StatusBarNotification sbn) { in markNotificationAsDismissed() 256 private void addOrUpdateNotification(StatusBarNotification sbn) { in addOrUpdateNotification() 345 private Drawable loadIcon(HistoricalNotificationInfo info, StatusBarNotification sbn) { in loadIcon() 375 StatusBarNotification[] active = mNoMan.getActiveNotificationsWithAttribution( in loadNotifications() 377 StatusBarNotification[] dismissed = mNoMan.getHistoricalNotificationsWithAttribution( in loadNotifications() 383 for (StatusBarNotification[] resultSet in loadNotifications() 384 : new StatusBarNotification[][] { active, dismissed }) { in loadNotifications() [all …]
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | TestNotificationListener.kt | 25 import android.service.notification.StatusBarNotification in <lambda>() 42 private sealed class NotificationEvent(val statusBarNotification: StatusBarNotification) in <lambda>() 44 private class NotificationPosted(statusBarNotification: StatusBarNotification) : in <lambda>() 49 private class NotificationRemoved(statusBarNotification: StatusBarNotification) : in <lambda>() 54 override fun onNotificationPosted(statusBarNotification: StatusBarNotification) { in <lambda>() 63 override fun onNotificationRemoved(statusBarNotification: StatusBarNotification) { in <lambda>() 150 onNotification: (StatusBarNotification) -> Unit = {} in <lambda>() 374 private fun StatusBarNotification.isSafetyCenterNotification(): Boolean = in <lambda>() method
|
D | StatusBarNotificationWithChannel.kt | 20 import android.service.notification.StatusBarNotification 24 val statusBarNotification: StatusBarNotification,
|
/packages/modules/ExtServices/java/src/android/ext/services/notification/ |
D | Assistant.java | 32 import android.service.notification.StatusBarNotification; 122 public Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn) { in onNotificationEnqueued() 128 public Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn, in onNotificationEnqueued() 208 StatusBarNotification sbn, in createNotificationAdjustment() 235 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() 254 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved() 269 public void onNotificationSnoozedUntilContext(@NonNull StatusBarNotification sbn, in onNotificationSnoozedUntilContext() 333 private boolean isForCurrentUser(StatusBarNotification sbn) { in isForCurrentUser()
|
D | NotificationEntry.java | 36 import android.service.notification.StatusBarNotification; 54 private final StatusBarNotification mSbn; 68 StatusBarNotification sbn, NotificationChannel channel, SmsHelper smsHelper) { in NotificationEntry() 125 public StatusBarNotification cloneStatusBarNotificationLight(StatusBarNotification sbn) { in cloneStatusBarNotificationLight() 126 return new StatusBarNotification( in cloneStatusBarNotificationLight() 321 public StatusBarNotification getSbn() { in getSbn()
|
/packages/apps/Car/systemlibs/car-assist-client-lib/src/com/android/car/assist/client/ |
D | FallbackAssistant.java | 29 import android.service.notification.StatusBarNotification; 104 public void handleReadAction(StatusBarNotification sbn, Listener listener) { in handleReadAction() 190 private void sendMarkAsReadIntent(StatusBarNotification sbn) { in sendMarkAsReadIntent() 238 private final StatusBarNotification mStatusBarNotification; 241 ActionRequestInfo(@Nullable StatusBarNotification statusBarNotification, in ActionRequestInfo() 248 StatusBarNotification getStatusBarNotification() { in getStatusBarNotification()
|
D | CarAssistUtils.java | 31 import android.service.notification.StatusBarNotification; 172 public static boolean isCarCompatibleMessagingNotification(StatusBarNotification sbn) { in isCarCompatibleMessagingNotification() 300 public void requestAssistantVoiceAction(StatusBarNotification sbn, String voiceAction, in requestAssistantVoiceAction() 330 private void readMessageNotification(StatusBarNotification sbn, in readMessageNotification() 346 private void replyMessageNotification(StatusBarNotification sbn, in replyMessageNotification() 354 private void requestAction(String action, StatusBarNotification sbn, Bundle payloadArguments, in requestAction() 411 private void handleFallback(StatusBarNotification sbn, String action, in handleFallback()
|
D | BundleBuilder.java | 27 import android.service.notification.StatusBarNotification; 42 static Bundle buildAssistantReadBundle(StatusBarNotification notification) { in buildAssistantReadBundle() 56 static Bundle buildAssistantReplyBundle(StatusBarNotification notification) { in buildAssistantReplyBundle()
|
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/ |
D | ShadowCarAssistUtils.java | 18 import android.service.notification.StatusBarNotification; 36 protected static boolean isCarCompatibleMessagingNotification(StatusBarNotification sbn) { in isCarCompatibleMessagingNotification() 41 protected void requestAssistantVoiceAction(StatusBarNotification sbn, String voiceAction, in requestAssistantVoiceAction()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiNotificationManager.java | 31 import android.service.notification.StatusBarNotification; 114 for (StatusBarNotification notification : getActiveNotifications()) { in cleanAllWifiNotification() 145 public StatusBarNotification[] getActiveNotifications() { in getActiveNotifications() 147 return new StatusBarNotification[0]; in getActiveNotifications()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/ |
D | NotificationHelperTest.java | 31 import android.service.notification.StatusBarNotification; 55 final StatusBarNotification notification = in showResumeNotification_showsExpectedNotification() 69 final StatusBarNotification notification = in showPrivacyReminderNotification_showsExpectedNotification()
|