Home
last modified time | relevance | path

Searched refs:NOTIFICATION_ID (Results 1 – 25 of 48) sorted by relevance

12

/aosp12/packages/services/Car/service/src/com/android/car/admin/
H A DNewUserDisclaimerActivity.java42 private static final int NOTIFICATION_ID = field in NewUserDisclaimerActivity
96 Slog.d(TAG, "Showing new managed notification (id " + NOTIFICATION_ID + " on user " in showNotification()
99 context.getSystemService(NotificationManager.class).notify(NOTIFICATION_ID, notification); in showNotification()
104 Slog.d(TAG, "Canceling notification " + NOTIFICATION_ID + " for user " in cancelNotification()
107 context.getSystemService(NotificationManager.class).cancel(NOTIFICATION_ID); in cancelNotification()
113 return PendingIntent.getActivity(context, NOTIFICATION_ID, in getPendingIntent()
/aosp12/packages/apps/Car/tests/RotaryPlayground/src/com/android/car/rotaryplayground/
H A DHeadsUpNotificationFragment.java34 private static final int NOTIFICATION_ID = 1; field in HeadsUpNotificationFragment
46 v -> notificationManager.notify(NOTIFICATION_ID, createNotification())); in onCreateView()
48 v -> notificationManager.cancel(NOTIFICATION_ID)); in onCreateView()
50 v -> notificationManager.notify(NOTIFICATION_ID, createNotification())); in onCreateView()
52 v -> notificationManager.cancel(NOTIFICATION_ID)); in onCreateView()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DRemoteBugreportManager.java69 private static final int NOTIFICATION_ID = SystemMessage.NOTE_REMOTE_BUGREPORT; field in RemoteBugreportManager
108 mInjector.getNotificationManager().cancel(LOG_TAG, NOTIFICATION_ID);
166 NOTIFICATION_ID, new Intent(ACTION_BUGREPORT_SHARING_ACCEPTED), in buildNotification()
170 NOTIFICATION_ID, new Intent(ACTION_BUGREPORT_SHARING_DECLINED), in buildNotification()
205 mInjector.getNotificationManager().notifyAsUser(LOG_TAG, NOTIFICATION_ID, in requestBugreport()
245 NOTIFICATION_ID); in onBugreportFinished()
248 mInjector.getNotificationManager().notifyAsUser(LOG_TAG, NOTIFICATION_ID, in onBugreportFinished()
260 mInjector.getNotificationManager().cancel(LOG_TAG, NOTIFICATION_ID); in onBugreportFailed()
275 mInjector.getNotificationManager().notifyAsUser(LOG_TAG, NOTIFICATION_ID, in onBugreportSharingAccepted()
326 mInjector.getNotificationManager().notifyAsUser(LOG_TAG, NOTIFICATION_ID, in checkForPendingBugreportAfterBoot()
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
H A DNotificationController.java92 private static final int NOTIFICATION_ID = 0; field in NotificationController
176 noThanksIntent.putExtra(INTENT_EXTRA_ID, NOTIFICATION_ID); in showNotification()
184 activateIntent.putExtra(INTENT_EXTRA_ID, NOTIFICATION_ID); in showNotification()
191 dismissIntent.putExtra(INTENT_EXTRA_ID, NOTIFICATION_ID); in showNotification()
197 contentIntent.putExtra(INTENT_EXTRA_ID, NOTIFICATION_ID); in showNotification()
231 manager.notify(NOTIFICATION_ID, builder.build()); in showNotification()
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DBiometricNotificationUtils.java40 private static final int NOTIFICATION_ID = 1; field in BiometricNotificationUtils
128 notificationManager.notifyAsUser(notificationTag, NOTIFICATION_ID, notification, in showNotificationHelper()
138 notificationManager.cancelAsUser(RE_ENROLL_NOTIFICATION_TAG, NOTIFICATION_ID, in cancelReEnrollNotification()
148 notificationManager.cancelAsUser(BAD_CALIBRATION_NOTIFICATION_TAG, NOTIFICATION_ID, in cancelBadCalibrationNotification()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DWrongPasswordNotifier.java44 public static final int NOTIFICATION_ID = SystemMessage.NOTE_WIFI_WRONG_PASSWORD; field in WrongPasswordNotifier
117 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in showNotification()
128 mNotificationManager.cancel(NOTIFICATION_ID); in dismissNotification()
H A DEapFailureNotifier.java49 public static final int NOTIFICATION_ID = SystemMessage.NOTE_WIFI_EAP_FAILURE; field in EapFailureNotifier
80 if ((activeNotification.getId() == NOTIFICATION_ID) in onEapFailure()
117 mNotificationManager.notify(NOTIFICATION_ID, in showNotification()
/aosp12/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
H A DSimpleFgService.java35 private static final int NOTIFICATION_ID = 1; field in SimpleFgService
52 startForeground(NOTIFICATION_ID, mNotification);
83 startForeground(NOTIFICATION_ID, mNotification); in onStartCommand()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/notification/
H A DInCallNotificationController.java51 private static final int NOTIFICATION_ID = 20181105; field in InCallNotificationController
113 NOTIFICATION_ID, in showInCallNotification()
126 NOTIFICATION_ID, in showInCallNotification()
150 mNotificationManager.cancel(callId, NOTIFICATION_ID); in cancelInCallNotification()
H A DMissedCallNotificationController.java62 private static final int NOTIFICATION_ID = 20190520; field in MissedCallNotificationController
146 NOTIFICATION_ID, in showMissedCallNotification()
168 mNotificationManager.cancel(tag, NOTIFICATION_ID); in cancelMissedCallNotification()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothPairingService.java46 static final int NOTIFICATION_ID = android.R.drawable.stat_sys_data_bluetooth; field in BluetoothPairingService
109 mNm.cancel(NOTIFICATION_ID);
138 mNm.cancel(NOTIFICATION_ID); in onStartCommand()
148 mNm.cancel(NOTIFICATION_ID); in onStartCommand()
222 mNm.notify(NOTIFICATION_ID, builder.build()); in createPairingNotification()
H A DBluetoothPermissionRequest.java44 private static final int NOTIFICATION_ID = android.R.drawable.stat_sys_data_bluetooth; field in BluetoothPermissionRequest
191 notificationManager.notify(getNotificationTag(mRequestType), NOTIFICATION_ID, in onReceive() local
200 manager.cancel(getNotificationTag(mRequestType), NOTIFICATION_ID); in onReceive() local
/aosp12/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DNotificationHelper.java33 private static final int NOTIFICATION_ID = 433; // John Cage, 1952 field in NotificationHelper
151 mNoMan.cancel(NOTIFICATION_ID); in updateNotification()
155 mNoMan.cancel(NOTIFICATION_ID); in updateNotification()
232 mService.startForeground(NOTIFICATION_ID, notification); in updateNotification()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DAlertWindowNotification.java47 private static final int NOTIFICATION_ID = 0; field in AlertWindowNotification
87 mNotificationManager.cancel(mNotificationTag, NOTIFICATION_ID); in onCancelNotification()
134 mNotificationManager.notify(mNotificationTag, NOTIFICATION_ID, builder.build()); in onPostNotification()
/aosp12/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
H A DBootUsbService.java39 private static final int NOTIFICATION_ID = 1; field in BootUsbService
65 startForeground(NOTIFICATION_ID, notification); in onCreate()
/aosp12/packages/apps/TV/src/com/android/tv/audiotvservice/
H A DAudioOnlyTvService.java36 private static final int NOTIFICATION_ID = 1; field in AudioOnlyTvService
61 startForeground(NOTIFICATION_ID, new Notification()); in onStartCommand()
/aosp12/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
H A DNotificationTests.java58 public static final int NOTIFICATION_ID = 31338; field in NotificationTests
390 noMa.notify(NOTIFICATION_ID + i, n); in testCreate()
404 noMa.cancel(NOTIFICATION_ID + i); in testCreate()
439 noMa.notify(NOTIFICATION_ID + i, n2); in testCreate()
450 noMa.cancel(NOTIFICATION_ID + i); in testCreate()
474 noMa.cancel(NOTIFICATION_ID + id); in onCreate()
/aosp12/packages/apps/Dialer/java/com/android/incallui/spam/
H A DSpamCallListListener.java63 static final int NOTIFICATION_ID = 1; field in SpamCallListListener
305 context, getNotificationTagForCall(call), NOTIFICATION_ID, notificationBuilder.build()); in showNonSpamCallNotification()
423 context, getNotificationTagForCall(call), NOTIFICATION_ID, notificationBuilder.build()); in showSpamCallNotification()
454 context, call, action, getNotificationTagForCall(call), NOTIFICATION_ID); in createServicePendingIntent()
463 context, call, action, getNotificationTagForCall(call), NOTIFICATION_ID); in createActivityPendingIntent()
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/calllog/
H A DLegacyVoicemailNotifier.java49 private static final int NOTIFICATION_ID = 1; field in LegacyVoicemailNotifier
86 context, getNotificationTag(context, handle), NOTIFICATION_ID, notification); in showNotification()
175 context, getNotificationTag(context, phoneAccountHandle), NOTIFICATION_ID); in cancelNotification()
H A DVisualVoicemailNotifier.java58 static final int NOTIFICATION_ID = 1; field in VisualVoicemailNotifier
108 context, GROUP_SUMMARY_NOTIFICATION_TAG, NOTIFICATION_ID, groupSummary.build()); in showNotifications()
114 NOTIFICATION_ID, in showNotifications()
133 context, getNotificationTagForUri(voicemailUri), NOTIFICATION_ID); in cancelSingleVoicemailNotification()
/aosp12/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
H A DWritingService.java71 private static final int NOTIFICATION_ID = 100; field in WritingService
123 startForeground(NOTIFICATION_ID, notification); in onBind()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DWrongPasswordNotifierTest.java105 verify(mWifiNotificationManager).notify(eq(WrongPasswordNotifier.NOTIFICATION_ID), any()); in onWrongPasswordError()
126 verify(mWifiNotificationManager).cancel(eq(WrongPasswordNotifier.NOTIFICATION_ID)); in onNewConnectionAttemptWithPreviousWrongPasswordError()
/aosp12/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
H A DDynamicSystemInstallationService.java104 private static final int NOTIFICATION_ID = 1; field in DynamicSystemInstallationService
289 startForeground(NOTIFICATION_ID, in executeInstallCommand()
392 startForeground(NOTIFICATION_ID, in executeNotifyIfInUseCommand()
396 startForeground(NOTIFICATION_ID, in executeNotifyIfInUseCommand()
580 mNM.notify(NOTIFICATION_ID, buildNotification(status, cause, detail)); in postStatus()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DBluetoothPairingServiceTest.java96 verify(mNm).notify(eq(mBluetoothPairingService.NOTIFICATION_ID), any()); in receivePairingRequestAction_notificationShown()
110 verify(mNm).cancel(mBluetoothPairingService.NOTIFICATION_ID); in receiveDismissPairingAction_cancelPairing()
/aosp12/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
H A DUpdateLayoutFragment.java62 private static final int NOTIFICATION_ID = 1; field in UpdateLayoutFragment
157 mNotificationManager.notify(NOTIFICATION_ID, createNotification(getContext(), status)); in showStatus()
159 mNotificationManager.cancel(NOTIFICATION_ID); in showStatus()

12