Searched refs:notificationId (Results 1 - 12 of 12) 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.java58 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, -1);
79 if (notificationId != -1) {
82 nm.cancel(notificationId);
H A DAlertReceiver.java161 long startMillis, long endMillis, int notificationId) {
162 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId,
167 long startMillis, long endMillis, int notificationId) {
168 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId,
173 long startMillis, long endMillis, int notificationId, String action,
181 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId);
197 long startMillis, long endMillis, int notificationId) {
203 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId);
222 int notificationId, boolean doPopup, int priority) {
224 context, title, summaryText, startMillis, endMillis, eventId, notificationId,
160 createClickEventIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId) argument
166 createDeleteEventIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId) argument
172 createDismissAlarmsIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId, String action, boolean showEvent) argument
196 createSnoozeIntent(Context context, long eventId, long startMillis, long endMillis, int notificationId) argument
220 makeBasicNotification(Context context, String title, String summaryText, long startMillis, long endMillis, long eventId, int notificationId, boolean doPopup, int priority) argument
229 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
322 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.java120 public NotificationWrapper(Notification n, int notificationId, long eventId, argument
327 + ", notificationId:" + AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID);
696 NotificationMgr notificationMgr, int notificationId) {
705 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), priorityVal);
720 notificationMgr.notify(notificationId, notification);
724 + ", notificationId:" + notificationId
694 postNotification(NotificationInfo info, String summaryText, Context context, boolean highPriority, NotificationPrefs prefs, NotificationMgr notificationMgr, int notificationId) argument
/packages/apps/Email/src/com/android/email/
H A DNotificationController.java148 * @param notificationId the notification id to check
151 private boolean needsOngoingNotification(int notificationId) { argument
154 return notificationId == NOTIFICATION_ID_SECURITY_NEEDED;
211 * @param notificationId The ID of the notification to register with the service.
214 String contentText, Intent intent, int notificationId) {
216 contentText, intent, null, null, true, needsOngoingNotification(notificationId));
217 mNotificationManager.notify(notificationId, builder.getNotification());
873 int notificationId = sInstance.getNewMessageNotificationId(mAccountId);
874 sInstance.mNotificationManager.cancel(notificationId);
958 int notificationId
213 showAccountNotification(Account account, String ticker, String title, String contentText, Intent intent, int notificationId) 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/DeskClock/src/com/android/deskclock/timer/
H A DTimerReceiver.java275 int priority, PendingIntent pendingIntent, int notificationId, boolean showTicker) {
293 notificationManager.notify(notificationId, notification);
274 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.java273 public void expectTestNotification(int notificationId, int alertId, int highPriority) { argument
274 mExpectedNotifications[notificationId] = new NotificationInstance(alertId,
278 public void expectTestNotification(int notificationId, int[] alertIds, int priority) { argument
279 mExpectedNotifications[notificationId] = new NotificationInstance(alertIds, priority);
301 assertNull("Received unexpected notificationId " + id + debugStr, actual);
305 assertNotNull("Expected notificationId " + id + " but it was not posted."
/packages/apps/Mms/src/com/android/mms/transaction/
H A DMessagingNotification.java766 public static void cancelNotification(Context context, int notificationId) { argument
771 nm.cancel(notificationId);

Completed in 289 milliseconds