Searched refs:notificationId (Results 1 - 14 of 14) sorted by relevance

/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/
H A DBasicSmsReceiverApp.java47 int notificationId = prefs.getInt(PREF_KEY_NOTIFICATION_ID, 0);
48 ++notificationId;
49 if (notificationId > 32765) {
50 notificationId = 1; // wrap around before it gets dangerous
53 // Save the updated notificationId in SharedPreferences
55 editor.putInt(PREF_KEY_NOTIFICATION_ID, notificationId);
58 Log.d(LOG_TAG, "getNextNotificationId: " + notificationId);
60 return notificationId;
H A DSmsMessageReceiver.java54 int notificationId = BasicSmsReceiverApp.getBasicSmsReceiverApp().getNextNotificationId();
63 notificationId));
65 Log.i(LOG_TAG, "addNotification notificationId: " + notificationId);
70 notificationManager.notify(notificationId, notification.getNotification());
74 String message, int notificationId) {
82 di.putExtra(DialogSmsDisplay.SMS_NOTIFICATION_ID_EXTRA, notificationId);
87 di.setType(Integer.toString(notificationId));
73 createDisplayMessageIntent(Context context, String fromAddress, String message, int notificationId) argument
H A DDialogSmsDisplay.java62 int notificationId = extras.getInt(SMS_NOTIFICATION_ID_EXTRA);
64 Log.i(LOG_TAG, "notificationId: " + notificationId);
69 notificationManager.cancel(notificationId);
/packages/apps/Calendar/src/com/android/calendar/alerts/
H A DSnoozeAlarmsService.java57 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY,
64 if (notificationId != AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID) {
67 nm.cancel(notificationId);
H A DDismissAlarmsService.java70 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, -1);
100 if (notificationId != -1) {
103 nm.cancel(notificationId);
H A DAlertReceiver.java202 long startMillis, long endMillis, int notificationId) {
203 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId,
208 long startMillis, long endMillis, int notificationId) {
209 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId,
214 long startMillis, long endMillis, int notificationId, String action) {
221 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId);
236 long startMillis, long endMillis, int notificationId) {
242 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId);
261 int notificationId, boolean doPopup, int priority) {
263 context, title, summaryText, startMillis, endMillis, eventId, notificationId,
201 createClickEventIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId) argument
207 createDeleteEventIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId) argument
213 createDismissAlarmsIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId, String action) argument
235 createSnoozeIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId) argument
259 makeBasicNotification(Context context, String title, String summaryText, long startMillis, long endMillis, long eventId, int notificationId, boolean doPopup, int priority) argument
268 buildBasicNotification(Notification.Builder notificationBuilder, Context context, String title, String summaryText, long startMillis, long endMillis, long eventId, int notificationId, boolean doPopup, int priority, boolean addActionButtons) argument
411 makeExpandingNotification(Context context, String title, String summaryText, String description, long startMillis, long endMillis, long eventId, int notificationId, boolean doPopup, int priority) argument
[all...]
H A DAlertService.java131 public NotificationWrapper(Notification n, int notificationId, long eventId, argument
398 + ", notificationId:" + AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID);
864 NotificationMgr notificationMgr, int notificationId) {
873 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), priorityVal);
889 notificationMgr.notify(notificationId, notification);
893 + ", notificationId:" + notificationId
862 postNotification(NotificationInfo info, String summaryText, Context context, boolean highPriority, NotificationPrefs prefs, NotificationMgr notificationMgr, int notificationId) argument
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DNotificationActionUtils.java198 final Folder folder, final int notificationId, final long when,
208 folder, notificationIntent, notificationAction, notificationId, when));
302 final NotificationActionType action, final int notificationId, final long when) {
320 Uri.parse("mailfrom://mail/account/" + "reply/" + notificationId);
326 notificationId, PendingIntent.FLAG_UPDATE_CURRENT);
338 Uri.parse("mailfrom://mail/account/" + "replyall/" + notificationId);
344 notificationId, PendingIntent.FLAG_UPDATE_CURRENT);
354 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT);
363 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT);
520 final NotificationAction notificationAction, final int notificationId) {
195 addNotificationActions(final Context context, final Intent notificationIntent, final NotificationCompat.Builder notification, final Account account, final Conversation conversation, final Message message, final Folder folder, final int notificationId, final long when, final Set<String> notificationActions) argument
299 getNotificationActionPendingIntent(final Context context, final Account account, final Conversation conversation, final Message message, final Folder folder, final Intent notificationIntent, final NotificationActionType action, final int notificationId, final long when) argument
519 createUndoNotification(final Context context, final NotificationAction notificationAction, final int notificationId) argument
740 removeUndoNotification( final Context context, final int notificationId, final boolean removeNow) argument
[all...]
H A DNotificationUtils.java310 final int notificationId =
327 NotificationActionUtils.sUndoNotifications.get(notificationId);
384 final int notificationId =
388 nm.cancel(notificationId);
390 NotificationActionUtils.sUndoNotifications.remove(notificationId);
391 NotificationActionUtils.sNotificationTimestamps.delete(notificationId);
409 final int notificationId = getNotificationId(account.getAccountManagerAccount(), folder);
419 .cancel(notificationId);
437 if (NotificationActionUtils.sUndoNotifications.get(notificationId) == null) {
505 final int notificationId
[all...]
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/
H A DDialogSmsDisplayTests.java276 public void sendOnNewIntent(String message, String dest, int notificationId) { argument
283 di.putExtra(DialogSmsDisplay.SMS_NOTIFICATION_ID_EXTRA, notificationId);
/packages/apps/Email/src/com/android/email/
H A DNotificationController.java110 * @param notificationId the notification id to check
113 private static boolean needsOngoingNotification(int notificationId) { argument
116 return (notificationId & NOTIFICATION_ID_BASE_MASK) == NOTIFICATION_ID_BASE_SECURITY_NEEDED;
173 * @param notificationId The ID of the notification to register with the service.
176 String contentText, Intent intent, int notificationId) {
179 needsOngoingNotification(notificationId));
180 mNotificationManager.notify(notificationId, builder.build());
175 showNotification(long accountId, String ticker, String title, String contentText, Intent intent, int notificationId) argument
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DTimerReceiver.java323 int priority, PendingIntent pendingIntent, int notificationId, boolean showTicker) {
341 notificationManager.notify(notificationId, notification);
322 showCollapsedNotification(final Context context, String title, String text, int priority, PendingIntent pendingIntent, int notificationId, boolean showTicker) argument
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
H A DAlertServiceTest.java272 public void expectTestNotification(int notificationId, int alertId, int highPriority) { argument
273 mExpectedNotifications[notificationId] = new NotificationInstance(alertId,
277 public void expectTestNotification(int notificationId, int[] alertIds, int priority) { argument
278 mExpectedNotifications[notificationId] = new NotificationInstance(alertIds, priority);
300 assertNull("Received unexpected notificationId " + id + debugStr, actual);
304 assertNotNull("Expected notificationId " + id + " but it was not posted."
/packages/apps/Mms/src/com/android/mms/transaction/
H A DMessagingNotification.java777 public static void cancelNotification(Context context, int notificationId) { argument
782 nm.cancel(notificationId);

Completed in 132 milliseconds