Home
last modified time | relevance | path

Searched refs:defaultChannel (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java95 private NotificationChannel defaultChannel = field in NotificationRecordTest
203 defaultChannel.setSound(null, null); in testSound_default_preUpgradeUsesNotification()
209 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_preUpgradeUsesNotification()
216 defaultChannel.setSound(null, null); in testSound_custom_preUpgradeUsesNotification()
222 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_custom_preUpgradeUsesNotification()
229 defaultChannel.setSound(CUSTOM_SOUND, CUSTOM_ATTRIBUTES); in testSound_default_userLocked_preUpgrade()
230 defaultChannel.lockFields(NotificationChannel.USER_LOCKED_SOUND); in testSound_default_userLocked_preUpgrade()
236 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_default_userLocked_preUpgrade()
248 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel); in testSound_noSound_preUpgrade()
268 defaultChannel.enableVibration(false); in testVibration_default_preUpgradeUsesNotification()
[all …]
DPreferencesHelperTest.java623 final NotificationChannel defaultChannel = mHelper.getNotificationChannel(PKG_N_MR1, in testChannelXml_defaultChannelUpdatedApp_userSettings() local
626 defaultChannel.setImportance(NotificationManager.IMPORTANCE_LOW); in testChannelXml_defaultChannelUpdatedApp_userSettings()
627 mHelper.updateNotificationChannel(PKG_N_MR1, UID_N_MR1, defaultChannel, true); in testChannelXml_defaultChannelUpdatedApp_userSettings()
671 final NotificationChannel defaultChannel = mHelper.getNotificationChannel( in testChannelXml_upgradeDeletesDefaultChannel() local
673 assertTrue(defaultChannel != null); in testChannelXml_upgradeDeletesDefaultChannel()
797 NotificationChannel defaultChannel = mHelper.getNotificationChannel( in testUpdate_preUpgrade_updatesAppFields() local
800 defaultChannel.setShowBadge(false); in testUpdate_preUpgrade_updatesAppFields()
801 defaultChannel.setImportance(IMPORTANCE_NONE); in testUpdate_preUpgrade_updatesAppFields()
802 defaultChannel.setBypassDnd(true); in testUpdate_preUpgrade_updatesAppFields()
803 defaultChannel.setLockscreenVisibility(Notification.VISIBILITY_SECRET); in testUpdate_preUpgrade_updatesAppFields()
[all …]
DNotificationManagerServiceTest.java2860 NotificationChannel defaultChannel = mBinderService.getNotificationChannel( in testBumpFGImportance_noChannelChangePreOApp() local
2862 assertEquals(IMPORTANCE_UNSPECIFIED, defaultChannel.getImportance()); in testBumpFGImportance_noChannelChangePreOApp()