/packages/apps/TV/src/com/android/tv/recommendation/ |
D | NotificationService.java | 207 private void handleUpdateRecommendation(int notificationId, Channel channel) { in handleUpdateRecommendation() argument 208 if (mNotificationChannels[notificationId] == Channel.INVALID_ID || !sendNotification( in handleUpdateRecommendation() 209 channel.getId(), notificationId)) { in handleUpdateRecommendation() 210 changeRecommendation(notificationId); in handleUpdateRecommendation() 299 int notificationId = notificationChannels.keyAt(i); in showRecommendation() local 300 mNotificationManager.cancel(NOTIFY_TAG, notificationId); in showRecommendation() 301 mNotificationChannels[notificationId] = Channel.INVALID_ID; in showRecommendation() 318 private void changeRecommendation(int notificationId) { in changeRecommendation() argument 321 if (mNotificationChannels[notificationId] != Channel.INVALID_ID) { in changeRecommendation() 322 mNotificationChannels[notificationId] = Channel.INVALID_ID; in changeRecommendation() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | NotificationActionUtils.java | 202 final Folder folder, final int notificationId, final long when, in addNotificationActions() argument 210 folder, notificationIntent, notificationAction, notificationId, when); in addNotificationActions() 223 folder, notificationIntent, notificationAction, notificationId, when); in addNotificationActions() 352 final NotificationActionType action, final int notificationId, final long when) { in getNotificationActionPendingIntent() argument 357 NotificationAction.SOURCE_LOCAL, notificationId); in getNotificationActionPendingIntent() 373 notificationId, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent() 387 notificationId, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent() 398 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent() 408 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent() 421 final NotificationActionType action, final int notificationId, final long when) { in getWearNotificationActionPendingIntent() argument [all …]
|
D | NotificationUtils.java | 382 final int notificationId = in resendNotifications() local 399 NotificationActionUtils.sUndoNotifications.get(notificationId); in resendNotifications() 457 final int notificationId = in validateAccountNotifications() local 461 nm.cancel(notificationId); in validateAccountNotifications() 463 NotificationActionUtils.sUndoNotifications.remove(notificationId); in validateAccountNotifications() 464 NotificationActionUtils.sNotificationTimestamps.delete(notificationId); in validateAccountNotifications() 503 final int notificationId = getNotificationId(account.getAccountManagerAccount(), folder); in setNewEmailIndicator() local 514 nm.cancel(notificationId); in setNewEmailIndicator() 537 if (NotificationActionUtils.sUndoNotifications.get(notificationId) == null) { in setNewEmailIndicator() 606 final int notificationId = in validateNotifications() local [all …]
|
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/ |
D | BasicSmsReceiverApp.java | 47 int notificationId = prefs.getInt(PREF_KEY_NOTIFICATION_ID, 0); in getNextNotificationId() local 48 ++notificationId; in getNextNotificationId() 49 if (notificationId > 32765) { in getNextNotificationId() 50 notificationId = 1; // wrap around before it gets dangerous in getNextNotificationId() 55 editor.putInt(PREF_KEY_NOTIFICATION_ID, notificationId); in getNextNotificationId() 58 Log.d(LOG_TAG, "getNextNotificationId: " + notificationId); in getNextNotificationId() 60 return notificationId; in getNextNotificationId()
|
D | SmsMessageReceiver.java | 54 int notificationId = BasicSmsReceiverApp.getBasicSmsReceiverApp().getNextNotificationId(); in addNotification() local 63 notificationId)); in addNotification() 65 Log.i(LOG_TAG, "addNotification notificationId: " + notificationId); in addNotification() 70 notificationManager.notify(notificationId, notification.getNotification()); in addNotification() 74 String message, int notificationId) { in createDisplayMessageIntent() argument 82 di.putExtra(DialogSmsDisplay.SMS_NOTIFICATION_ID_EXTRA, notificationId); in createDisplayMessageIntent() 87 di.setType(Integer.toString(notificationId)); in createDisplayMessageIntent()
|
D | DialogSmsDisplay.java | 62 int notificationId = extras.getInt(SMS_NOTIFICATION_ID_EXTRA); in parseIntent() local 64 Log.i(LOG_TAG, "notificationId: " + notificationId); in parseIntent() 69 notificationManager.cancel(notificationId); in parseIntent()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertReceiver.java | 202 long startMillis, long endMillis, int notificationId) { in createClickEventIntent() argument 203 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createClickEventIntent() 208 long startMillis, long endMillis, int notificationId) { in createDeleteEventIntent() argument 209 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createDeleteEventIntent() 214 long startMillis, long endMillis, int notificationId, String action) { in createDismissAlarmsIntent() argument 221 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createDismissAlarmsIntent() 236 long startMillis, long endMillis, int notificationId) { in createSnoozeIntent() argument 242 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createSnoozeIntent() 261 int notificationId, boolean doPopup, int priority) { in makeBasicNotification() argument 263 context, title, summaryText, startMillis, endMillis, eventId, notificationId, in makeBasicNotification() [all …]
|
D | SnoozeAlarmsService.java | 57 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, in onHandleIntent() local 64 if (notificationId != AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID) { in onHandleIntent() 67 nm.cancel(notificationId); in onHandleIntent()
|
D | DismissAlarmsService.java | 70 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, -1); in onHandleIntent() local 100 if (notificationId != -1) { in onHandleIntent() 103 nm.cancel(notificationId); in onHandleIntent()
|
D | AlertService.java | 131 public NotificationWrapper(Notification n, int notificationId, long eventId, in NotificationWrapper() argument 864 NotificationMgr notificationMgr, int notificationId) { in postNotification() argument 873 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), priorityVal); in postNotification() 889 notificationMgr.notify(notificationId, notification); in postNotification() 893 + ", notificationId:" + notificationId in postNotification()
|
/packages/apps/Email/src/com/android/email/ |
D | EmailNotificationController.java | 110 private static boolean needsOngoingNotification(int notificationId) { in needsOngoingNotification() argument 113 return (notificationId & NOTIFICATION_ID_BASE_MASK) == NOTIFICATION_ID_BASE_SECURITY_NEEDED; in needsOngoingNotification() 171 String contentText, Intent intent, int notificationId) { in showNotification() argument 174 needsOngoingNotification(notificationId)); in showNotification() 175 mNotificationManager.notify(notificationId, builder.build()); in showNotification()
|
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
D | DialogSmsDisplayTests.java | 276 public void sendOnNewIntent(String message, String dest, int notificationId) { in sendOnNewIntent() argument 283 di.putExtra(DialogSmsDisplay.SMS_NOTIFICATION_ID_EXTRA, notificationId); in sendOnNewIntent()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.java | 713 final int notificationId = mNotificationModel.getUnexpiredTimerNotificationId(); in updateNotification() local 714 mNotificationManager.notify(notificationId, notification); in updateNotification() 822 final int notificationId = mNotificationModel.getExpiredTimerNotificationId(); in updateHeadsUpNotification() local 823 mService.startForeground(notificationId, notification); in updateHeadsUpNotification()
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 272 public void expectTestNotification(int notificationId, int alertId, int highPriority) { in expectTestNotification() argument 273 mExpectedNotifications[notificationId] = new NotificationInstance(alertId, in expectTestNotification() 277 public void expectTestNotification(int notificationId, int[] alertIds, int priority) { in expectTestNotification() argument 278 mExpectedNotifications[notificationId] = new NotificationInstance(alertIds, priority); in expectTestNotification()
|