Searched refs:applyRestrictions (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeHelperTest.java | 127 mZenModeHelperSpy.applyRestrictions(); in testZenOff_NoMuteApplied() 129 doNothing().when(mZenModeHelperSpy).applyRestrictions(anyBoolean(), anyInt()); in testZenOff_NoMuteApplied() 130 verify(mZenModeHelperSpy, atLeastOnce()).applyRestrictions(false, in testZenOff_NoMuteApplied() 132 verify(mZenModeHelperSpy, atLeastOnce()).applyRestrictions(false, in testZenOff_NoMuteApplied() 141 mZenModeHelperSpy.applyRestrictions(); in testZenOn_AllowAlarmsMedia_NoAlarmMediaMuteApplied() 142 verify(mZenModeHelperSpy, atLeastOnce()).applyRestrictions(false, in testZenOn_AllowAlarmsMedia_NoAlarmMediaMuteApplied() 144 verify(mZenModeHelperSpy, atLeastOnce()).applyRestrictions(false, in testZenOn_AllowAlarmsMedia_NoAlarmMediaMuteApplied() 157 mZenModeHelperSpy.applyRestrictions(); in testZenOn_DisallowAlarmsMedia_AlarmMediaMuteApplied() 158 verify(mZenModeHelperSpy, atLeastOnce()).applyRestrictions(true, in testZenOn_DisallowAlarmsMedia_AlarmMediaMuteApplied() 162 verify(mZenModeHelperSpy, atLeastOnce()).applyRestrictions(true, in testZenOn_DisallowAlarmsMedia_AlarmMediaMuteApplied() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 248 applyRestrictions(); in setSuppressedEffects() 763 applyRestrictions(); // evaluateZenMode will also apply restrictions if changed in applyConfig() 801 applyRestrictions(); in evaluateZenMode() 845 protected void applyRestrictions() { in applyRestrictions() method in ZenModeHelper 870 applyRestrictions(false /*mute*/, usage); in applyRestrictions() 872 applyRestrictions(muteNotifications || muteEverything, usage); in applyRestrictions() 874 applyRestrictions(muteCalls || muteEverything, usage); in applyRestrictions() 876 applyRestrictions(muteAlarms || muteEverything, usage); in applyRestrictions() 878 applyRestrictions(muteMedia || muteEverything, usage); in applyRestrictions() 882 applyRestrictions(muteSystem || muteEverything, usage, in applyRestrictions() [all …]
|