/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | NotificationUtils.java | 85 NotificationManager notificationManager = in updateNotificationToOngoing() local 88 notificationManager.notify(notificationId, callStyleNotification); in updateNotificationToOngoing() 97 NotificationManager notificationManager = c.getSystemService(NotificationManager.class); in clearNotification() local 98 if (notificationManager != null) { in clearNotification() 99 notificationManager.cancel(notificationId); in clearNotification() 104 NotificationManager notificationManager = c.getSystemService(NotificationManager.class); in deleteNotificationChannel() local 107 notificationManager.deleteNotificationChannel(notificationChannelId); in deleteNotificationChannel() 116 NotificationManager notificationManager = c.getSystemService(NotificationManager.class); in isTargetNotificationPosted() local 117 StatusBarNotification[] sbinArray = notificationManager.getActiveNotifications(); in isTargetNotificationPosted()
|
/cts/hostsidetests/devicepolicy/app/NotificationSender/src/com/android/cts/managedprofiletests/notificationsender/ |
D | SendNotification.java | 56 NotificationManager notificationManager = in sendNotification() local 58 notificationManager.createNotificationChannel(new NotificationChannel( in sendNotification() 60 notificationManager.notify(NOTIFICATION_ID, in sendNotification() 68 NotificationManager notificationManager = in cancelNotification() local 70 notificationManager.cancel(NOTIFICATION_ID); in cancelNotification() 71 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL); in cancelNotification()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2022_20482.java | 55 NotificationManager notificationManager = null; in testPocCVE_2022_20482() local 59 notificationManager = context.getSystemService(NotificationManager.class); in testPocCVE_2022_20482() 62 notificationChannelCount = notificationManager.getNotificationChannels().size(); in testPocCVE_2022_20482() 72 notificationManager.createNotificationChannel(notificationChannel); in testPocCVE_2022_20482() 87 notificationChannelCount = notificationManager.getNotificationChannels().size() in testPocCVE_2022_20482() 94 notificationManager.deleteNotificationChannel(id); in testPocCVE_2022_20482()
|
D | CVE_2023_21143.java | 71 NotificationManager notificationManager = in testPocCVE_2023_21143() local 73 notificationManager.createNotificationChannel(channel); in testPocCVE_2023_21143() 80 notificationManager.notify(1, notification); in testPocCVE_2023_21143() 88 notificationManager.getActiveNotifications()) { in testPocCVE_2023_21143() 100 for (StatusBarNotification sbn : notificationManager.getActiveNotifications()) { in testPocCVE_2023_21143()
|
D | CVE_2023_21087.java | 48 NotificationManager notificationManager = in testPocCVE_2023_21087() local 54 notificationManager.createNotificationChannelGroup(group); in testPocCVE_2023_21087()
|
/cts/tests/tests/notificationlegacy/notificationlegacy34/src/android/app/notification/legacy34/cts/ |
D | NotificationManagerApi34Test.kt | 41 private lateinit var notificationManager: NotificationManager variable in android.app.notification.legacy34.cts.NotificationManagerApi34Test 51 notificationManager = context.getSystemService( in setUp() 53 notificationManager.createNotificationChannel( in setUp() 65 notificationManager.cancelAll() in tearDown() 75 notificationManager.notify(id, notification) in testMediaStyle_noClearFlagNotSet() 92 notificationManager.notify(id, notification) in testCustomMediaStyle_noClearFlagNotSet()
|
/cts/tests/tests/notification/NotificationProvider/src/com/android/test/notificationprovider/ |
D | RichNotificationActivity.kt | 67 private val notificationManager by lazy { getSystemService(NotificationManager::class.java)!! } in <lambda>() constant in com.android.test.notificationprovider.RichNotificationActivity 70 notificationManager.createNotificationChannel(NotificationChannel(preset.channelId, in sendNotification() 72 notificationManager.notify(preset.id, preset.build(this)) in sendNotification() 76 notificationManager.cancel(preset.id) in cancelNotification()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | FocusLossPreventionService.java | 29 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local 31 if (notificationManager != null) { in onStartCommand() 32 notificationManager.createNotificationChannel( in onStartCommand()
|
/cts/tests/tests/appop/AppThatCanBeForcedIntoForegroundStates/src/android/app/appops/cts/appthatcanbeforcedintoforegroundstates/ |
D | Utils.kt | 26 val notificationManager = context.getSystemService(NotificationManager::class.java)!! in ensureNotificationChannel() constant 28 notificationManager.createNotificationChannel(NotificationChannel(NOTIFICATION_CHANNEL_ID, in ensureNotificationChannel()
|
/cts/tests/tests/appop/AppForDiscreteTest/src/android/app/appops/cts/appfordiscretetest/ |
D | Utils.kt | 26 val notificationManager = context.getSystemService(NotificationManager::class.java)!! in ensureNotificationChannel() constant 28 notificationManager.createNotificationChannel(NotificationChannel(NOTIFICATION_CHANNEL_ID, in ensureNotificationChannel()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | StatsdCtsForegroundService.java | 87 NotificationManager notificationManager = in onCreate() local 92 notificationManager.createNotificationChannel(channel); in onCreate() 120 NotificationManager notificationManager = in onDestroy() local 122 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
|
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | NotificationGenerator.java | 51 NotificationManager notificationManager = context.getSystemService(NotificationManager.class); in createNotification() local 52 notificationManager.createNotificationChannel(notificationChannel); in createNotification() 60 notificationManager.notify(NOTIFICATION_ID, builder.build()); in createNotification()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40120/src/android/security/cts/CVE_2023_40120/ |
D | DeviceTest.java | 70 NotificationManager notificationManager = in testPocCVE_2023_40120() local 75 notificationManager.createNotificationChannel( in testPocCVE_2023_40120() 82 notificationManager.notify( in testPocCVE_2023_40120() 100 notificationManager.getActiveNotifications(); in testPocCVE_2023_40120()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39704/src/android/security/cts/CVE_2021_39704/ |
D | PocService.java | 55 final NotificationManager notificationManager = getSystemService( in exploitBug() local 59 notificationManager.createNotificationChannelGroup( in exploitBug() 65 notificationManager.createNotificationChannel(notificationChannel); in exploitBug() 71 notificationManager.deleteNotificationChannelGroup(groupId); in exploitBug()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-31312/src/android/security/cts/CVE_2024_31312/ |
D | DeviceTest.java | 73 NotificationManager notificationManager = in testPocCVE_2024_31312() local 78 notificationManager.createNotificationChannel( in testPocCVE_2024_31312() 98 notificationManager.notify( in testPocCVE_2024_31312() 118 notificationManager.getActiveNotifications(); in testPocCVE_2024_31312()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35668/src/android/security/cts/CVE_2023_35668/ |
D | DeviceTest.java | 117 NotificationManager notificationManager = in testWearableExtenderUri() local 119 notificationManager.createNotificationChannel(notificationChannel); in testWearableExtenderUri() 124 notificationManager.notify(notificationId, callNotification); in testWearableExtenderUri() 146 notificationManager.getActiveNotifications(); in testWearableExtenderUri()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21291/src/android/security/cts/CVE_2023_21291/ |
D | DeviceTest.java | 110 NotificationManager notificationManager = in testPocCVE_2023_21291() local 115 notificationManager.createNotificationChannel( in testPocCVE_2023_21291() 123 notificationManager.notify( in testPocCVE_2023_21291() 162 notificationManager.getActiveNotifications(); in testPocCVE_2023_21291()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | ConnectivityForegroundService.java | 38 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local 39 notificationManager.createNotificationChannel( in onStartCommand()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21288/src/android/security/cts/CVE_2023_21288/ |
D | DeviceTest.java | 101 NotificationManager notificationManager = in testPocCVE_2023_21288() local 111 notificationManager.createNotificationChannel(notificationChannel); in testPocCVE_2023_21288() 114 notificationManager.notify(notificationId, notif); in testPocCVE_2023_21288() 135 notificationManager.getActiveNotifications(); in testPocCVE_2023_21288()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/dialer/ |
D | DialerShowsHunOnIncomingCallActivity.java | 62 NotificationManager notificationManager = in update() local 71 notificationManager.createNotificationChannel(channel); in update() 82 notificationManager.notify(notifyID, notification); in update()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21239/src/android/security/cts/CVE_2023_21239/ |
D | DeviceTest.java | 143 NotificationManager notificationManager = in testCallStyleNotification() local 145 notificationManager.createNotificationChannel(notificationChannel); in testCallStyleNotification() 150 notificationManager.notify(notificationId, callNotification); in testCallStyleNotification() 170 notificationManager.getActiveNotifications(); in testCallStyleNotification()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40073/src/android/security/cts/CVE_2023_40073/ |
D | DeviceTest.java | 140 NotificationManager notificationManager = in testPocCVE_2023_40073() local 148 notificationManager.createNotificationChannel(notificationChannel); in testPocCVE_2023_40073() 152 notificationManager.notify( in testPocCVE_2023_40073() 184 notificationManager.getActiveNotifications(); in testPocCVE_2023_40073()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0478/src/android/security/cts/CVE_2021_0478/ |
D | PocService.java | 43 NotificationManager notificationManager = in onCreate() local 48 notificationManager.createNotificationChannel(notificationChannel); in onCreate()
|
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/ |
D | TestService.java | 46 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local 47 notificationManager.createNotificationChannel(new NotificationChannel( in onStartCommand()
|
/cts/hostsidetests/os/test-apps/InattentiveSleepTestApp/src/android/os/inattentivesleeptests/ |
D | PartialWakeLockService.java | 43 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onCreate() local 46 notificationManager.createNotificationChannel(channel); in onCreate()
|