Searched refs:notificationId (Results 1 - 13 of 13) 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.java202 final Folder folder, final int notificationId, final long when,
210 folder, notificationIntent, notificationAction, notificationId, when);
223 folder, notificationIntent, notificationAction, notificationId, when);
352 final NotificationActionType action, final int notificationId, final long when) {
357 NotificationAction.SOURCE_LOCAL, notificationId);
373 notificationId, PendingIntent.FLAG_UPDATE_CURRENT);
387 notificationId, PendingIntent.FLAG_UPDATE_CURRENT);
398 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT);
408 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT);
421 final NotificationActionType action, final int notificationId, fina
198 addNotificationActions(final Context context, final Intent notificationIntent, final NotificationCompat.Builder notification, NotificationCompat.WearableExtender wearExtender, final Account account, final Conversation conversation, final Message message, final Folder folder, final int notificationId, final long when, final Set<String> notificationActions) argument
349 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
418 getWearNotificationActionPendingIntent(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
497 NotificationAction(final NotificationActionType notificationActionType, final Account account, final Conversation conversation, final Message message, final Folder folder, final long conversationId, final String messageId, final long localMessageId, final long when, final int source, final int notificationId) argument
629 createUndoNotification(final Context context, final NotificationAction notificationAction, final int notificationId) argument
852 removeUndoNotification( final Context context, final int notificationId, final boolean removeNow) argument
[all...]
H A DNotificationUtils.java382 final int notificationId =
399 NotificationActionUtils.sUndoNotifications.get(notificationId);
457 final int notificationId =
461 nm.cancel(notificationId);
463 NotificationActionUtils.sUndoNotifications.remove(notificationId);
464 NotificationActionUtils.sNotificationTimestamps.delete(notificationId);
503 final int notificationId = getNotificationId(account.getAccountManagerAccount(), folder);
514 nm.cancel(notificationId);
537 if (NotificationActionUtils.sUndoNotifications.get(notificationId) == null) {
606 final int notificationId
1190 configureNotifForOneConversation(Context context, Account account, FolderPreferences folderPreferences, NotificationCompat.Builder notificationBuilder, NotificationCompat.WearableExtender wearExtender, Cursor conversationCursor, Intent notificationIntent, Folder folder, long when, Resources res, boolean isInbox, String notificationLabelName, int notificationId, final ContactFetcher contactFetcher) argument
[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 DEmailNotificationController.java107 * @param notificationId the notification id to check
110 private static boolean needsOngoingNotification(int notificationId) { argument
113 return (notificationId & NOTIFICATION_ID_BASE_MASK) == NOTIFICATION_ID_BASE_SECURITY_NEEDED;
168 * @param notificationId The ID of the notification to register with the service.
171 String contentText, Intent intent, int notificationId) {
174 needsOngoingNotification(notificationId));
175 mNotificationManager.notify(notificationId, builder.build());
170 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.java344 int priority, PendingIntent pendingIntent, int notificationId, boolean showTicker) {
363 NotificationManagerCompat.from(context).notify(notificationId, notification);
343 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."

Completed in 251 milliseconds