Home
last modified time | relevance | path

Searched refs:mNm (Results 1 – 10 of 10) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java115 if (mNm.isNotificationPolicyAccessGranted()) { in test()
151 String ruleId = mNm.addAutomaticZenRule(dummyRule); in test()
153 dummyRule = mNm.getAutomaticZenRule(ruleId); in test()
156 mNm.removeAutomaticZenRule(ruleId); in test()
254 id = mNm.addAutomaticZenRule(ruleToCreate); in test()
268 mNm.removeAutomaticZenRule(id); in tearDown()
287 id = mNm.addAutomaticZenRule(ruleToCreate); in test()
290 AutomaticZenRule rule = mNm.getAutomaticZenRule(id); in test()
314 mNm.removeAutomaticZenRule(id); in tearDown()
330 id = mNm.addAutomaticZenRule(createRule("BeforeUpdate", "beforeValue", in setUp()
[all …]
DNotificationListenerVerifierActivity.java195 mNm.createNotificationChannel(channel); in createChannels()
196 mNm.createNotificationChannel(noisyChannel); in createChannels()
200 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
201 mNm.deleteNotificationChannel(NOISY_NOTIFICATION_CHANNEL_ID); in deleteChannels()
236 mNm.notify(mTag1, mId1, n1); in sendNotifications()
248 mNm.notify(mTag2, mId2, n2); in sendNotifications()
261 mNm.notify(mTag3, mId3, n3); in sendNotifications()
283 mNm.notify(mTag4, mId4, n1); in sendNoisyNotification()
308 mNm.notify(mTag5, mId5, n); in sendOngoingNotification()
327 mNm.cancelAll(); in tearDown()
[all …]
DNotificationPrivacyVerifierActivity.java71 NotificationChannel channel = mNm.getNotificationChannel(NOTIFICATION_CHANNEL_ID); in getChannelVisibility()
150 mNm.createNotificationChannel(channel); in createChannels()
154 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
176 mNm.notify(tag, NOTIFICATION_ID, privateVersion); in sendNotification()
398 mNm.cancelAll(); in tearDown()
442 mNm.cancelAll(); in tearDown()
504 mNm.cancelAll(); in tearDown()
DNotificationStyleVerifierActivity.java90 mNm.createNotificationChannel(getChannel()); in setUp()
91 mNm.notify(NOTIFICATION_ID, getNotification()); in setUp()
112 mNm.cancelAll(); in tearDown()
113 mNm.deleteNotificationChannel(getChannel().getId()); in tearDown()
DNotificationDismissVerifierActivity.java65 NotificationChannel channel = mNm.getNotificationChannel(NOTIFICATION_CHANNEL_ID); in getChannelVisibility()
135 mNm.createNotificationChannel(channel); in createChannels()
139 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
168 mNm.notify(tag, NOTIFICATION_ID, privateVersion); in sendNotification()
191 mNm.cancelAll(); in tearDown()
DNotificationFullScreenIntentVerifierActivity.java73 NotificationChannel channel = mNm.getNotificationChannel(NOTIFICATION_CHANNEL_ID); in getChannelVisibility()
178 mNm.createNotificationChannel(channel); in createChannels()
182 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
223 mNm.notify(tag, NOTIFICATION_ID, fsiNotif); in sendFullScreenIntentHeadsUpNotification()
502 if (mNm.canUseFullScreenIntent() == mExpectPermission) { in test()
549 mNm.cancelAll(); in tearDown()
630 mNm.cancelAll(); in tearDown()
DInteractiveVerifierActivity.java85 protected NotificationManager mNm; field in InteractiveVerifierActivity
185 mNm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
417 mNm.cancelAll(); in run()
585 mNm.cancelAll(); in test()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java65 private NotificationManager mNm; field in ConditionProviderServiceTest
83 mNm = (NotificationManager) mContext.getSystemService( in setUp()
87 () -> mNm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_ALL), in setUp()
94 if (mNm != null) { in tearDown()
98 if (!mNm.removeAutomaticZenRule(id)) { in tearDown()
102 assertNull(mNm.getAutomaticZenRule(id)); in tearDown()
134 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_addsNewRule()
140 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_addsNewRule()
146 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_addsNewRule()
165 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_otherConditionChanges()
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java98 private NotificationManager mNm; field in LightBarTests
269 mNm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in runInNotificationSession()
272 mNm.createNotificationChannel(channel1); in runInNotificationSession()
282 mNm.notify(NOTIFICATION_TAG, i, noti1.build()); in runInNotificationSession()
287 mNm.cancelAll(); in runInNotificationSession()
288 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in runInNotificationSession()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioManagerTest.java187 private NotificationManager mNm; field in AudioManagerTest
231 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
275 mOriginalNotificationPolicy = mNm.getNotificationPolicy(); in setUp()
276 mOriginalZen = mNm.getCurrentInterruptionFilter(); in setUp()
312 mNm.setNotificationPolicy(mOriginalNotificationPolicy); in tearDown()
317 Map<String, AutomaticZenRule> rules = mNm.getAutomaticZenRules(); in tearDown()
319 mNm.removeAutomaticZenRule(ruleId); in tearDown()
1559 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0 , 0)); in testSetStreamVolumeInPriorityOnlyMode()
1594 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testAdjustVolumeInPriorityOnly()
1639 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testPriorityOnlyMuteAll()
[all …]