Home
last modified time | relevance | path

Searched refs:canBypassDnd (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DPriorityExtractor.java46 record.setPackagePriority(record.getChannel().canBypassDnd() in process()
DPreferencesHelper.java677 boolean bypassDnd = channel.canBypassDnd(); in createNotificationChannel()
678 if (bypassDnd != existing.canBypassDnd()) { in createNotificationChannel()
724 if (channel.canBypassDnd() != mAreChannelsBypassingDnd) { in createNotificationChannel()
780 r.priority = updatedChannel.canBypassDnd() in updateNotificationChannel()
792 if (updatedChannel.canBypassDnd() != mAreChannelsBypassingDnd in updateNotificationChannel()
834 if (mAreChannelsBypassingDnd && channel.canBypassDnd()) { in deleteNotificationChannel()
1095 if (channelIsLiveLocked(r, channel) && channel.canBypassDnd()) { in getNotificationChannelsBypassingDnd()
1191 if (channelIsLiveLocked(r, channel) && channel.canBypassDnd()) { in getAppsBypassingDndCount()
1229 if (channelIsLiveLocked(r, channel) && channel.canBypassDnd()) { in updateChannelsBypassingDnd()
1393 if (original.canBypassDnd() != update.canBypassDnd()) { in lockFieldsForUpdateLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DPreferencesHelperTest.java220 assertEquals(expected.canBypassDnd(), actual.canBypassDnd()); in compareChannels()
613 assertFalse(updated.canBypassDnd()); in testChannelXml_defaultChannelLegacyApp_noUserSettings()
654 assertTrue(updated1.canBypassDnd()); in testChannelXml_upgradeCreateDefaultChannel()
905 assertFalse(savedChannel.canBypassDnd()); in testCreateChannel_CannotChangeHiddenFields()
936 assertFalse(savedChannel.canBypassDnd()); in testCreateChannel_CannotChangeHiddenFieldsAssistant()
2089 .canBypassDnd()); in testAndroidPkgCannotBypassDnd_creation()
2099 assertTrue(mHelper.getNotificationChannel(PKG_N_MR1, UID_N_MR1, "A", false).canBypassDnd()); in testDndPkgCanBypassDnd_creation()
2109 assertFalse(mHelper.getNotificationChannel(PKG_N_MR1, 1000, "A", false).canBypassDnd()); in testNormalPkgCannotBypassDnd_creation()
2122 .canBypassDnd()); in testAndroidPkgCannotBypassDnd_update()
2134 assertTrue(mHelper.getNotificationChannel(PKG_N_MR1, UID_N_MR1, "A", false).canBypassDnd()); in testDndPkgCanBypassDnd_update()
[all …]
/frameworks/base/core/java/android/app/
DNotificationChannel.java535 public boolean canBypassDnd() { in canBypassDnd() method in NotificationChannel
802 if (canBypassDnd()) { in writeXml()
873 if (canBypassDnd()) { in toJson()
/frameworks/base/api/
Dcurrent.txt5755 method public boolean canBypassDnd();