Lines Matching refs:NotificationKey

130             extends ConcurrentHashMap<NotificationKey, Pair<Integer, Integer>> {
136 * Retuns the unread count for the given NotificationKey.
138 public Integer getUnread(NotificationKey key) {
144 * Retuns the unread unseen count for the given NotificationKey.
146 public Integer getUnseen(NotificationKey key) {
152 * Store the unread and unseen value for the given NotificationKey
154 public void put(NotificationKey key, int unread, int unseen) {
200 final NotificationKey key = new NotificationKey(account, folder);
216 final Set<NotificationKey> keys = keySet();
217 for (NotificationKey key : keys) {
240 Set<NotificationKey> keysToRemove = Sets.newHashSet();
241 for (NotificationKey key : notifications.keySet()) {
253 for (NotificationKey key : keysToRemove) {
307 final Set<NotificationKey> keys = notificationMap.keySet();
308 for (NotificationKey notification : keys) {
344 List<NotificationKey> notificationsToCancel = Lists.newArrayList();
348 Set<NotificationKey> keys = notificationMap.keySet();
353 for (NotificationKey notification : keys) {
361 for (NotificationKey notification : keys) {
363 // If notification is not enabled for this label, remember this NotificationKey
382 for (NotificationKey notification : notificationsToCancel) {
413 final NotificationKey key = new NotificationKey(account, folder);
448 NotificationKey key) {
1256 final NotificationKey key = new NotificationKey(account, folder);
1278 final ImmutableList.Builder<NotificationKey> keyBuilder = ImmutableList.builder();
1280 for (final NotificationKey key : notificationMap.keySet()) {
1286 final List<NotificationKey> notificationKeys = keyBuilder.build();
1291 for (final NotificationKey notificationKey : notificationKeys) {
1465 private static class NotificationKey {
1469 public NotificationKey(Account account, Folder folder) {
1476 if (!(other instanceof NotificationKey)) {
1479 NotificationKey key = (NotificationKey) other;