Home
last modified time | relevance | path

Searched refs:notificationId (Results 1 – 18 of 18) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationActionUtils.java202 final Folder folder, final int notificationId, final long when, in addNotificationActions() argument
210 folder, notificationIntent, notificationAction, notificationId, when); in addNotificationActions()
223 folder, notificationIntent, notificationAction, notificationId, when); in addNotificationActions()
352 final NotificationActionType action, final int notificationId, final long when) { in getNotificationActionPendingIntent() argument
357 NotificationAction.SOURCE_LOCAL, notificationId); in getNotificationActionPendingIntent()
373 notificationId, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent()
387 notificationId, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent()
398 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent()
408 context, notificationId, intent, PendingIntent.FLAG_UPDATE_CURRENT); in getNotificationActionPendingIntent()
421 final NotificationActionType action, final int notificationId, final long when) { in getWearNotificationActionPendingIntent() argument
[all …]
DNotificationUtils.java382 final int notificationId = in resendNotifications() local
399 NotificationActionUtils.sUndoNotifications.get(notificationId); in resendNotifications()
457 final int notificationId = in validateAccountNotifications() local
461 nm.cancel(notificationId); in validateAccountNotifications()
463 NotificationActionUtils.sUndoNotifications.remove(notificationId); in validateAccountNotifications()
464 NotificationActionUtils.sNotificationTimestamps.delete(notificationId); in validateAccountNotifications()
503 final int notificationId = getNotificationId(account.getAccountManagerAccount(), folder); in setNewEmailIndicator() local
514 nm.cancel(notificationId); in setNewEmailIndicator()
537 if (NotificationActionUtils.sUndoNotifications.get(notificationId) == null) { in setNewEmailIndicator()
606 final int notificationId = in validateNotifications() local
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java199 private void handleUpdateRecommendation(int notificationId, Channel channel) { in handleUpdateRecommendation() argument
200 if (mNotificationChannels[notificationId] == Channel.INVALID_ID || !sendNotification( in handleUpdateRecommendation()
201 channel.getId(), notificationId)) { in handleUpdateRecommendation()
202 changeRecommendation(notificationId); in handleUpdateRecommendation()
291 int notificationId = notificationChannels.keyAt(i); in showRecommendation() local
292 mNotificationManager.cancel(NOTIFY_TAG, notificationId); in showRecommendation()
293 mNotificationChannels[notificationId] = Channel.INVALID_ID; in showRecommendation()
310 private void changeRecommendation(int notificationId) { in changeRecommendation() argument
313 if (mNotificationChannels[notificationId] != Channel.INVALID_ID) { in changeRecommendation()
314 mNotificationChannels[notificationId] = Channel.INVALID_ID; in changeRecommendation()
[all …]
/packages/apps/BasicSmsReceiver/src/com/android/basicsmsreceiver/
DBasicSmsReceiverApp.java47 int notificationId = prefs.getInt(PREF_KEY_NOTIFICATION_ID, 0); in getNextNotificationId() local
48 ++notificationId; in getNextNotificationId()
49 if (notificationId > 32765) { in getNextNotificationId()
50 notificationId = 1; // wrap around before it gets dangerous in getNextNotificationId()
55 editor.putInt(PREF_KEY_NOTIFICATION_ID, notificationId); in getNextNotificationId()
58 Log.d(LOG_TAG, "getNextNotificationId: " + notificationId); in getNextNotificationId()
60 return notificationId; in getNextNotificationId()
DSmsMessageReceiver.java54 int notificationId = BasicSmsReceiverApp.getBasicSmsReceiverApp().getNextNotificationId(); in addNotification() local
63 notificationId)); in addNotification()
65 Log.i(LOG_TAG, "addNotification notificationId: " + notificationId); in addNotification()
70 notificationManager.notify(notificationId, notification.getNotification()); in addNotification()
74 String message, int notificationId) { in createDisplayMessageIntent() argument
82 di.putExtra(DialogSmsDisplay.SMS_NOTIFICATION_ID_EXTRA, notificationId); in createDisplayMessageIntent()
87 di.setType(Integer.toString(notificationId)); in createDisplayMessageIntent()
DDialogSmsDisplay.java62 int notificationId = extras.getInt(SMS_NOTIFICATION_ID_EXTRA); in parseIntent() local
64 Log.i(LOG_TAG, "notificationId: " + notificationId); in parseIntent()
69 notificationManager.cancel(notificationId); in parseIntent()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.java202 long startMillis, long endMillis, int notificationId) { in createClickEventIntent() argument
203 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createClickEventIntent()
208 long startMillis, long endMillis, int notificationId) { in createDeleteEventIntent() argument
209 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createDeleteEventIntent()
214 long startMillis, long endMillis, int notificationId, String action) { in createDismissAlarmsIntent() argument
221 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createDismissAlarmsIntent()
236 long startMillis, long endMillis, int notificationId) { in createSnoozeIntent() argument
242 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createSnoozeIntent()
261 int notificationId, boolean doPopup, int priority) { in makeBasicNotification() argument
263 context, title, summaryText, startMillis, endMillis, eventId, notificationId, in makeBasicNotification()
[all …]
DSnoozeAlarmsService.java57 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, in onHandleIntent() local
64 if (notificationId != AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID) { in onHandleIntent()
67 nm.cancel(notificationId); in onHandleIntent()
DDismissAlarmsService.java70 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, -1); in onHandleIntent() local
100 if (notificationId != -1) { in onHandleIntent()
103 nm.cancel(notificationId); in onHandleIntent()
DAlertService.java131 public NotificationWrapper(Notification n, int notificationId, long eventId, in NotificationWrapper() argument
864 NotificationMgr notificationMgr, int notificationId) { in postNotification() argument
873 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), priorityVal); in postNotification()
889 notificationMgr.notify(notificationId, notification); in postNotification()
893 + ", notificationId:" + notificationId in postNotification()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamNotificationService.java55 Context context, DialerCall call, String action, int notificationId) { in createServiceIntent() argument
61 intent.putExtra(EXTRA_NOTIFICATION_ID, notificationId); in createServiceIntent()
83 int notificationId = intent.getIntExtra(EXTRA_NOTIFICATION_ID, 1); in onStartCommand() local
89 .cancel(number, notificationId); in onStartCommand()
DSpamNotificationActivity.java85 Context context, DialerCall call, String action, int notificationId) { in createActivityIntent() argument
91 intent.putExtra(EXTRA_NOTIFICATION_ID, notificationId); in createActivityIntent()
297 int notificationId = getIntent().getIntExtra(EXTRA_NOTIFICATION_ID, 1); in cancelNotification() local
300 .cancel(number, notificationId); in cancelNotification()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.java753 final int notificationId = mNotificationModel.getUnexpiredTimerNotificationId(); in updateNotification() local
754 mNotificationManager.notify(notificationId, notification); in updateNotification()
778 final int notificationId = mNotificationModel.getMissedTimerNotificationId(); in updateMissedNotification() local
779 mNotificationManager.notify(notificationId, notification); in updateMissedNotification()
803 final int notificationId = mNotificationModel.getExpiredTimerNotificationId(); in updateHeadsUpNotification() local
804 mService.startForeground(notificationId, notification); in updateHeadsUpNotification()
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java129 public void pullExternalCall(int notificationId) { in pullExternalCall() argument
131 if (info.getNotificationId() == notificationId in pullExternalCall()
441 public NotificationInfo(@NonNull Call call, int notificationId) { in NotificationInfo() argument
443 mNotificationId = notificationId; in NotificationInfo()
DNotificationBroadcastReceiver.java85 int notificationId = intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1); in onReceive() local
86 InCallPresenter.getInstance().getExternalCallNotifier().pullExternalCall(notificationId); in onReceive()
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java110 private static boolean needsOngoingNotification(int notificationId) { in needsOngoingNotification() argument
113 return (notificationId & NOTIFICATION_ID_BASE_MASK) == NOTIFICATION_ID_BASE_SECURITY_NEEDED; in needsOngoingNotification()
171 String contentText, Intent intent, int notificationId) { in showNotification() argument
174 needsOngoingNotification(notificationId)); in showNotification()
175 mNotificationManager.notify(notificationId, builder.build()); in showNotification()
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/
DDialogSmsDisplayTests.java276 public void sendOnNewIntent(String message, String dest, int notificationId) { in sendOnNewIntent() argument
283 di.putExtra(DialogSmsDisplay.SMS_NOTIFICATION_ID_EXTRA, notificationId); in sendOnNewIntent()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java272 public void expectTestNotification(int notificationId, int alertId, int highPriority) { in expectTestNotification() argument
273 mExpectedNotifications[notificationId] = new NotificationInstance(alertId, in expectTestNotification()
277 public void expectTestNotification(int notificationId, int[] alertIds, int priority) { in expectTestNotification() argument
278 mExpectedNotifications[notificationId] = new NotificationInstance(alertIds, priority); in expectTestNotification()