Home
last modified time | relevance | path

Searched refs:NOTIFICATION_CHANNEL_ID (Results 1 – 25 of 28) 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/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/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/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,
161 .createNotificationChannel(new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
162 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_DEFAULT)); in onCreate()
171 .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/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/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/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/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/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/systemui/src/android/systemui/cts/
DLightBarTests.java60 private final String NOTIFICATION_CHANNEL_ID = "test_channel"; field in LightBarTests
77 NotificationChannel channel1 = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in testLightStatusBarIcons()
78 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_LOW); in testLightStatusBarIcons()
84 NOTIFICATION_CHANNEL_ID) in testLightStatusBarIcons()
86 .setChannelId(NOTIFICATION_CHANNEL_ID) in testLightStatusBarIcons()
100 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in testLightStatusBarIcons()
/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.java119 final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in NotificationManagerTest
142 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp()
363 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
394 builder = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendAndVerifyBubble()
941 if (NOTIFICATION_CHANNEL_ID.equals(nc.getId())) { in testGetChannels()
1399 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testNotifyWithTimeout()
1426 Notification.Builder builder = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID); in testStyle()
1443 Notification.Builder builder = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID); in testStyle_getStandardView()
1476 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testMediaStyle()
1501 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testInboxStyle()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java171 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in ByodHelperActivity
188 final Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in showNotification()
226 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onCreate()
/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/notifications/
DNotificationListenerVerifierActivity.java70 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in NotificationListenerVerifierActivity
145 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in createChannels()
146 NOTIFICATION_CHANNEL_ID, IMPORTANCE_LOW); in createChannels()
155 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
182 Notification n1 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications()
193 Notification n2 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications()
204 Notification n3 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications()
1381 Notification n1 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendMessagingNotification()
DAttentionManagementVerifierActivity.java57 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in AttentionManagementVerifierActivity
132 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in createChannels()
133 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_MIN); in createChannels()
154 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
1005 final String channelId = noisy ? NOTIFICATION_CHANNEL_ID_NOISY : NOTIFICATION_CHANNEL_ID; in sendNotifications()
1045 final String channelId = NOTIFICATION_CHANNEL_ID; in sendEventAlarmReminderNotifications()
1084 final String channelId = NOTIFICATION_CHANNEL_ID; in sendAlarmOtherMediaNotifications()
/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