Home
last modified time | relevance | path

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

/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java214 int notificationId = (int) message.getDeliveryTime(); in openEmergencyAlertNotification() local
224 Intent notify = createDisplayMessageIntent(this, c, message, notificationId); in openEmergencyAlertNotification()
225 PendingIntent pi = PendingIntent.getActivity(this, notificationId, notify, 0); in openEmergencyAlertNotification()
240 notificationManager.notify(notificationId, builder.getNotification()); in openEmergencyAlertNotification()
254 int notificationId = NOTIFICATION_ID; in addToNotificationBar() local
257 this, CellBroadcastListActivity.class, message, notificationId), 0); in addToNotificationBar()
279 Log.i(TAG, "addToNotificationBar notificationId: " + notificationId); in addToNotificationBar()
284 notificationManager.notify(notificationId, builder.getNotification()); in addToNotificationBar()
288 CellBroadcastMessage message, int notificationId) { in createDisplayMessageIntent() argument
292 intent.putExtra(SMS_CB_NOTIFICATION_ID_EXTRA, notificationId); in createDisplayMessageIntent()
[all …]
DCellBroadcastListActivity.java291 int notificationId = extras.getInt(CellBroadcastAlertService.SMS_CB_NOTIFICATION_ID_EXTRA); in onNewIntent() local
296 notificationManager.cancel(notificationId); in onNewIntent()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.java159 long startMillis, long endMillis, int notificationId) { in createClickEventIntent() argument
160 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createClickEventIntent()
165 long startMillis, long endMillis, int notificationId) { in createDeleteEventIntent() argument
166 return createDismissAlarmsIntent(context, eventId, startMillis, endMillis, notificationId, in createDeleteEventIntent()
171 long startMillis, long endMillis, int notificationId, String action, in createDismissAlarmsIntent() argument
179 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createDismissAlarmsIntent()
195 long startMillis, long endMillis, int notificationId) { in createSnoozeIntent() argument
201 intent.putExtra(AlertUtils.NOTIFICATION_ID_KEY, notificationId); in createSnoozeIntent()
220 int notificationId, boolean doPopup) { in makeBasicNotification() argument
223 endMillis, eventId, notificationId, doPopup, false, false).build(); 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.java58 int notificationId = intent.getIntExtra(AlertUtils.NOTIFICATION_ID_KEY, -1); in onHandleIntent() local
79 if (notificationId != -1) { in onHandleIntent()
82 nm.cancel(notificationId); in onHandleIntent()
DAlertService.java123 public NotificationWrapper(Notification n, int notificationId, long eventId, in NotificationWrapper() argument
681 NotificationMgr notificationMgr, int notificationId) { in postNotification() argument
685 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), in postNotification()
701 notificationMgr.notify(notificationId, notification); in postNotification()
705 + ", notificationId:" + notificationId in postNotification()
/packages/apps/Email/src/com/android/email/
DNotificationController.java151 private boolean needsOngoingNotification(int notificationId) { in needsOngoingNotification() argument
154 return notificationId == NOTIFICATION_ID_SECURITY_NEEDED; in needsOngoingNotification()
214 String contentText, Intent intent, int notificationId) { in showAccountNotification() argument
216 contentText, intent, null, null, true, needsOngoingNotification(notificationId)); in showAccountNotification()
217 mNotificationManager.notify(notificationId, builder.getNotification()); in showAccountNotification()
875 int notificationId = sInstance.getNewMessageNotificationId(mAccountId); in onChange() local
876 sInstance.mNotificationManager.cancel(notificationId); in onChange()
960 int notificationId = sInstance.getNewMessageNotificationId(accountId); in onChange() local
961 sInstance.mNotificationManager.cancel(notificationId); in onChange()
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/
DDialogSmsDisplayTests.java277 public void sendOnNewIntent(String message, String dest, int notificationId) { in sendOnNewIntent() argument
284 di.putExtra(DialogSmsDisplay.SMS_NOTIFICATION_ID_EXTRA, notificationId); in sendOnNewIntent()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java271 public void expectTestNotification(int notificationId, int alertId, int highPriority) { in expectTestNotification() argument
272 mNotifications[notificationId] = new NotificationInstance(alertId, highPriority); in expectTestNotification()
275 public void expectTestNotification(int notificationId, int[] alertIds, int priority) { in expectTestNotification() argument
276 mNotifications[notificationId] = new NotificationInstance(alertIds, priority); in expectTestNotification()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverManager.java270 final int notificationId; // Unique ID of this transfer used for notifications field in HandoverManager.HandoverTransfer
287 this.notificationId = mNotificationId++; in HandoverTransfer()
/packages/apps/Mms/src/com/android/mms/transaction/
DMessagingNotification.java746 public static void cancelNotification(Context context, int notificationId) { in cancelNotification() argument
750 nm.cancel(notificationId); in cancelNotification()