Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java113 if (mNm.isNotificationPolicyAccessGranted()) { in test()
239 id = mNm.addAutomaticZenRule(ruleToCreate); in test()
253 mNm.removeAutomaticZenRule(id); in tearDown()
272 id = mNm.addAutomaticZenRule(ruleToCreate); in test()
275 AutomaticZenRule rule = mNm.getAutomaticZenRule(id); in test()
299 mNm.removeAutomaticZenRule(id); in tearDown()
315 id = mNm.addAutomaticZenRule(createRule("BeforeUpdate", "beforeValue", in setUp()
323 AutomaticZenRule updated = mNm.getAutomaticZenRule(id); in test()
329 boolean success = mNm.updateAutomaticZenRule(id, updated); in test()
330 if (success && updated.equals(mNm.getAutomaticZenRule(id))) { in test()
[all …]
DAttentionManagementVerifierActivity.java125 mNm.createNotificationChannel(channel); in createChannels()
129 mNm.createNotificationChannel(noisyChannel); in createChannels()
135 mNm.createNotificationChannel(mediaChannel); in createChannels()
141 mNm.createNotificationChannel(gameChannel); in createChannels()
145 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
146 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID_NOISY); in deleteChannels()
147 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID_MEDIA); in deleteChannels()
148 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID_GAME); in deleteChannels()
247 mNm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_NONE); in setUp()
292 mNm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_ALL); in tearDown()
[all …]
DNotificationListenerVerifierActivity.java162 mNm.createNotificationChannel(channel); in createChannels()
163 mNm.createNotificationChannel(noisyChannel); in createChannels()
167 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
168 mNm.deleteNotificationChannel(NOISY_NOTIFICATION_CHANNEL_ID); in deleteChannels()
202 mNm.notify(mTag1, mId1, n1); in sendNotifications()
213 mNm.notify(mTag2, mId2, n2); in sendNotifications()
225 mNm.notify(mTag3, mId3, n3); in sendNotifications()
246 mNm.notify(mTag4, mId4, n1); in sendNoisyNotification()
266 mNm.cancelAll(); in tearDown()
312 mNm.notify(mTag1, mId1, builder.build()); in setUp()
[all …]
DNotificationPrivacyVerifierActivity.java71 NotificationChannel channel = mNm.getNotificationChannel(NOTIFICATION_CHANNEL_ID); in getChannelVisibility()
148 mNm.createNotificationChannel(channel); in createChannels()
152 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
174 mNm.notify(tag, NOTIFICATION_ID, privateVersion); in sendNotification()
396 mNm.cancelAll(); in tearDown()
441 mNm.cancelAll(); in tearDown()
503 mNm.cancelAll(); in tearDown()
DInteractiveVerifierActivity.java75 protected NotificationManager mNm; field in InteractiveVerifierActivity
163 mNm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
361 mNm.cancelAll(); in run()
529 mNm.cancelAll(); in test()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DConditionProviderServiceTest.java61 private NotificationManager mNm; field in ConditionProviderServiceTest
74 mNm = (NotificationManager) mContext.getSystemService( in setUp()
76 mNm.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_ALL); in setUp()
86 if (mNm == null) { in tearDown()
93 if (!mNm.removeAutomaticZenRule(id)) { in tearDown()
97 assertNull(mNm.getAutomaticZenRule(id)); in tearDown()
122 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_addsNewRule()
128 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_addsNewRule()
134 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_addsNewRule()
153 assertEquals(INTERRUPTION_FILTER_ALARMS, mNm.getCurrentInterruptionFilter()); in testUnboundCPSMaintainsCondition_otherConditionChanges()
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java81 private NotificationManager mNm; field in LightBarTests
248 mNm = (NotificationManager) getInstrumentation().getContext() in runInNotificationSession()
252 mNm.createNotificationChannel(channel1); in runInNotificationSession()
263 mNm.notify(NOTIFICATION_TAG, i, noti1.build()); in runInNotificationSession()
268 mNm.cancelAll(); in runInNotificationSession()
269 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in runInNotificationSession()
/cts/tests/tests/media/src/android/media/cts/
DAudioManagerTest.java123 private NotificationManager mNm; field in AudioManagerTest
160 mNm = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); in setUp()
192 mOriginalNotificationPolicy = mNm.getNotificationPolicy(); in setUp()
193 mOriginalZen = mNm.getCurrentInterruptionFilter(); in setUp()
216 mNm.setNotificationPolicy(mOriginalNotificationPolicy); in tearDown()
1172 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0 , 0)); in testSetStreamVolumeInPriorityOnlyMode()
1210 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testAdjustVolumeInPriorityOnly()
1252 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testPriorityOnlyMuteAll()
1285 mNm.setNotificationPolicy(new NotificationManager.Policy( in testPriorityOnlyMediaAllowed()
1320 mNm.setNotificationPolicy(new NotificationManager.Policy( in testPriorityOnlySystemAllowed()
[all …]