Home
last modified time | relevance | path

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

12

/cts/tests/app/ActivityManagerApi29Test/src/android/app/cts/
DLocationForegroundService.java27 private static final String NOTIFICATION_CHANNEL_ID = field in LocationForegroundService
36 new NotificationChannel(NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand()
38 Notification status = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
/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/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/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/
DNotificationTemplateApi30Test.kt34 val views = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
47 val views = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
61 val views = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
75 val views = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
89 val builder = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
114 val builder = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
143 val builder = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
170 val views = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
179 val views = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
199 val views = Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in <lambda>()
[all …]
/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/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
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/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/tests/appop/AppThatCanBeForcedIntoForegroundStates/src/android/app/appops/cts/appthatcanbeforcedintoforegroundstates/
DUtils.kt23 const val NOTIFICATION_CHANNEL_ID = "fgsvc" constant
28 notificationManager.createNotificationChannel(NotificationChannel(NOTIFICATION_CHANNEL_ID, in ensureNotificationChannel()
/cts/tests/tests/appop/AppForDiscreteTest/src/android/app/appops/cts/appfordiscretetest/
DUtils.kt23 const val NOTIFICATION_CHANNEL_ID = "fgsvc" constant
28 notificationManager.createNotificationChannel(NotificationChannel(NOTIFICATION_CHANNEL_ID, in ensureNotificationChannel()
/cts/tests/app/app/src/android/app/stubs/
DLocalForegroundServiceLocation.java34 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in LocalForegroundServiceLocation
43 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
62 new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in onStartCommand()
DBubblesTestService.java35 private static final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in BubblesTestService
66 Notification.Builder nb = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in getNotificationForTest()
DLocalForegroundService.java41 public static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in LocalForegroundService
70 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
94 new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in onStartCommand()
DSendBubbleActivity.java42 private static final String NOTIFICATION_CHANNEL_ID = "NotificationManagerTest"; field in SendBubbleActivity
86 Notification n = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in sendInvalidBubble()
125 Notification.Builder nb = new Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in sendBubble()
/cts/tests/tests/systemui/AudioRecorderTestApp_Base/src/android/systemui/cts/audiorecorder/base/
DBaseAudioRecorderService.java38 private static final String NOTIFICATION_CHANNEL_ID = "all"; field in BaseAudioRecorderService
100 return new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in buildNotification()
110 NOTIFICATION_CHANNEL_ID, in createChannel()
/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/app/shared/src/android/app/stubs/shared/
DCloseSystemDialogsTestService.java51 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in CloseSystemDialogsTestService
167 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in notify()
171 NotificationChannel notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in notify()
172 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_DEFAULT); in notify()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationPrivacyVerifierActivity.java53 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in NotificationPrivacyVerifierActivity
71 NotificationChannel channel = mNm.getNotificationChannel(NOTIFICATION_CHANNEL_ID); in getChannelVisibility()
146 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in createChannels()
147 NOTIFICATION_CHANNEL_ID, IMPORTANCE_DEFAULT); in createChannels()
152 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
163 Notification publicVersion = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
168 Notification privateVersion = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
233 .putExtra(EXTRA_CHANNEL_ID, NOTIFICATION_CHANNEL_ID); in getIntent()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java51 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in ReflectorVpnService
79 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in onStartCommand()
81 startForeground(NOTIFICATION_ID, new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
98 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/app/NotificationTrampolineBase/src/com/android/test/notificationtrampoline/
DNotificationTrampolineTestService.java50 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in NotificationTrampolineTestService
167 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in postNotification()
171 NotificationChannel notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in postNotification()
172 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_DEFAULT); in postNotification()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java59 final String NOTIFICATION_CHANNEL_ID = "LegacyNoManTest29"; field in NotificationManager29Test
70 NOTIFICATION_CHANNEL_ID, "name", NotificationManager.IMPORTANCE_DEFAULT)); in setUp()
141 new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in testPostFullScreenIntent_noPermission()
/cts/hostsidetests/systemui/src/android/host/systemui/
DStatsdNotificationAtomTest.java46 private static final String NOTIFICATION_CHANNEL_ID = "SystemUiCtsChannel"; field in StatsdNotificationAtomTest
96 assertThat(n.getChannelIdHash()).isEqualTo(SmallHash.hash(NOTIFICATION_CHANNEL_ID)); in testNotificationReported()

12