Home
last modified time | relevance | path

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

12

/cts/tests/tests/app.usage/src/android/app/usage/cts/
DTestService.java27 private static final String NOTIFICATION_CHANNEL_ID = TestService.class.getSimpleName(); field in TestService
32 new NotificationChannel(NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand()
34 Notification status = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
/cts/hostsidetests/statsd/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()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java38 private static final String NOTIFICATION_CHANNEL_ID = "Foreground Service"; field in SimpleForegroundService
85 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
86 NOTIFICATION_CHANNEL_ID, in onCreate()
94 Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
118 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DFocusLossPreventionService.java16 private static final String NOTIFICATION_CHANNEL_ID = "ctsVerifier/" + TAG; field in FocusLossPreventionService
34 NOTIFICATION_CHANNEL_ID, in onStartCommand()
35 NOTIFICATION_CHANNEL_ID, in onStartCommand()
39 new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in onStartCommand()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DMyForegroundService.java39 private static final String NOTIFICATION_CHANNEL_ID = "cts/MyForegroundService"; field in MyForegroundService
53 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand()
58 startForeground(42, new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
DMyService.java45 private static final String NOTIFICATION_CHANNEL_ID = "MyService"; field in MyService
88 MyBroadcastReceiver .sendNotification(getApplicationContext(), NOTIFICATION_CHANNEL_ID,
175 .createNotificationChannel(new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
176 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_DEFAULT)); in onCreate()
185 .deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DFgService.java34 private static final String NOTIFICATION_CHANNEL_ID = "cts/shortcutmanager/FgService"; field in FgService
49 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand()
52 new Notification.Builder(getApplicationContext(), NOTIFICATION_CHANNEL_ID) in onStartCommand()
/cts/hostsidetests/incident/apps/notificationsapp/src/com/android/server/cts/notifications/
DNotificationIncidentTestActivity.java29 final String NOTIFICATION_CHANNEL_ID = "LegacyNotificationManagerTest"; field in NotificationIncidentTestActivity
40 NOTIFICATION_CHANNEL_ID, in onCreate()
45 new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in onCreate()
/cts/tests/app/app/src/android/app/stubs/
DLocalForegroundServiceLocation.java41 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in LocalForegroundServiceLocation
49 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
69 new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in onStart()
DLocalForegroundService.java36 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in LocalForegroundService
55 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
76 new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in onStart()
DBubblesTestService.java36 private static final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in BubblesTestService
65 Notification.Builder nb = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in getNotificationForTest()
DBubblesTestActivity.java37 private static final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in BubblesTestActivity
70 Notification n = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in sendBubble()
/cts/tests/tests/media/src/android/media/cts/
DLocalMediaProjectionService.java36 private static final String NOTIFICATION_CHANNEL_ID = "AudioPlaybackCaptureTest"; field in LocalMediaProjectionService
73 final NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in startForeground()
82 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID); in startForeground()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DLocalMediaProjectionService.java36 private static final String NOTIFICATION_CHANNEL_ID = "Surfacevalidator"; field in LocalMediaProjectionService
73 final NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in startForeground()
82 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID); in startForeground()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java49 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in ReflectorVpnService
72 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand()
74 startForeground(NOTIFICATION_ID, new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
90 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/
DNotificationManager28Test.java45 final String NOTIFICATION_CHANNEL_ID = "LegacyNoManTest28"; field in NotificationManager28Test
56 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp()
64 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testPostFullScreenIntent_noPermission()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java45 final String NOTIFICATION_CHANNEL_ID = "LegacyNoManTest29"; field in NotificationManager29Test
56 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp()
64 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testPostFullScreenIntent_noPermission()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java63 private final String NOTIFICATION_CHANNEL_ID = "test_channel"; field in LightBarTests
80 NotificationChannel channel1 = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in testLightStatusBarIcons()
81 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_LOW); in testLightStatusBarIcons()
87 NOTIFICATION_CHANNEL_ID) in testLightStatusBarIcons()
89 .setChannelId(NOTIFICATION_CHANNEL_ID) in testLightStatusBarIcons()
103 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in testLightStatusBarIcons()
/cts/apps/NotificationBot/src/com/android/cts/robot/
DNotificationBot.java39 private static final String NOTIFICATION_CHANNEL_ID = TAG + "_high"; field in NotificationBot
141 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in testShortcutResetSetupNotification()
143 final Notification.Builder nb = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in testShortcutResetSetupNotification()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java65 final String NOTIFICATION_CHANNEL_ID = "LegacyNotificationManagerTest"; field in LegacyNotificationManager20Test
80 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp()
142 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java121 final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in NotificationManagerTest
144 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp()
370 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
401 builder = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendAndVerifyBubble()
948 if (NOTIFICATION_CHANNEL_ID.equals(nc.getId())) { in testGetChannels()
1439 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testNotifyWithTimeout()
1466 Notification.Builder builder = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID); in testStyle()
1483 Notification.Builder builder = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID); in testStyle_getStandardView()
1516 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testMediaStyle()
1541 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testInboxStyle()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java169 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in ByodHelperActivity
186 final Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in showNotification()
224 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java71 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in NotificationListenerVerifierActivity
148 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in createChannels()
149 NOTIFICATION_CHANNEL_ID, IMPORTANCE_LOW); in createChannels()
158 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
185 Notification n1 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications()
196 Notification n2 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications()
207 Notification n3 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications()
1384 Notification n1 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendMessagingNotification()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java66 final String NOTIFICATION_CHANNEL_ID = "LegacyNotificationManagerTest"; field in LegacyNotificationManagerTest
84 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp()
345 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java139 private static final String NOTIFICATION_CHANNEL_ID = field in DeviceSuspendTestActivity.DeviceSuspendTestService
151 NOTIFICATION_CHANNEL_ID, in onStartCommand()
158 new Notification.Builder(getApplicationContext(), NOTIFICATION_CHANNEL_ID) in onStartCommand()

12