/cts/tests/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 126 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/ |
D | LegacyNotificationManagerTest.java | 67 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/ |
D | NotificationManager28Test.java | 46 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/ |
D | NotificationManager29Test.java | 46 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()
|
D | NotificationAssistantServiceTest.java | 72 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 …]
|
D | TestNotificationAssistant.java | 35 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/ |
D | BubblesVerifierActivity.java | 50 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/ |
D | LegacyNotificationManager20Test.java | 66 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/ |
D | Utils.java | 84 NotificationManager mNotificationManager = in showBugreportNotification() local 89 mNotificationManager.createNotificationChannel(channel); in showBugreportNotification() 98 mNotificationManager.notify(notificationId, notification); in showBugreportNotification()
|
D | ByodHelperActivity.java | 173 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/ |
D | DevicePolicyManagerTest.java | 69 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/ |
D | UsageStatsTest.java | 541 NotificationManager mNotificationManager = in testNotificationSeen() local 548 mNotificationManager.createNotificationChannel(mChannel); in testNotificationSeen() 557 mNotificationManager.notify(1, mBuilder.build()); in testNotificationSeen()
|