/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | TestService.java | 27 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/ |
D | SimpleForegroundService.java | 38 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/ |
D | StatsdCtsForegroundService.java | 38 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/ |
D | MyForegroundService.java | 39 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()
|
D | MyService.java | 45 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/ |
D | FgService.java | 34 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/ |
D | NotificationIncidentTestActivity.java | 29 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/ |
D | LocalForegroundServiceLocation.java | 41 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()
|
D | LocalForegroundService.java | 36 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()
|
D | BubblesTestService.java | 36 private static final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in BubblesTestService 65 Notification.Builder nb = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in getNotificationForTest()
|
D | BubblesTestActivity.java | 37 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/ |
D | LocalMediaProjectionService.java | 36 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/ |
D | LocalMediaProjectionService.java | 36 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/ |
D | NotificationManager28Test.java | 45 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/ |
D | NotificationManager29Test.java | 45 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/ |
D | ReflectorVpnService.java | 49 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/ |
D | NotificationBot.java | 39 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/ |
D | LightBarTests.java | 60 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/ |
D | LegacyNotificationManager20Test.java | 65 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/ |
D | NotificationManagerTest.java | 119 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/ |
D | ByodHelperActivity.java | 171 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/ |
D | LegacyNotificationManagerTest.java | 66 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/ |
D | NotificationListenerVerifierActivity.java | 70 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()
|
D | AttentionManagementVerifierActivity.java | 57 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/ |
D | DeviceSuspendTestActivity.java | 139 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()
|