Lines Matching refs:notification

115     // Maps summary notification to conversation notification ids.
130 * Returns the notification map, creating it if necessary.
220 * Populates the notification map with previously cached data.
227 // Get the parts of the string that make the notification entry
281 * Cache the notification map.
302 * @return the title of this notification with each account and the number of unread and unseen
359 * @param accountUri The {@link Uri} of the {@link Account} of the notification
361 * @param folderUri The {@link Uri} of the {@link Folder} of the notification
380 for (NotificationKey notification : keys) {
381 final Folder folder = notification.folder;
383 getNotificationId(notification.account.getAccountManagerAccount(), folder);
386 // and same account as the undo notification that was previously displayed.
387 if (accountUri != null && !Objects.equal(accountUri, notification.account.uri) &&
391 notification.account.uri, folder.folderUri, accountUri, folderUri);
396 notification.account.uri, folder.folderUri);
401 validateNotifications(context, folder, notification.account, true,
402 false, notification, contactFetcher);
404 // Create an undo notification
418 // Iterate through the notification map to see if there are any entries that correspond to
427 for (NotificationKey notification : keys) {
428 if (notification.account.getAccountManagerAccount().name.equals(email)) {
429 notificationsToCancel.add(notification);
433 // Iterate through the notification map to see if there are any entries that
434 // correspond to labels that are not in the notification set.
435 for (NotificationKey notification : keys) {
436 if (notification.account.getAccountManagerAccount().name.equals(email)) {
437 // If notification is not enabled for this label, remember this NotificationKey
438 // to later cancel the notification, and remove the entry from the map
439 final Folder folder = notification.folder;
441 notification.account.settings.defaultInbox);
443 context, notification.account.getAccountId(), folder, isInbox);
446 notificationsToCancel.add(notification);
455 for (NotificationKey notification : notificationsToCancel) {
456 final Folder folder = notification.folder;
458 getNotificationId(notification.account.getAccountManagerAccount(), folder);
460 notification.account.getEmailAddress(), folder.persistentId);
462 notificationMap.remove(notification);
466 cancelConversationNotifications(notification, nm);
490 * Display only one notification. Should only be called from
505 // Update the notification map
523 // notification already exists (bug 2412348).
544 * Validate the notifications notification.
621 // We now have all we need to create the notification and the pending intent
624 NotificationCompat.Builder notification = new NotificationCompat.Builder(context);
631 notification.setColor(
636 notification.setSmallIcon(R.drawable.ic_notification_multiple_mail_24dp);
638 notification.setSmallIcon(R.drawable.ic_notification_mail_24dp);
640 notification.setTicker(account.getDisplayName());
641 notification.setVisibility(NotificationCompat.VISIBILITY_PRIVATE);
642 notification.setCategory(NotificationCompat.CATEGORY_EMAIL);
654 notification.setWhen(when);
656 // The timestamp is now stored in the notification, so we can remove it from here
660 // notification. Also this intent gets fired when the user taps on a notification as
670 notification.setDeleteIntent(PendingIntent.getService(
673 // Ensure that the notification is cleared when the user selects it
674 notification.setAutoCancel(true);
714 LogUtils.e(LOG_TAG, "Null intent when building notification");
721 notification, wearableExtender, msgNotifications, notificationId,
737 notification.setOnlyAlertOnce(true);
767 * We do not want to notify if this is coming back from an Undo notification, hence the
778 notification.setSound(TextUtils.isEmpty(ringtoneUri) ? null
780 LogUtils.i(LOG_TAG, "New email in %s vibrateWhen: %s, playing notification: %s",
789 notification.setDefaults(defaults);
793 // notification (like from an Undo notification)
794 notification.setTicker(null);
797 notification.extend(wearableExtender);
799 // create the *public* form of the *private* notification we have been assembling
803 notification.setPublicVersion(publicNotification);
805 nm.notify(notificationId, notification.build());
812 LogUtils.d(LOG_TAG, "canceling conversation notification %s",
822 LogUtils.d(LOG_TAG, "notifying conversation notification %s", entry.getKey());
839 * Build and return a redacted form of a notification using the given information. This redacted
842 * @param context a context used to construct the notification
843 * @param account the account for which the notification is being generated
844 * @param folder the folder for which the notification is being generated
845 * @param when the timestamp of the notification
848 * @param clickIntent the behavior to invoke if the notification is tapped (note that the user
850 * @return the redacted form of the notification to display above the lock screen
869 // if this public notification summarizes multiple single notifications, mark it as the
870 // summary notification and generate the same group key as the single notifications
903 // Amend the click intent with a hint that its source was a notification,
904 // but remove the hint before it's used to generate notification action
906 // 1. generate single notification
977 LogUtils.i(LOG_TAG, "Showing notification with unreadCount of %d and unseenCount of %d",
982 // Boolean indicating that this notification is for a non-inbox label.
995 // The title of the notification is the new messages string
1000 // For a new-style notification
1004 // The body of the notification is the account name, or the label name.
1013 // Track all senders to later tag them along with the digest notification
1073 // Adding conversation notification for Wear.
1094 // Conversations are sorted in descending order, but notification sort
1132 // Tag main digest notification with the senders
1142 // The body of the notification is the account name, or the label name.
1166 // Build the notification ticker
1168 // This is a per label notification, format the ticker with that information
1174 // If we didn't generate a notification ticker, it will default to account name
1178 // Set the number in the notification
1187 * Configure the notification for one conversation. When there are multiple conversations,
1188 * this method is used to configure bundled notification for Android Wear.
1215 // this notification.
1253 // For a new-style notification
1273 // The notification content will be the subject of the conversation.
1276 // The notification subtext will be the subject of the conversation for inbox
1304 // For an old-style notification
1306 // The title of a single conversation notification is built from both the sender
1311 // The notification content will be the subject of the conversation for inbox
1345 // Tag a notification with a person using "mailto:<sender address>"
1440 * Sets the bigtext for a notification for a single new conversation
1443 * @param senders Sender of the new message that triggered the notification.
1444 * @param subject Subject of the new message that triggered the notification
1445 * @param snippet Snippet of the new message that triggered the notification
1497 * Sets the bigtext for a notification for a single new conversation
1499 * @param subject Subject of the new message that triggered the notification
1514 * Sets the bigtext for a notification for a single new conversation
1517 * @param subject Subject of the new message that triggered the notification
1565 * Gets the title for a notification for a single new conversation
1567 * @param sender Sender of the new message that triggered the notification.
1568 * @param subject Subject of the new message that triggered the notification
1892 LogUtils.i(LOG_TAG, "Unable to grab email from \"%s\" for notification tagging",
1997 * During account setup in Email, we may not have an inbox yet, so the notification setting had