Home
last modified time | relevance | path

Searched refs:notificationManager (Results 1 – 25 of 70) sorted by relevance

123

/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DNotificationUtils.java85 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/
DSendNotification.java56 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/
DCVE_2022_20482.java55 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()
DCVE_2023_21143.java71 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()
DCVE_2023_21087.java48 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/
DNotificationManagerApi34Test.kt41 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/
DRichNotificationActivity.kt67 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/
DFocusLossPreventionService.java29 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/
DUtils.kt26 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/
DUtils.kt26 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/
DStatsdCtsForegroundService.java87 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/
DNotificationGenerator.java51 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/
DDeviceTest.java70 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/
DPocService.java55 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/
DDeviceTest.java73 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/
DDeviceTest.java117 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/
DDeviceTest.java110 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/
DConnectivityForegroundService.java38 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/
DDeviceTest.java101 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/
DDialerShowsHunOnIncomingCallActivity.java62 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/
DDeviceTest.java143 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/
DDeviceTest.java140 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/
DPocService.java43 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/
DTestService.java46 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/
DPartialWakeLockService.java43 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onCreate() local
46 notificationManager.createNotificationChannel(channel); in onCreate()

123