Home
last modified time | relevance | path

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

/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/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.java41 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/
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/tests/app/app/src/android/app/stubs/
DLocalForegroundService.java36 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/
DReflectorVpnService.java48 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/
DLightBarTests.java62 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/
DNotificationBot.java39 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/
DNotificationManagerTest.java73 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 …]
DServiceTest.java53 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/
DLegacyNotificationManagerTest.java64 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/
DByodHelperActivity.java159 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/
DNotificationListenerVerifierActivity.java69 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()
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/tests/tests/media/src/android/media/cts/
DAudioManagerTest.java1355 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()