Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/recommendation/
DNotificationService.java201 private void handleUpdateRecommendation(int notificationId, Channel channel) { in handleUpdateRecommendation() argument
202 if (mNotificationChannels[notificationId] == Channel.INVALID_ID in handleUpdateRecommendation()
203 || !sendNotification(channel.getId(), notificationId)) { in handleUpdateRecommendation()
204 changeRecommendation(notificationId); in handleUpdateRecommendation()
297 int notificationId = notificationChannels.keyAt(i); in showRecommendation() local
298 mNotificationManager.cancel(NOTIFY_TAG, notificationId); in showRecommendation()
299 mNotificationChannels[notificationId] = Channel.INVALID_ID; in showRecommendation()
316 private void changeRecommendation(int notificationId) { in changeRecommendation() argument
319 if (mNotificationChannels[notificationId] != Channel.INVALID_ID) { in changeRecommendation()
320 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/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/
DNotificationUtils.java80 final int notificationId = sNextNotificationId.getAndIncrement(); in sendDirectReplyNotification() local
81 final PendingIntent pendingIntent = getReplyPendingIntent(context, notificationId); in sendDirectReplyNotification()
93 context.getSystemService(NotificationManager.class).notify(notificationId, notification); in sendDirectReplyNotification()
102 final int notificationId = intent.getIntExtra(KEY_NOTIFICATION_ID, 0); in onReceiveDirectReply() local
110 .notify(notificationId, notificationBuilder.build()); in onReceiveDirectReply()
113 private static PendingIntent getReplyPendingIntent(Context context, int notificationId) { in getReplyPendingIntent() argument
116 intent.putExtra(KEY_NOTIFICATION_ID, notificationId); in getReplyPendingIntent()
119 return PendingIntent.getBroadcast(context.getApplicationContext(), notificationId, intent, in getReplyPendingIntent()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamNotificationService.java59 private int notificationId; field in SpamNotificationService
67 int notificationId) { in createServiceIntent() argument
71 intent.putExtra(EXTRA_NOTIFICATION_ID, notificationId); in createServiceIntent()
101 notificationId = intent.getIntExtra(EXTRA_NOTIFICATION_ID, 1); in onStartCommand()
116 DialerNotificationManager.cancel(this, notificationTag, notificationId); in onStartCommand()
135 notificationId, in onStartCommand()
196 notificationId); in createPromoActivityPendingIntent()
208 notificationId); in createEnableSpamBlockingPendingIntent()
DSpamNotificationActivity.java103 int notificationId) { in createActivityIntent() argument
110 intent.putExtra(EXTRA_NOTIFICATION_ID, notificationId); in createActivityIntent()
335 int notificationId = getIntent().getIntExtra(EXTRA_NOTIFICATION_ID, 1); in cancelNotification() local
336 DialerNotificationManager.cancel(this, notificationTag, notificationId); in cancelNotification()
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java132 public void pullExternalCall(int notificationId) { in pullExternalCall() argument
134 if (info.getNotificationId() == notificationId in pullExternalCall()
402 private final int notificationId; field in ExternalCallNotifier.NotificationInfo
407 public NotificationInfo(@NonNull Call call, int notificationId) { in NotificationInfo() argument
409 this.notificationId = notificationId; in NotificationInfo()
417 return notificationId; in getNotificationId()
DNotificationBroadcastReceiver.java101 int notificationId = intent.getIntExtra(EXTRA_NOTIFICATION_ID, -1); in onReceive() local
102 InCallPresenter.getInstance().getExternalCallNotifier().pullExternalCall(notificationId); in onReceive()
/packages/apps/Car/Messenger/src/com/android/car/messenger/
DMessengerDelegate.java361 final int notificationId = notificationInfo.mNotificationId; in createNotification() local
364 PendingIntent deleteIntent = createServiceIntent(senderKey, notificationId, in createNotification()
367 List<Action> actions = getNotificationActions(senderKey, notificationId); in createNotification()
414 private PendingIntent createServiceIntent(SenderKey senderKey, int notificationId, in createServiceIntent() argument
420 return PendingIntent.getForegroundService(mContext, notificationId, intent, in createServiceIntent()
424 private List<Action> getNotificationActions(SenderKey senderKey, int notificationId) { in getNotificationActions() argument
433 PendingIntent replyIntent = createServiceIntent(senderKey, notificationId, in getNotificationActions()
451 PendingIntent markAsReadIntent = createServiceIntent(senderKey, notificationId, in getNotificationActions()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertReceiver.java88 int notificationId, boolean doPopup, int priority) { in makeBasicNotification() argument
90 context, title, summaryText, startMillis, endMillis, eventId, notificationId, in makeBasicNotification()
92 return new NotificationWrapper(n, notificationId, eventId, startMillis, endMillis, doPopup); in makeBasicNotification()
97 long eventId, int notificationId, boolean doPopup, int priority, in buildBasicNotification() argument
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.java119 public NotificationWrapper(Notification n, int notificationId, long eventId, in NotificationWrapper() argument
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DBaseNotificationDelegate.java281 int notificationId) { in buildNotificationActions() argument
289 PendingIntent replyIntent = createServiceIntent(conversationKey, notificationId, in buildNotificationActions()
306 PendingIntent markAsReadIntent = createServiceIntent(conversationKey, notificationId, in buildNotificationActions()
318 private PendingIntent createServiceIntent(ConversationKey conversationKey, int notificationId, in createServiceIntent() argument
325 return PendingIntent.getForegroundService(mContext, notificationId, intent, in createServiceIntent()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.kt712 val notificationId = mNotificationModel.unexpiredTimerNotificationId in updateNotification() constant
714 mNotificationManager.notify(notificationId, notification) in updateNotification()
737 val notificationId = mNotificationModel.missedTimerNotificationId in updateMissedNotification() constant
738 mNotificationManager.notify(notificationId, notification) in updateMissedNotification()
762 val notificationId = mNotificationModel.expiredTimerNotificationId in updateHeadsUpNotification() constant
763 mService!!.startForeground(notificationId, notification) in updateHeadsUpNotification()
DTimerModel.java755 final int notificationId = mNotificationModel.getUnexpiredTimerNotificationId(); in updateNotification() local
756 mNotificationManager.notify(notificationId, notification); in updateNotification()
779 final int notificationId = mNotificationModel.getMissedTimerNotificationId(); in updateMissedNotification() local
780 mNotificationManager.notify(notificationId, notification); in updateMissedNotification()
804 final int notificationId = mNotificationModel.getExpiredTimerNotificationId(); in updateHeadsUpNotification() local
805 mService.startForeground(notificationId, notification); in updateHeadsUpNotification()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DPbapStateMachine.java95 IObexConnectionHandler obexConnectionHandler, Handler pbapHandler, int notificationId) { in PbapStateMachine() argument
102 mNotificationId = notificationId; in PbapStateMachine()
112 IObexConnectionHandler obexConnectionHandler, Handler pbapHandler, int notificationId) { in make() argument
115 pbapHandler, notificationId); in make()
/packages/apps/Dialer/java/com/android/dialer/spam/promo/
DSpamBlockingPromoHelper.java159 int notificationId, in showSpamBlockingPromoNotification() argument
168 notificationId, in showSpamBlockingPromoNotification()
/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java102 private PendingIntent createServiceIntent(int notificationId, String action) { in createServiceIntent() argument
105 return PendingIntent.getForegroundService(mContext, notificationId, intent, in createServiceIntent()