Home
last modified time | relevance | path

Searched refs:ZEN_MODE_IMPORTANT_INTERRUPTIONS (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeFilteringTest.java31 import static android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS;
198 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_VisEffectsAllowed()
208 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_WrongId()
218 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_WrongPackage()
228 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_no()
270 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testConversation_allAllowed()
288 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testConversation_importantAllowed_isImportant()
305 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testConversation_importantAllowed_isNotImportant()
322 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testConversation_noneAllowed_notCallOrMsg()
341 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testConversation_noneAllowed_callAllowed()
[all …]
DZenModeHelperTest.java51 import static android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS;
429 return getCustomAutomaticRules(ZEN_MODE_IMPORTANT_INTERRUPTIONS); in getCustomAutomaticRules()
481 mZenModeHelper.mZenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testZenOn_NotificationApplied()
502 mZenModeHelper.mZenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testZenOn_StarredCallers_CallTypesBlocked()
522 mZenModeHelper.mZenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testZenOn_AllCallers_CallTypesAllowed()
541 mZenModeHelper.mZenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testZenOn_AllowAlarmsMedia_NoAlarmMediaMuteApplied()
553 mZenModeHelper.mZenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testZenOn_DisallowAlarmsMedia_AlarmMediaMuteApplied()
631 mZenModeHelper.mZenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testZenAllCannotBypass()
654 mZenModeHelper.mZenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testApplyRestrictions_whitelist_priorityOnlyMode()
780 mZenModeHelper.setZenModeSetting(ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testZenUpgradeNotification()
[all …]
DZenModeConfigTest.java21 import static android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS;
891 config.manualRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testisManualActive_stateTrue()
925 config.manualRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testisManualActive_noState()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/
DZenData.kt4 import android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS
14 IMPORTANT_INTERRUPTIONS(ZEN_MODE_IMPORTANT_INTERRUPTIONS),
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/domain/interactor/
DZenModeInteractorTest.kt86 repository.zenMode.value = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in testIsZenModeEnabled_importantInterruptions()
120 repository.zenMode.value = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in testAreNotificationsHiddenInShade_noPolicy()
144 repository.zenMode.value = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
156 repository.zenMode.value = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/data/repository/
DZenModeRepositoryImplTest.kt67 whenever(zenModeController.zen).thenReturn(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) in <lambda>()
69 .onZenChanged(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) in <lambda>()
70 assertThat(zenMode).isEqualTo(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DZenModeControllerImplTest.java120 mController.updateZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
131 mController.updateZenMode(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testAreNotificationsHiddenInShade_zenOnShadeSuppressed()
139 Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in testModeChange()
166 Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in testModeChange_callbackNotified()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/domain/interactor/
DNotificationsSoundPolicyInteractorTest.kt226 ZenMode(Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) in <lambda>()
246 ZenMode(Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) in <lambda>()
266 ZenMode(Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) in <lambda>()
292 ZenMode(Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DDoNotDisturbQuickAffordanceConfigTest.kt21 import android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS
180 assertEquals(ZEN_MODE_IMPORTANT_INTERRUPTIONS, spyZenMode.value) in onTriggered_dndModeIsZEN_MODE_OFF_settingFOREVER_setZenWithoutCondition()
205 assertEquals(ZEN_MODE_IMPORTANT_INTERRUPTIONS, spyZenMode.value) in onTriggered_dndZEN_MODE_OFF_settingNotFOREVERorPROMPT_zenWithCondition()
263 callbackCaptor.value.onZenChanged(ZEN_MODE_IMPORTANT_INTERRUPTIONS) in lockScreenState_dndModeStartsAsZEN_MODE_OFF_changeToNotOFF_StateVisible()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DDoNotDisturbQuickAffordanceConfig.kt23 import android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in <lambda>()
166 controller.setZen(ZEN_MODE_IMPORTANT_INTERRUPTIONS, null, TAG) in <lambda>()
170 controller.setZen(ZEN_MODE_IMPORTANT_INTERRUPTIONS, conditionUri, TAG) in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/data/model/
DZenMode.kt33 Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS,
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDndTile.java176 mController.setZen(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, null, TAG); in enableZenMode()
203 mController.setZen(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, null, TAG); in enableZenMode()
208 mController.setZen(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in enableZenMode()
253 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/domain/interactor/
DZenModeInteractor.kt37 Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS -> true in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/
DEventsTest.java193 new Object[]{Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS}, in data()
197 new Object[]{Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS}, in data()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/domain/interactor/
DNotificationsSoundPolicyInteractor.kt77 Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS -> { in <lambda>()
/frameworks/proto_logging/stats/enums/dnd/
Ddnd_enums.proto29 ZEN_MODE_IMPORTANT_INTERRUPTIONS = 1; enumerator
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java330 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: return ZEN_MODE_IMPORTANT_ONLY; in fromZenMode()
543 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: return "important_interruptions"; in zenModeToString()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java682 rule.zenMode = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in applyGlobalPolicyAsImplicitZenRule()
1779 && rule.zenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in setNotificationPolicy()
2008 zen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in evaluateZenModeLocked()
2186 final boolean zenPriorityOnly = mZenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in applyRestrictions()
2274 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: in applyZenToRingerMode()
2338 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: return 1; in zenSeverity()
2450 || (mZenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in onSetRingerModeInternal()
2461 newZen = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in onSetRingerModeInternal()
2471 || (mZenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in onSetRingerModeInternal()
2510 newZen = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in onSetRingerModeExternal()
DZenModeFiltering.java115 if (zen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in matchesCallFilter()
196 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: in shouldIntercept()
DZenLog.java215 case Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS: return "important_interruptions"; in zenModeToString()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java150 Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in createDialog()
155 Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS, in createDialog()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DNotifierTest.java343 dndOn ? Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in enableChargingFeedback()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java27 import static android.provider.Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS;
410 events.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in getDefaultConfig()
425 sleeping.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in getDefaultConfig()
1150 if (!Flags.modesApi() && rt.zenMode != ZEN_MODE_IMPORTANT_INTERRUPTIONS in readRuleXml()
1154 rt.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in readRuleXml()
2818 || (zen == ZEN_MODE_IMPORTANT_INTERRUPTIONS in isZenOverridingRinger()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/
DNotificationListViewModelTest.kt262 zenModeRepository.zenMode.value = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in areNotificationsHiddenInShade_true()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarViewControllerTest.java286 Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); in testOnViewAttachedShowsPriorityModeIconWhenEnabled()

12