Home
last modified time | relevance | path

Searched refs:zenMode (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/notification/
DZenModeSliceBuilder.java103 final int zenMode; in handleUriChange() local
105 zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in handleUriChange()
107 zenMode = Settings.Global.ZEN_MODE_OFF; in handleUriChange()
109 NotificationManager.from(context).setZenMode(zenMode, null /* conditionId */, TAG); in handleUriChange()
127 final int zenMode = manager.getZenMode(); in isZenModeEnabled() local
129 switch (zenMode) { in isZenModeEnabled()
DZenModeBehaviorFooterPreferenceController.java63 isDeprecatedZenMode(config.manualRule.zenMode)) { in getFooterText()
80 automaticRule.zenMode)) { in getFooterText()
95 private boolean isDeprecatedZenMode(int zenMode) { in isDeprecatedZenMode() argument
96 switch (zenMode) { in isDeprecatedZenMode()
DZenModeSettingsBase.java93 final int zenMode = Settings.Global.getInt(getContentResolver(), Global.ZEN_MODE, mZenMode); in updateZenMode() local
94 if (zenMode == mZenMode) return; in updateZenMode()
95 mZenMode = zenMode; in updateZenMode()
DZenModeSettings.java171 int zenMode = NotificationManager.from(mContext).getZenMode(); in getSoundSummary() local
173 if (zenMode != Settings.Global.ZEN_MODE_OFF) { in getSoundSummary()
DZenModeBackend.java97 protected void setZenMode(int zenMode) { in setZenMode() argument
98 NotificationManager.from(mContext).setZenMode(zenMode, null, TAG); in setZenMode()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeSliceBuilder.java100 final int zenMode; in handleUriChange() local
102 zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in handleUriChange()
104 zenMode = Settings.Global.ZEN_MODE_OFF; in handleUriChange()
106 NotificationManager.from(context).setZenMode(zenMode, null /* conditionId */, TAG); in handleUriChange()
124 final int zenMode = manager.getZenMode(); in isZenModeEnabled() local
126 switch (zenMode) { in isZenModeEnabled()
DZenModeBehaviorFooterPreferenceController.java63 isDeprecatedZenMode(config.manualRule.zenMode)) { in getFooterText()
80 automaticRule.zenMode)) { in getFooterText()
95 private boolean isDeprecatedZenMode(int zenMode) { in isDeprecatedZenMode() argument
96 switch (zenMode) { in isDeprecatedZenMode()
DZenModeSettingsBase.java93 final int zenMode = Settings.Global.getInt(getContentResolver(), Global.ZEN_MODE, mZenMode); in updateZenMode() local
94 if (zenMode == mZenMode) return; in updateZenMode()
95 mZenMode = zenMode; in updateZenMode()
DZenModeSettings.java171 int zenMode = NotificationManager.from(mContext).getZenMode(); in getSoundSummary() local
173 if (zenMode != Settings.Global.ZEN_MODE_OFF) { in getSoundSummary()
DZenModeBackend.java97 protected void setZenMode(int zenMode) { in setZenMode() argument
98 NotificationManager.from(mContext).setZenMode(zenMode, null, TAG); in setZenMode()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeBehaviorFooterPreferenceControllerTest.java145 injectedManualRule.zenMode = ZEN_MODE_ALARMS; in deprecatedZenModeAlarms_qsManualRule_setFooterTitle()
159 injectedManualRule.zenMode = ZEN_MODE_ALARMS; in deprecatedZenModeAlarms_appManualRule_setFooterTitle()
175 injectedManualRule.zenMode = ZEN_MODE_NO_INTERRUPTIONS; in deprecatedZenModeNoInterruptions_qsManualRule_setFooterTitle()
189 injectedManualRule.zenMode = ZEN_MODE_NO_INTERRUPTIONS; in deprecatedZenModeNoInterruptions_appManualRule_setFooterTitle()
206 injectedRule.zenMode = ZEN_MODE_ALARMS; in deprecatedZenModeAlarms_automaticRule_setFooterTitle()
226 injectedRule.zenMode = ZEN_MODE_NO_INTERRUPTIONS; in deprecatedZenModeNoInterruptions_automaticRule_setFooterTitle()
DZenModeSliceBuilderTest.java83 final int zenMode = NotificationManager.from(mContext).getZenMode(); in handleUriChange_turnOn_zenModeTurnsOn() local
84 assertThat(zenMode).isEqualTo(Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS); in handleUriChange_turnOn_zenModeTurnsOn()
96 final int zenMode = NotificationManager.from(mContext).getZenMode(); in handleUriChange_turnOff_zenModeTurnsOff() local
97 assertThat(zenMode).isEqualTo(Settings.Global.ZEN_MODE_OFF); in handleUriChange_turnOff_zenModeTurnsOff()
DZenModeSettingsFooterPreferenceControllerTest.java257 injectedManualRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in injectManualRuleWithIndefiniteEnd()
266 injectedManualRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in injectManualRuleFromApp()
275 injectedManualRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in injectManualRuleWithTimeCountdown()
287 injectedRule.zenMode = ZEN_MODE_NO_INTERRUPTIONS; in injectNewAutomaticRule()