Home
last modified time | relevance | path

Searched refs:mNotificationManager (Results 1 – 12 of 12) sorted by relevance

/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java126 private NotificationManager mNotificationManager; field in NotificationManagerTest
137 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
140 mNotificationManager.cancelAll(); in setUp()
141 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
156 mNotificationManager.cancelAll(); in tearDown()
159 mNotificationManager.removeAutomaticZenRule(id); in tearDown()
164 List<NotificationChannel> channels = mNotificationManager.getNotificationChannels(); in tearDown()
170 mNotificationManager.deleteNotificationChannel(nc.getId()); in tearDown()
178 List<NotificationChannelGroup> groups = mNotificationManager.getNotificationChannelGroups(); in tearDown()
181 mNotificationManager.deleteNotificationChannelGroup(ncg.getId()); in tearDown()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java67 private NotificationManager mNotificationManager; field in LegacyNotificationManagerTest
81 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
83 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
108 NotificationManager.Policy origPolicy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest()
117 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testPrePCannotToggleAlarmsAndMediaTest()
118 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest()
127 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy( in testPrePCannotToggleAlarmsAndMediaTest()
130 policy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest()
150 NotificationManager.Policy userPolicy = mNotificationManager.getNotificationPolicy(); in testSetNotificationPolicy_preP_setOldFields()
154 mNotificationManager.setNotificationPolicy(appPolicy); in testSetNotificationPolicy_preP_setOldFields()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/
DNotificationManager28Test.java46 private NotificationManager mNotificationManager; field in NotificationManager28Test
53 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
55 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
71 mNotificationManager.notify(id, notification); in testPostFullScreenIntent_noPermission()
84 final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); in findPostedNotification()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java46 private NotificationManager mNotificationManager; field in NotificationManager29Test
53 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
55 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
71 mNotificationManager.notify(id, notification); in testPostFullScreenIntent_noPermission()
84 final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); in findPostedNotification()
DNotificationAssistantServiceTest.java72 private NotificationManager mNotificationManager; field in NotificationAssistantServiceTest
81 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
83 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
107 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_USER_SENTIMENT); in testOnNotificationEnqueued()
143 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_USER_SENTIMENT); in testAdjustNotification_userSentimentKey()
177 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_IMPORTANCE); in testAdjustNotification_importanceKey()
210 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_CONTEXTUAL_ACTIONS); in testAdjustNotification_smartActionKey()
261 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_TEXT_REPLIES); in testAdjustNotification_smartReplyKey()
306 mNotificationManager.disallowAssistantAdjustment(Adjustment.KEY_IMPORTANCE); in testAdjustNotification_importanceKey_notAllowed()
341 mNotificationManager.getAllowedAssistantAdjustments(); in testGetAllowedAssistantCapabilities_permission()
[all …]
DTestNotificationAssistant.java35 private NotificationManager mNotificationManager; field in TestNotificationAssistant
50 mNotificationManager = getSystemService(NotificationManager.class); in onCreate()
84 currentCapabilities = mNotificationManager.getAllowedAssistantAdjustments(); in onAllowedAdjustmentsChanged()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubblesVerifierActivity.java50 private NotificationManager mNotificationManager; field in BubblesVerifierActivity
124 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
125 mNotificationManager.createNotificationChannel( in onCreate()
238 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
269 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
300 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
325 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
354 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
394 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
423 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java66 private NotificationManager mNotificationManager; field in LegacyNotificationManager20Test
77 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
79 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
150 mNotificationManager.notify(id, notification); in sendNotification()
213 final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); in checkNotificationExistence()
237 final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); in findPostedNotification()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUtils.java84 NotificationManager mNotificationManager = in showBugreportNotification() local
89 mNotificationManager.createNotificationChannel(channel); in showBugreportNotification()
98 mNotificationManager.notify(notificationId, notification); in showBugreportNotification()
DByodHelperActivity.java173 private NotificationManager mNotificationManager; field in ByodHelperActivity
196 mNotificationManager.notify(NOTIFICATION_ID, notification); in showNotification()
221 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
225 mNotificationManager.createNotificationChannel(new NotificationChannel( in onCreate()
376 mNotificationManager.cancel(NOTIFICATION_ID); in onCreate()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java69 private NotificationManager mNotificationManager; field in DevicePolicyManagerTest
97 mNotificationManager = in setUp()
1004 mNotificationManager.isNotificationPolicyAccessGranted()); in testNotificationPolicyAccess()
1007 mNotificationManager.setNotificationPolicy(new Policy(0, 0, 0, -1)); in testNotificationPolicyAccess()
1014 assertNotEquals(mNotificationManager.getNotificationPolicy(), expected); in testNotificationPolicyAccess()
1016 mNotificationManager.setNotificationPolicy(expected); in testNotificationPolicyAccess()
1017 assertEquals(mNotificationManager.getNotificationPolicy(), expected); in testNotificationPolicyAccess()
1037 mNotificationManager.setInterruptionFilter(interruptionFilter); in setInterruptionFilter()
1039 assertEquals(mNotificationManager.getCurrentInterruptionFilter(), interruptionFilter); in setInterruptionFilter()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java541 NotificationManager mNotificationManager = in testNotificationSeen() local
548 mNotificationManager.createNotificationChannel(mChannel); in testNotificationSeen()
557 mNotificationManager.notify(1, mBuilder.build()); in testNotificationSeen()