Home
last modified time | relevance | path

Searched refs:zenPriorityOnly (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java2186 final boolean zenPriorityOnly = mZenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in applyRestrictions()
2201 || (zenPriorityOnly && !(allowCalls || allowRepeatCallers)) in applyRestrictions()
2204 final boolean muteAlarms = zenPriorityOnly && !allowAlarms; in applyRestrictions()
2206 final boolean muteMedia = zenPriorityOnly && !allowMedia; in applyRestrictions()
2208 final boolean muteSystem = zenAlarmsOnly || (zenPriorityOnly && !allowSystem); in applyRestrictions()
2210 final boolean muteEverything = zenSilence || (zenPriorityOnly in applyRestrictions()
2216 applyRestrictions(zenPriorityOnly, false /*mute*/, usage); in applyRestrictions()
2218 applyRestrictions(zenPriorityOnly, muteNotifications || muteEverything, usage); in applyRestrictions()
2220 applyRestrictions(zenPriorityOnly, muteCalls || muteEverything, usage); in applyRestrictions()
2222 applyRestrictions(zenPriorityOnly, muteAlarms || muteEverything, usage); in applyRestrictions()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java458 private void verifyApplyRestrictions(boolean zenPriorityOnly, boolean mute, int usage) { in verifyApplyRestrictions() argument
461 eq(expectedMode), zenPriorityOnly ? notNull() : eq(null)); in verifyApplyRestrictions()
463 eq(expectedMode), zenPriorityOnly ? notNull() : eq(null)); in verifyApplyRestrictions()