Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java215 private NotificationManager mNotificationManager; field in NotificationManagerTest
235 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
239 mNotificationManager.cancelAll(); in setUp()
242 0, mNotificationManager.getActiveNotifications().length); in setUp()
244 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
257 mNotificationManager.setInterruptionFilter(INTERRUPTION_FILTER_ALL); in setUp()
281 mNotificationManager.cancelAll(); in tearDown()
283 mNotificationManager.removeAutomaticZenRule(id); in tearDown()
288 List<NotificationChannel> channels = mNotificationManager.getNotificationChannels(); in tearDown()
294 mNotificationManager.deleteNotificationChannel(nc.getId()); in tearDown()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java60 private NotificationManager mNotificationManager; field in NotificationManager29Test
67 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
69 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
112 final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); in findPostedNotification()
148 mNotificationManager.notify(id, notification); in testPostFullScreenIntent_noPermission()
161 NotificationManager.Policy origPolicy = mNotificationManager.getNotificationPolicy(); in testApi29CannotToggleConversationsTest()
166 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy( in testApi29CannotToggleConversationsTest()
168 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in testApi29CannotToggleConversationsTest()
173 mNotificationManager.setNotificationPolicy(origPolicy); in testApi29CannotToggleConversationsTest()
185 NotificationManager.Policy origPolicy = mNotificationManager.getNotificationPolicy(); in testApi29CannotToggleConversationsOffTest()
[all …]
DNotificationAssistantServiceTest.java78 private NotificationManager mNotificationManager; field in NotificationAssistantServiceTest
91 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
93 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
114 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_USER_SENTIMENT); in testOnNotificationEnqueued()
149 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_USER_SENTIMENT); in testAdjustNotification_userSentimentKey()
180 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_IMPORTANCE); in testAdjustNotification_importanceKey()
211 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_RANKING_SCORE); in testAdjustNotifications_rankingScoreKey()
257 mNotificationManager.disallowAssistantAdjustment(Adjustment.KEY_RANKING_SCORE); in testAdjustNotifications_rankingScoreKey()
267 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_CONTEXTUAL_ACTIONS); in testAdjustNotification_smartActionKey()
315 mNotificationManager.allowAssistantAdjustment(Adjustment.KEY_TEXT_REPLIES); in testAdjustNotification_smartReplyKey()
[all …]
DTestNotificationAssistant.java45 private NotificationManager mNotificationManager; field in TestNotificationAssistant
60 mNotificationManager = getSystemService(NotificationManager.class); in onCreate()
105 currentCapabilities = mNotificationManager.getAllowedAssistantAdjustments(); in onAllowedAdjustmentsChanged()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java69 private NotificationManager mNotificationManager; field in LegacyNotificationManagerTest
82 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
84 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
105 NotificationManager.Policy origPolicy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest()
114 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testPrePCannotToggleAlarmsAndMediaTest()
115 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest()
124 mNotificationManager.setNotificationPolicy(new NotificationManager.Policy( in testPrePCannotToggleAlarmsAndMediaTest()
127 policy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest()
144 NotificationManager.Policy userPolicy = mNotificationManager.getNotificationPolicy(); in testSetNotificationPolicy_preP_setOldFields()
148 mNotificationManager.setNotificationPolicy(appPolicy); in testSetNotificationPolicy_preP_setOldFields()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubblesVerifierActivity.java77 private NotificationManager mNotificationManager; field in BubblesVerifierActivity
202 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
203 mNotificationManager.createNotificationChannel( in onCreate()
318 mNotificationManager.cancelAll(); in updateViewForCompletionSummary()
340 return mNotificationManager.getBubblePreference() == BUBBLE_PREFERENCE_NONE in verify()
341 && mNotificationManager.areBubblesEnabled(); in verify()
366 mNotificationManager.notify(NOTIFICATION_ID, builder.build()); in performTestAction()
389 return mNotificationManager.getBubblePreference() in verify()
427 return !mNotificationManager.areBubblesEnabled(); in verify()
467 return mNotificationManager.getBubblePreference() == BUBBLE_PREFERENCE_ALL in verify()
[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/app/src/android/app/cts/android/app/cts/tools/
DNotificationHelper.java32 private final NotificationManager mNotificationManager; field in NotificationHelper
37 mNotificationManager = mContext.getSystemService(NotificationManager.class); in NotificationHelper()
76 return mNotificationManager.getActiveNotifications(); in getActiveNotifications()
/cts/tests/app/NotificationTrampolineBase/src/com/android/test/notificationtrampoline/
DNotificationTrampolineTestService.java67 private NotificationManager mNotificationManager; field in NotificationTrampolineTestService
75 mNotificationManager = getSystemService(NotificationManager.class); in onCreate()
97 mNotificationManager.cancel(notificationId); in onDestroy()
136 .of(mNotificationManager.getActiveNotifications()) in handleMessage()
173 mNotificationManager.createNotificationChannel(notificationChannel); in postNotification()
174 mNotificationManager.notify(notificationId, notification); in postNotification()
/cts/tests/app/src/android/app/people/cts/
DPeopleManagerTest.java66 private NotificationManager mNotificationManager; field in PeopleManagerTest
77 mNotificationManager = mContext.getSystemService(NotificationManager.class); in setUp()
83 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
88 mNotificationManager.createNotificationChannel(personChannel); in setUp()
90 mNotificationManager.notify(177, getConversationNotification().build()); in setUp()
97 mNotificationManager.cancelAll(); in tearDown()
99 List<NotificationChannel> channels = mNotificationManager.getNotificationChannels(); in tearDown()
105 mNotificationManager.deleteNotificationChannel(nc.getId()); in tearDown()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java63 private NotificationManager mNotificationManager; field in LegacyNotificationManager20Test
73 mNotificationManager = (NotificationManager) mContext.getSystemService( in setUp()
75 mNotificationManager.createNotificationChannel(new NotificationChannel( in setUp()
141 mNotificationManager.notify(id, notification); in sendNotification()
204 final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); in checkNotificationExistence()
228 final StatusBarNotification[] sbns = mNotificationManager.getActiveNotifications(); in findPostedNotification()
/cts/tests/app/shared/src/android/app/stubs/shared/
DCloseSystemDialogsTestService.java55 private NotificationManager mNotificationManager; field in CloseSystemDialogsTestService
63 mNotificationManager = getSystemService(NotificationManager.class); in onCreate()
173 mNotificationManager.createNotificationChannel(notificationChannel); in notify()
174 mNotificationManager.notify(notificationId, notification); in notify()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUtils.java85 NotificationManager mNotificationManager = in showBugreportNotification() local
90 mNotificationManager.createNotificationChannel(channel); in showBugreportNotification()
100 mNotificationManager.notify(notificationId, notification); in showBugreportNotification()
DByodHelperActivity.java178 private NotificationManager mNotificationManager; field in ByodHelperActivity
201 mNotificationManager.notify(NOTIFICATION_ID, notification); in showNotification()
226 mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
230 mNotificationManager.createNotificationChannel(new NotificationChannel( in onCreate()
357 mNotificationManager.cancel(NOTIFICATION_ID); in onCreate()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java70 private NotificationManager mNotificationManager; field in DevicePolicyManagerTest
98 mNotificationManager = in setUp()
1062 NotificationManager.Policy origPolicy = mNotificationManager.getNotificationPolicy(); in testNotificationPolicyAccess()
1065 mNotificationManager.isNotificationPolicyAccessGranted()); in testNotificationPolicyAccess()
1068 mNotificationManager.setNotificationPolicy(new Policy(0, 0, 0, -1)); in testNotificationPolicyAccess()
1075 assertNotEquals(mNotificationManager.getNotificationPolicy(), expected); in testNotificationPolicyAccess()
1077 mNotificationManager.setNotificationPolicy(expected); in testNotificationPolicyAccess()
1079 NotificationManager.Policy actual = mNotificationManager.getNotificationPolicy(); in testNotificationPolicyAccess()
1087 mNotificationManager.setNotificationPolicy(origPolicy); in testNotificationPolicyAccess()
1105 mNotificationManager.setInterruptionFilter(interruptionFilter); in setInterruptionFilter()
[all …]
/cts/tests/tests/widget29/src/android/widget/cts29/
DToastTest.java80 private NotificationManager mNotificationManager; field in ToastTest
90 mNotificationManager = in setup()
93 SystemUtil.runWithShellPermissionIdentity(() -> mNotificationManager in setup()
100 SystemUtil.runWithShellPermissionIdentity(() -> mNotificationManager in teardown()
/cts/tests/tests/widget/src/android/widget/cts/
DToastTest.java116 private NotificationManager mNotificationManager; field in ToastTest
128 mNotificationManager = in setup()
131 SystemUtil.runWithShellPermissionIdentity(() -> mNotificationManager in setup()
139 SystemUtil.runWithShellPermissionIdentity(() -> mNotificationManager in teardown()
944 SystemUtil.runWithShellPermissionIdentity(() -> mNotificationManager in testRateLimitingToastsWhenInBackground()
980 SystemUtil.runWithShellPermissionIdentity(() -> mNotificationManager in testDontRateLimitToastsWhenInForeground()
1006 SystemUtil.runWithShellPermissionIdentity(() -> mNotificationManager in testAppWithUnlimitedToastsPermissionCanPostUnlimitedToasts()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowUntrustedTouchTest.java142 private NotificationManager mNotificationManager; field in WindowUntrustedTouchTest
172 mNotificationManager = mContext.getSystemService(NotificationManager.class); in setUp()
179 () -> mNotificationManager.setToastRateLimitingEnabled(false)); in setUp()
198 () -> mNotificationManager.setToastRateLimitingEnabled(true)); in tearDown()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java678 final NotificationManager mNotificationManager = in generateAndSendNotification() local
684 mNotificationManager.createNotificationChannel(mChannel); in generateAndSendNotification()
693 mNotificationManager.notify(1, mBuilder.build()); in generateAndSendNotification()