Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DVolumeDialogController.java106 public int zenMode; field in VolumeDialogController.State
122 rt.zenMode = zenMode; in copy()
157 sep(sb, indent); sb.append("zenMode:").append(zenMode); in toString()
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java103 public static void traceSetZenMode(int zenMode, String reason) { in traceSetZenMode() argument
104 append(TYPE_SET_ZEN_MODE, zenModeToString(zenMode) + "," + reason); in traceSetZenMode()
196 private static String zenModeToString(int zenMode) { in zenModeToString() argument
197 switch (zenMode) { in zenModeToString()
DZenModeHelper.java568 rule.zenMode = NotificationManager.zenModeFromInterruptionFilter( in populateZenRule()
575 NotificationManager.zenModeToInterruptionFilter(rule.zenMode), in createAutomaticZenRule()
579 public void setManualZenMode(int zenMode, Uri conditionId, String caller, String reason) { in setManualZenMode() argument
580 setManualZenMode(zenMode, conditionId, reason, caller, true /*setRingerMode*/); in setManualZenMode()
585 private void setManualZenMode(int zenMode, Uri conditionId, String reason, String caller, in setManualZenMode() argument
590 if (!Global.isValidZenMode(zenMode)) return; in setManualZenMode()
591 if (DEBUG) Log.d(TAG, "setManualZenMode " + Global.zenModeToString(zenMode) in setManualZenMode()
595 if (zenMode == Global.ZEN_MODE_OFF) { in setManualZenMode()
605 newRule.zenMode = zenMode; in setManualZenMode()
925 if (mConfig.manualRule != null) return mConfig.manualRule.zenMode; in computeZenMode()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerZenModePanel.java117 public void setZenState(int zenMode) { in setZenState() argument
118 mZenMode = zenMode; in setZenState()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java167 rule.zenMode = Settings.Global.ZEN_MODE_ALARMS; in testRuleXml()
200 assertEquals(rule.zenMode, fromXml.zenMode); in testRuleXml()
DZenModeHelperTest.java208 customRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in getCustomAutomaticRules()
722 mZenModeHelperSpy.mConfig.manualRule.zenMode = in testWriteXml()
823 customRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testWriteXmlWithZenPolicy()
868 customRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlRestoreWithZenPolicy_forSystemUser()
903 customRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlRulesNotOverriden()
1068 customRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlAllDisabledRulesResetDefaultRules()
1104 customRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlOnlyOneDefaultRuleExists()
1117 defaultScheduleRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlOnlyOneDefaultRuleExists()
1155 customRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlDefaultRulesExist()
1168 defaultScheduleRule.zenMode = Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlDefaultRulesExist()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPainting.kt75 var zenMode = true variable
149 if (zenMode) { in onAttachedToWindow()
160 if (zenMode) { in onDetachedFromWindow()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java373 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule); in isValidManualRule()
377 return rule != null && !TextUtils.isEmpty(rule.name) && Global.isValidZenMode(rule.zenMode) in isValidAutomaticRule()
639 rt.zenMode = tryParseZenMode(zen, -1); in readRuleXml()
640 if (rt.zenMode == -1) { in readRuleXml()
657 if (rt.zenMode != Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in readRuleXml()
660 rt.zenMode = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in readRuleXml()
672 out.attribute(null, RULE_ATT_ZEN, Integer.toString(rule.zenMode)); in writeRuleXml()
1642 public int zenMode; // ie: Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS field in ZenModeConfig.ZenRule
1665 zenMode = source.readInt(); in ZenRule()
1697 dest.writeInt(zenMode); in writeToParcel()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java244 private static String zenModeToString(int zenMode) { in zenModeToString() argument
245 switch (zenMode) { in zenModeToString()
DVolumeDialogImpl.java827 boolean isZenMuted = mState.zenMode == Global.ZEN_MODE_ALARMS in updateRingerH()
828 || mState.zenMode == Global.ZEN_MODE_NO_INTERRUPTIONS in updateRingerH()
829 || (mState.zenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in updateRingerH()
990 final boolean isZenPriorityOnly = mState.zenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in updateVolumeRowH()
991 final boolean isZenAlarms = mState.zenMode == Global.ZEN_MODE_ALARMS; in updateVolumeRowH()
992 final boolean isZenNone = mState.zenMode == Global.ZEN_MODE_NO_INTERRUPTIONS; in updateVolumeRowH()
DVolumeDialogControllerImpl.java603 if (mState.zenMode == zen) return false; in updateZenModeW()
604 mState.zenMode = zen; in updateZenModeW()
684 mNoMan.setZenMode(mState.zenMode, condition != null ? condition.id : null, TAG); in onSetExitConditionW()
DZenModePanel.java411 final int zen = rule != null ? rule.zenMode : Global.ZEN_MODE_OFF; in handleUpdateManualRule()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java1702 final int zenMode = Settings.Global.getInt(mContext.getContentResolver(), in checkDoNotDisturb() local
1704 if (zenMode != Settings.Global.ZEN_MODE_OFF && !opts.force) { in checkDoNotDisturb()
1708 zenMode)); in checkDoNotDisturb()
/frameworks/base/core/java/android/app/
DNotificationManager.java928 zenModeToInterruptionFilter(rule.zenMode), rule.enabled, in getAutomaticZenRules()