Home
last modified time | relevance | path

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

/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/app/NotificationProvider/src/com/android/test/notificationprovider/
DRichNotificationActivity.kt67 private val notificationManager by lazy { getSystemService(NotificationManager::class.java)!! } in <lambda>() constant
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/hostsidetests/incident/apps/notificationsapp/src/com/android/server/cts/notifications/
DNotificationIncidentTestActivity.java36 NotificationManager notificationManager = in onCreate() local
38 notificationManager.createNotificationChannel( in onCreate()
50 notificationManager.notify(1, notification); in onCreate()
/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/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleForegroundService.java83 NotificationManager notificationManager = in onCreate() local
88 notificationManager.createNotificationChannel(channel); in onCreate()
116 NotificationManager notificationManager = in onDestroy() local
118 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/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/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/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/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/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/tests/tests/permission/AppThatRequestOneTimePermission/src/android/permission/cts/appthatrequestpermission/
DKeepAliveForegroundService.java57 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local
58 notificationManager.createNotificationChannel( in onStartCommand()
/cts/tests/app/app/src/android/app/stubs/
DLocalForegroundServiceLocation.java49 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local
50 notificationManager.createNotificationChannel(new NotificationChannel( in onStartCommand()
DLocalForegroundService.java76 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local
77 notificationManager.createNotificationChannel(new NotificationChannel( in onStartCommand()
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DFgService.java47 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local
48 notificationManager.createNotificationChannel(new NotificationChannel( in onStartCommand()
/cts/tests/tests/media/src/android/media/cts/
DLocalMediaProjectionService.java77 final NotificationManager notificationManager = in startForeground() local
79 notificationManager.createNotificationChannel(channel); in startForeground()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DOverlayTestService.java74 NotificationManager notificationManager = getSystemService(NotificationManager.class); in startForeground() local
75 notificationManager.createNotificationChannel( in startForeground()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DLocalMediaProjectionService.java77 final NotificationManager notificationManager = in startForeground() local
79 notificationManager.createNotificationChannel(channel); in startForeground()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DReflectorVpnService.java77 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onStartCommand() local
78 notificationManager.createNotificationChannel(new NotificationChannel( in onStartCommand()
97 NotificationManager notificationManager = getSystemService(NotificationManager.class); in onDestroy() local
98 notificationManager.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in onDestroy()
/cts/apps/NotificationBot/src/com/android/cts/robot/
DNotificationBot.java138 NotificationManager notificationManager = in testShortcutResetSetupNotification() local
140 notificationManager.createNotificationChannel(new NotificationChannel( in testShortcutResetSetupNotification()
150 notificationManager.notify(0, nb.build()); in testShortcutResetSetupNotification()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java444 final NotificationManager notificationManager = in testTypeNotificationStateChangedAccessibilityEvent() local
453 notificationManager.createNotificationChannel(channel); in testTypeNotificationStateChangedAccessibilityEvent()
455 notificationManager.getNotificationChannel(channel.getId()); in testTypeNotificationStateChangedAccessibilityEvent()
490 notificationManager in testTypeNotificationStateChangedAccessibilityEvent()
507 notificationManager.deleteNotificationChannel(channel.getId()); in testTypeNotificationStateChangedAccessibilityEvent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java157 NotificationManager notificationManager = in onStartCommand() local
159 notificationManager.createNotificationChannel(channel); in onStartCommand()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1246 final NotificationManager notificationManager = context.getSystemService( in testStartForegroundService() local
1248 notificationManager.createNotificationChannel(channel); in testStartForegroundService()
/cts/tests/app/src/android/app/cts/
DServiceTest.java487 NotificationManager notificationManager = in getNotificationManager() local
489 return notificationManager; in getNotificationManager()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java331 NotificationManager notificationManager = in onCreate() local
338 notificationManager.createNotificationChannel(mChannel); in onCreate()