Home
last modified time | relevance | path

Searched refs:NOTIFICATION_CHANNEL_ID (Results 1 – 17 of 17) sorted by relevance

/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdCtsForegroundService.java38 private static final String NOTIFICATION_CHANNEL_ID = "Foreground Service"; field in StatsdCtsForegroundService
89 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
90 NOTIFICATION_CHANNEL_ID, in onCreate()
98 Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
122 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app2/src/com/android/cts/netpolicy/hostside/app2/
DMyForegroundService.java40 private static final String NOTIFICATION_CHANNEL_ID = "cts/MyForegroundService"; field in MyForegroundService
54 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand()
59 startForeground(42, new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
DMyService.java50 private static final String NOTIFICATION_CHANNEL_ID = "MyService"; field in MyService
95 MyBroadcastReceiver.sendNotification(getApplicationContext(), NOTIFICATION_CHANNEL_ID,
182 .createNotificationChannel(new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
183 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_DEFAULT)); in onCreate()
192 .deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DSampleCustomInputService.java53 private static final String NOTIFICATION_CHANNEL_ID = field in SampleCustomInputService
62 createNotificationChannelId(this, NOTIFICATION_CHANNEL_ID); in onCreate()
77 Notification status = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
94 NOTIFICATION_CHANNEL_ID, channelName, importance); in createNotificationChannelId()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DPickerSyncNotificationHelper.java40 static final String NOTIFICATION_CHANNEL_ID = "PhotoPickerSyncChannel"; field in PickerSyncNotificationHelper
56 NOTIFICATION_CHANNEL_ID, contentTitle, NotificationManager.IMPORTANCE_LOW); in createNotificationChannel()
88 return new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID) in getNotification()
/packages/apps/Settings/src/com/android/settings/development/
DPageAgnosticNotificationService.java35 private static final String NOTIFICATION_CHANNEL_ID = field in PageAgnosticNotificationService
53 NOTIFICATION_CHANNEL_ID, in createNotificationChannel()
100 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in buildNotification()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetySourceReceiver.kt87 NOTIFICATION_CHANNEL_ID, in onBind()
88 NOTIFICATION_CHANNEL_ID, in onBind()
94 Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onBind()
121 private const val NOTIFICATION_CHANNEL_ID: String = "NOTIFICATION_CHANNEL_ID" constant
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DScreenshotService.java50 private static final String NOTIFICATION_CHANNEL_ID = "BUGREPORT_SCREENSHOT_CHANNEL"; field in ScreenshotService
93 NotificationChannel serviceChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in buildNotification()
99 return new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in buildNotification()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarHeadsUpNotificationQueue.java55 private static final String NOTIFICATION_CHANNEL_ID = "HUN_QUEUE_CHANNEL_ID"; field in CarHeadsUpNotificationQueue
154 NOTIFICATION_CHANNEL_ID, notificationChannelName, in CarHeadsUpNotificationQueue()
291 .Builder(mContext, NOTIFICATION_CHANNEL_ID) in getUserNotificationForExpiredHun()
330 mNotificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in unregisterListeners()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DUpdateLayoutFragment.java61 private static final String NOTIFICATION_CHANNEL_ID = "update"; field in UpdateLayoutFragment
108 NOTIFICATION_CHANNEL_ID, in onCreate()
284 return new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in createNotification()
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DConsentNotificationTriggerTest.java112 private static final String NOTIFICATION_CHANNEL_ID = "PRIVACY_SANDBOX_CHANNEL"; field in ConsentNotificationTriggerTest
187 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testEuNotification_gaUxFlagEnabled()
257 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testNonEuNotifications_gaUxEnabled()
301 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testEuNotifications_gaUxEnabled_nonDismissable()
386 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testEuNotifications_gaUxEnabled_nonDismissable_dismissedOnConfirmationPage()
540 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testRvcUxNotification()
663 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testRvcPostOtaNotification()
755 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testPasNotifications_PasUxEnabled_FirstNotice()
810 assertThat(notification.getChannelId()).isEqualTo(NOTIFICATION_CHANNEL_ID); in testPasNotifications_PasUxEnabled_RenotifyNotice()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DProactiveSyncWorkerTest.java19 … com.android.providers.media.photopicker.sync.PickerSyncNotificationHelper.NOTIFICATION_CHANNEL_ID;
242 .isEqualTo(NOTIFICATION_CHANNEL_ID); in testGetForegroundInfo()
DImmediateSyncWorkerTest.java19 … com.android.providers.media.photopicker.sync.PickerSyncNotificationHelper.NOTIFICATION_CHANNEL_ID;
246 .isEqualTo(NOTIFICATION_CHANNEL_ID); in testGetForegroundInfo()
DImmediateAlbumSyncWorkerTest.java19 … com.android.providers.media.photopicker.sync.PickerSyncNotificationHelper.NOTIFICATION_CHANNEL_ID;
284 .isEqualTo(NOTIFICATION_CHANNEL_ID); in testGetForegroundInfo()
DMediaResetWorkerTest.java25 … com.android.providers.media.photopicker.sync.PickerSyncNotificationHelper.NOTIFICATION_CHANNEL_ID;
390 .isEqualTo(NOTIFICATION_CHANNEL_ID); in testGetForegroundInfo()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java99 static final String NOTIFICATION_CHANNEL_ID = "channel_id"; field in FileOperationService
178 NOTIFICATION_CHANNEL_ID, in setUpNotificationChannel()
DJob.java354 ? new Notification.Builder(service, FileOperationService.NOTIFICATION_CHANNEL_ID) in createNotificationBuilder()