/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/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/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 | 41 private static final String NOTIFICATION_CHANNEL_ID = "MyService"; field in MyService 81 MyBroadcastReceiver .sendNotification(getApplicationContext(), NOTIFICATION_CHANNEL_ID, 95 .createNotificationChannel(new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate() 96 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_DEFAULT)); in onCreate() 103 .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/tests/app/app/src/android/app/stubs/ |
D | LocalForegroundService.java | 36 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in LocalForegroundService 57 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStart() 70 new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in onStart()
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | ReflectorVpnService.java | 48 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in ReflectorVpnService 67 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand() 69 startForeground(NOTIFICATION_ID, new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand() 85 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 62 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/apps/NotificationBot/src/com/android/cts/robot/ |
D | NotificationBot.java | 39 private static final String NOTIFICATION_CHANNEL_ID = TAG; 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/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 73 final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in NotificationManagerTest 91 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp() 426 if (NOTIFICATION_CHANNEL_ID.equals(nc.getId())) { in testGetChannels() 527 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testNotify_blockedChannel() 553 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testNotify_blockedChannelGroup() 605 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testNotifyWithTimeout() 631 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testMediaStyle() 656 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testInboxStyle() 680 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testBigTextStyle() 706 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testBigPictureStyle() [all …]
|
D | ServiceTest.java | 53 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in ServiceTest 226 Notification notification = new Notification.Builder(getContext(), NOTIFICATION_CHANNEL_ID) in sendNotification() 446 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp() 452 getNotificationManager().deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in tearDown()
|
/cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 64 final String NOTIFICATION_CHANNEL_ID = "LegacyNotificationManagerTest"; field in LegacyNotificationManagerTest 78 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp() 240 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodHelperActivity.java | 159 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in ByodHelperActivity 176 final Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in showNotification() 214 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | NotificationListenerVerifierActivity.java | 69 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in NotificationListenerVerifierActivity 138 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in createChannel() 139 NOTIFICATION_CHANNEL_ID, IMPORTANCE_LOW); in createChannel() 144 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannel() 170 Notification n1 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications() 181 Notification n2 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications() 192 Notification n3 = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotifications() 1284 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/tests/tests/media/src/android/media/cts/ |
D | AudioManagerTest.java | 1355 final String NOTIFICATION_CHANNEL_ID = "test_id"; in testPriorityOnlyChannelsCanBypassDnd() local 1362 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, "TEST", in testPriorityOnlyChannelsCanBypassDnd() 1391 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in testPriorityOnlyChannelsCanBypassDnd()
|