Lines Matching refs:notificationInfo
60 private final Map<SenderKey, NotificationInfo> mNotificationInfos = new HashMap<>();
93 NotificationInfo notificationInfo = mNotificationInfos.get(senderKey);
94 if (notificationInfo == null) {
95 notificationInfo =
96 new NotificationInfo(message.getSenderName(), message.getSenderContactUri());
97 mNotificationInfos.put(senderKey, notificationInfo);
99 notificationInfo.mMessageKeys.add(messageKey);
100 updateNotificationFor(senderKey, notificationInfo, false /* ttsPlaying */);
104 NotificationInfo notificationInfo, boolean ttsPlaying) {
108 builder.setContentTitle(notificationInfo.mSenderName);
110 R.plurals.notification_new_message, notificationInfo.mMessageKeys.size(),
111 notificationInfo.mMessageKeys.size()));
117 PendingIntent.getService(mContext, notificationInfo.mNotificationId, deleteIntent,
136 notificationInfo.mNotificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT);
139 mNotificationManager.notify(notificationInfo.mNotificationId, builder.build());
150 NotificationInfo notificationInfo = mNotificationInfos.get(senderKey);
151 if (notificationInfo == null) {
157 ttsMessage.append(notificationInfo.mSenderName)
159 for (MessageKey messageKey : notificationInfo.mMessageKeys) {
170 updateNotificationFor(senderKey, notificationInfo, true);
175 updateNotificationFor(senderKey, notificationInfo, false);
196 NotificationInfo notificationInfo = mNotificationInfos.get(senderKey);
197 if (notificationInfo == null) {
198 Log.w(TAG, "No notificationInfo found for senderKey: " + senderKey);
201 if (notificationInfo.mSenderContactUri == null) {
205 Uri recipientUris[] = { Uri.parse(notificationInfo.mSenderContactUri) };
231 Iterator<Map.Entry<SenderKey, NotificationInfo>> notificationIt =
234 Map.Entry<SenderKey, NotificationInfo> entry = notificationIt.next();
375 private static class NotificationInfo {
384 NotificationInfo(String senderName, @Nullable String senderContactUri) {