Home
last modified time | relevance | path

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

123

/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityForegroundService.java34 private static final String NOTIFICATION_CHANNEL_ID = "ctsVerifier/" + TAG; field in ConnectivityForegroundService
41 NOTIFICATION_CHANNEL_ID, in onStartCommand()
42 NOTIFICATION_CHANNEL_ID, in onStartCommand()
45 new Notification.Builder(getApplicationContext(), NOTIFICATION_CHANNEL_ID).build(); in onStartCommand()
/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/tests/tests/security/src/android/security/cts/
DTestForegroundService.java37 private static final String NOTIFICATION_CHANNEL_ID = field in TestForegroundService
42 createNotificationChannelId(this, NOTIFICATION_CHANNEL_ID); in onCreate()
49 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
51 .setContentTitle(NOTIFICATION_CHANNEL_ID) in onStartCommand()
76 NOTIFICATION_CHANNEL_ID, name, importance); in createNotificationChannelId()
/cts/tests/app/app/src/android/app/stubs/
DBootCompletedFgs.java43 private static final String NOTIFICATION_CHANNEL_ID = field in BootCompletedFgs
50 createNotificationChannelId(this, NOTIFICATION_CHANNEL_ID); in onCreate()
58 new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
60 .setContentTitle(NOTIFICATION_CHANNEL_ID) in onStartCommand()
92 NOTIFICATION_CHANNEL_ID, name, importance); in createNotificationChannelId()
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()
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/
DNotificationTemplateApi30Test.kt42 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
56 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
75 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
90 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
109 val builder = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
138 val builder = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
172 val builder = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
198 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
208 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
229 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
[all …]
/cts/hostsidetests/os/test-apps/InattentiveSleepTestApp/src/android/os/inattentivesleeptests/
DPartialWakeLockService.java32 private static final String NOTIFICATION_CHANNEL_ID = "Inattentive Sleep Tests"; field in PartialWakeLockService
44 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in onCreate()
45 NOTIFICATION_CHANNEL_ID, NotificationManager.IMPORTANCE_LOW); in onCreate()
58 Notification notification = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onStartCommand()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecResourceTestLowPriorityService.java31 public static final String NOTIFICATION_CHANNEL_ID = field in MediaCodecResourceTestLowPriorityService
64 NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in showNotification()
66 return new Notification.Builder(getApplicationContext(), NOTIFICATION_CHANNEL_ID) in showNotification()
/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/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/notification/src/android/app/notification/current/cts/
DNotificationTemplateTest.kt56 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
72 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
89 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
105 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
119 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
135 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
151 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
170 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
192 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
214 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>()
[all …]
/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/tests/media/common/src/android/media/cts/
DLocalMediaProjectionHelperService.java23 private static final String NOTIFICATION_CHANNEL_ID = "MediaProjectionTest"; field in LocalMediaProjectionHelperService
34 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
DLocalMediaProjectionSecondaryService.java23 private static final String NOTIFICATION_CHANNEL_ID = "AudioPlaybackCaptureTest2"; field in LocalMediaProjectionSecondaryService
34 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
/cts/tests/app/FgsTestHelper/src/android/app/fgstesthelper/
DLocalForegroundServiceAllTypes.java21 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in LocalForegroundServiceAllTypes
25 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
DLocalForegroundServiceNoType.java24 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + TAG; field in LocalForegroundServiceNoType
28 return NOTIFICATION_CHANNEL_ID; in getNotificationChannelId()
/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/tests/notificationlegacy/notificationlegacy34/src/android/app/notification/legacy34/cts/
DNotificationManagerApi34Test.kt55 NOTIFICATION_CHANNEL_ID, in setUp()
71 val notification: Notification = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in testMediaStyle_noClearFlagNotSet()
88 val notification: Notification = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in testCustomMediaStyle_noClearFlagNotSet()
105 const val NOTIFICATION_CHANNEL_ID = "NotificationManagerApi34Test" constant
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DNotificationActivity.java44 private static final String NOTIFICATION_CHANNEL_ID = field in NotificationActivity
54 NOTIFICATION_CHANNEL_ID, in onCreate()
70 Notification builder = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID) in onResume()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationDismissVerifierActivity.java52 private static final String NOTIFICATION_CHANNEL_ID = TAG; field in NotificationDismissVerifierActivity
65 NotificationChannel channel = mNm.getNotificationChannel(NOTIFICATION_CHANNEL_ID); in getChannelVisibility()
133 NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, in createChannels()
134 NOTIFICATION_CHANNEL_ID, IMPORTANCE_DEFAULT); in createChannels()
139 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
155 Notification publicVersion = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
160 Notification privateVersion = new Notification.Builder(mContext, NOTIFICATION_CHANNEL_ID) in sendNotification()
320 .putExtra(EXTRA_CHANNEL_ID, NOTIFICATION_CHANNEL_ID); in getIntent()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutHelper.java53 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + HELPER_PACKAGE; field in FgsTimeoutHelper
67 new NotificationChannel(NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in ensureNotificationChannel()
69 return NOTIFICATION_CHANNEL_ID; in ensureNotificationChannel()
/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/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsHelper.java59 private static final String NOTIFICATION_CHANNEL_ID = "cts/" + HELPER_PACKAGE; field in ShortFgsHelper
87 new NotificationChannel(NOTIFICATION_CHANNEL_ID, NOTIFICATION_CHANNEL_ID, in ensureNotificationChannel()
89 return NOTIFICATION_CHANNEL_ID; in ensureNotificationChannel()

123