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.java177 mNm.createNotificationChannel(channel); in createChannels()
178 mNm.createNotificationChannel(noisyChannel); in createChannels()
182 mNm.deleteNotificationChannel(NOTIFICATION_CHANNEL_ID); in deleteChannels()
183 mNm.deleteNotificationChannel(NOISY_NOTIFICATION_CHANNEL_ID); in deleteChannels()
217 mNm.notify(mTag1, mId1, n1); in sendNotifications()
228 mNm.notify(mTag2, mId2, n2); in sendNotifications()
240 mNm.notify(mTag3, mId3, n3); in sendNotifications()
261 mNm.notify(mTag4, mId4, n1); in sendNoisyNotification()
281 mNm.cancelAll(); in tearDown()
327 mNm.notify(mTag1, mId1, builder.build()); in setUp()
[all …]
DInteractiveVerifierActivity.java76 protected NotificationManager mNm; field in InteractiveVerifierActivity
164 mNm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); in onCreate()
341 mNm.cancelAll(); in run()
509 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()
1173 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0 , 0)); in testSetStreamVolumeInPriorityOnlyMode()
1211 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testAdjustVolumeInPriorityOnly()
1253 mNm.setNotificationPolicy(new NotificationManager.Policy(0, 0, 0)); in testPriorityOnlyMuteAll()
1286 mNm.setNotificationPolicy(new NotificationManager.Policy( in testPriorityOnlyMediaAllowed()
1321 mNm.setNotificationPolicy(new NotificationManager.Policy( in testPriorityOnlySystemAllowed()
[all …]
/cts/tests/tests/media/assets/unmuxed_1500k/
D09.ts3874 �{���1�F \I �«����mNm�좙!yU?�J�!����DG��۳�a�L��D���������dg�Q�Z'�-]6�^ 2�!q�5�V�����S�…