Home
last modified time | relevance | path

Searched refs:ZEN_MODE_OFF (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/clocks/
DZenData.kt6 import android.provider.Settings.Global.ZEN_MODE_OFF
13 OFF(ZEN_MODE_OFF),
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DDoNotDisturbQuickAffordanceConfig.kt24 import android.provider.Settings.Global.ZEN_MODE_OFF in <lambda>()
133 .map { secureSettings.getInt(Settings.Secure.ZEN_DURATION, ZEN_MODE_OFF) } in <lambda>()
156 dndMode != ZEN_MODE_OFF -> { in <lambda>()
157 controller.setZen(ZEN_MODE_OFF, null, TAG) in <lambda>()
179 } else if (dndMode == ZEN_MODE_OFF) { in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DDoNotDisturbQuickAffordanceConfigTest.kt22 import android.provider.Settings.Global.ZEN_MODE_OFF
155 assertEquals(ZEN_MODE_OFF, spyZenMode.value) in onTriggered_dndModeIsNotZEN_MODE_OFF_setToZEN_MODE_OFF()
164 whenever(zenModeController.zen).thenReturn(ZEN_MODE_OFF) in onTriggered_dndModeIsZEN_MODE_OFF_settingFOREVER_setZenWithoutCondition()
189 whenever(zenModeController.zen).thenReturn(ZEN_MODE_OFF) in onTriggered_dndZEN_MODE_OFF_settingNotFOREVERorPROMPT_zenWithCondition()
215 whenever(zenModeController.zen).thenReturn(ZEN_MODE_OFF) in onTriggered_dndModeIsZEN_MODE_OFF_settingIsPROMPT_showDialog()
256 whenever(zenModeController.zen).thenReturn(ZEN_MODE_OFF) in lockScreenState_dndModeStartsAsZEN_MODE_OFF_changeToNotOFF_StateVisible()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeEventLogger.java20 import static android.provider.Settings.Global.ZEN_MODE_OFF;
283 if (mNewZenMode == ZEN_MODE_OFF) { in shouldLogChanges()
297 return mPrevZenMode == ZEN_MODE_OFF || mNewZenMode == ZEN_MODE_OFF; in zenModeFlipped()
311 if (mPrevZenMode == ZEN_MODE_OFF) { in getEventId()
318 if (Flags.modesApi() && mNewZenMode == ZEN_MODE_OFF) { in getEventId()
427 if (mNewZenMode == ZEN_MODE_OFF) { in getNumRulesActive()
561 if (Flags.modesApi() && mNewZenMode == ZEN_MODE_OFF) { in getDNDPolicyProto()
DZenModeHelper.java616 if (zenMode == Global.ZEN_MODE_OFF) { in applyGlobalZenModeAsImplicitZenRule()
1213 azr.getInterruptionFilter(), Global.ZEN_MODE_OFF); in populateZenRule()
1252 azr.getInterruptionFilter(), Global.ZEN_MODE_OFF); in populateZenRule()
1538 zenMode == Global.ZEN_MODE_OFF ? STATE_FALSE : STATE_TRUE, in setManualZenMode()
1540 if (zenMode == Global.ZEN_MODE_OFF && origin != UPDATE_ORIGIN_USER) { in setManualZenMode()
1550 if (zenMode == Global.ZEN_MODE_OFF) { in setManualZenMode()
1971 return Global.getInt(mContext.getContentResolver(), Global.ZEN_MODE, Global.ZEN_MODE_OFF); in getZenModeSetting()
2028 if (mConfig == null) return Global.ZEN_MODE_OFF; in computeZenMode()
2030 int zen = Global.ZEN_MODE_OFF; in computeZenMode()
2104 if (!Flags.modesApi() || automaticRule.zenMode != Global.ZEN_MODE_OFF) { in updateAndApplyConsolidatedPolicyAndDeviceEffects()
[all …]
DZenModeFiltering.java19 import static android.provider.Settings.Global.ZEN_MODE_OFF;
167 if (zen == ZEN_MODE_OFF) { in shouldIntercept()
DZenLog.java214 case Global.ZEN_MODE_OFF: return "off"; in zenModeToString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DDndTileTest.kt25 import android.provider.Settings.Global.ZEN_MODE_OFF
191 whenever(zenModeController.zen).thenReturn(ZEN_MODE_OFF) in testLaunchDialogFromViewWhenPrompt()
204 whenever(zenModeController.zen).thenReturn(ZEN_MODE_OFF) in testNoLaunchDialogWhenNotPrompt()
218 whenever(zenModeController.zen).thenReturn(ZEN_MODE_OFF) in testIcon_whenDndModeOff_isOffState()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/data/model/
DZenMode.kt36 Global.ZEN_MODE_OFF,
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/statusbar/notification/data/repository/
DNotificationsSoundPolicyRepositoryTest.kt93 `when`(notificationManager.zenMode).thenReturn(Global.ZEN_MODE_OFF) in zenModeChanges_repositoryEmits()
103 listOf(null, ZenMode(Global.ZEN_MODE_OFF), ZenMode(Global.ZEN_MODE_ALARMS)) in zenModeChanges_repositoryEmits()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDndTile.java20 import static android.provider.Settings.Global.ZEN_MODE_OFF;
153 mController.setZen(ZEN_MODE_OFF, null, TAG); in handleClick()
239 final boolean newValue = zen != ZEN_MODE_OFF; in handleUpdateState()
248 zen != Global.ZEN_MODE_OFF, mController.getConfig(), false)); in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/domain/interactor/
DZenModeInteractorTest.kt64 repository.zenMode.value = Settings.Global.ZEN_MODE_OFF in create()
132 repository.zenMode.value = Settings.Global.ZEN_MODE_OFF in testAreNotificationsHiddenInShade_zenOffShadeSuppressed()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/data/repository/
DFakeZenModeRepository.kt29 override val zenMode: MutableStateFlow<Int> = MutableStateFlow(Settings.Global.ZEN_MODE_OFF)
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/domain/interactor/
DNotificationsSoundPolicyInteractorTest.kt64 notificationsSoundPolicyRepository.updateZenMode(ZenMode(Global.ZEN_MODE_OFF)) in <lambda>()
87 notificationsSoundPolicyRepository.updateZenMode(ZenMode(Global.ZEN_MODE_OFF)) in <lambda>()
186 notificationsSoundPolicyRepository.updateZenMode(ZenMode(Global.ZEN_MODE_OFF)) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java311 ZEN_MODE_OFF(335), enumConstant
329 case Global.ZEN_MODE_OFF: return ZEN_MODE_OFF; in fromZenMode()
542 case Global.ZEN_MODE_OFF: return "off"; in zenModeToString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/domain/interactor/
DZenModeInteractor.kt39 Settings.Global.ZEN_MODE_OFF -> false in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/data/repository/
DFakeNotificationsSoundPolicyRepository.kt32 private val mutableZenMode = MutableStateFlow<ZenMode?>(ZenMode(Settings.Global.ZEN_MODE_OFF))
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DZenModeControllerImplTest.java108 mController.updateZenMode(Settings.Global.ZEN_MODE_OFF); in testAreNotificationsHiddenInShade_zenOffShadeSuppressed()
183 mGlobalSettings.putInt(Settings.Global.ZEN_MODE, Settings.Global.ZEN_MODE_OFF); in testCallbackRemovedWhileDispatching_doesntCrash()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java53 import static android.provider.Settings.Global.ZEN_MODE_OFF;
468 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in testZenOff_NoMuteApplied()
700 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in testTotalSilence_consolidatedPolicyDisallowsAll()
734 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia()
833 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted()
913 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in applyZenToRingerMode_ZEN_MODE_IMPORTANT_INTERRUPTIONS()
937 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartSilent()
971 mZenModeHelper.mZenMode = ZEN_MODE_OFF; in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_RingerChanges()
986 mZenModeHelper.setManualZenMode(ZEN_MODE_OFF, Uri.EMPTY, in testSilentRingerSavedInZenOff_startsZenOff()
1011 mZenModeHelper.setManualZenMode(ZEN_MODE_OFF, Uri.EMPTY, in testSilentRingerSavedOnZenOff_startsZenOn()
[all …]
DZenModeFilteringTest.java33 import static android.provider.Settings.Global.ZEN_MODE_OFF;
239 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_OFF, policy, r)); in testSuppressAnything_yes_ZenModeOff()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarViewControllerTest.java295 Settings.Global.ZEN_MODE_OFF); in testOnViewAttachedHidesPriorityModeIconWhenDisabled()
381 .thenReturn(Settings.Global.ZEN_MODE_OFF); in testPriorityModeIconHiddenWhenZenModeDisabled()
387 callbackCapture.getValue().onZenChanged(Settings.Global.ZEN_MODE_OFF); in testPriorityModeIconHiddenWhenZenModeDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java167 return mGlobalSettings.getInt(Global.ZEN_MODE, /* default */ Global.ZEN_MODE_OFF); in getModeSettingValueFromProvider()
178 if (mZenMode != Global.ZEN_MODE_OFF) { in areNotificationsHiddenInShade()
/frameworks/proto_logging/stats/enums/dnd/
Ddnd_enums.proto28 ZEN_MODE_OFF = 0; enumerator
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarViewController.java326 mZenModeController.getZen() != Settings.Global.ZEN_MODE_OFF, in updatePriorityModeStatusIcon()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DNotifierTest.java344 : Settings.Global.ZEN_MODE_OFF); in enableChargingFeedback()

12