Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java199 public void setManualZenMode(int zenMode, Uri conditionId, String reason) { in setManualZenMode() argument
200 setManualZenMode(zenMode, conditionId, reason, true /*setRingerMode*/); in setManualZenMode()
203 private void setManualZenMode(int zenMode, Uri conditionId, String reason, in setManualZenMode() argument
206 if (!Global.isValidZenMode(zenMode)) return; in setManualZenMode()
207 if (DEBUG) Log.d(TAG, "setManualZenMode " + Global.zenModeToString(zenMode) in setManualZenMode()
211 if (zenMode == Global.ZEN_MODE_OFF) { in setManualZenMode()
221 newRule.zenMode = zenMode; in setManualZenMode()
394 if (mConfig.manualRule != null) return mConfig.manualRule.zenMode; in computeZenMode()
398 if (zenSeverity(automaticRule.zenMode) > zenSeverity(zen)) { in computeZenMode()
399 zen = automaticRule.zenMode; in computeZenMode()
[all …]
DZenLog.java98 public static void traceSetZenMode(int zenMode, String reason) { in traceSetZenMode() argument
99 append(TYPE_SET_ZEN_MODE, zenModeToString(zenMode) + "," + reason); in traceSetZenMode()
174 private static String zenModeToString(int zenMode) { in zenModeToString() argument
175 switch (zenMode) { in zenModeToString()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java265 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule); in isValidManualRule()
269 return rule != null && !TextUtils.isEmpty(rule.name) && Global.isValidZenMode(rule.zenMode) in isValidAutomaticRule()
464 rt.zenMode = tryParseZenMode(zen, -1); in readRuleXml()
465 if (rt.zenMode == -1) { in readRuleXml()
481 out.attribute(null, RULE_ATT_ZEN, Integer.toString(rule.zenMode)); in writeRuleXml()
934 public int zenMode; field in ZenModeConfig.ZenRule
947 zenMode = source.readInt(); in ZenRule()
968 dest.writeInt(zenMode); in writeToParcel()
980 .append(",zenMode=").append(Global.zenModeToString(zenMode)) in toString()
1012 if (zenMode != to.zenMode) { in appendDiff()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java203 private static String zenModeToString(int zenMode) { in zenModeToString() argument
204 switch (zenMode) { in zenModeToString()
DVolumeDialogController.java436 if (mState.zenMode == zen) return false; in updateZenModeW()
437 mState.zenMode = zen; in updateZenModeW()
486 mNoMan.setZenMode(mState.zenMode, condition != null ? condition.id : null, TAG); in onSetExitConditionW()
945 public int zenMode;
958 rt.zenMode = zenMode;
987 sep(sb, indent); sb.append("zenMode:").append(zenMode);
DVolumeDialog.java639 final boolean visible = mState.zenMode != Global.ZEN_MODE_OFF; in updateFooterH()
667 final boolean isZenAlarms = mState.zenMode == Global.ZEN_MODE_ALARMS; in updateVolumeRowH()
668 final boolean isZenNone = mState.zenMode == Global.ZEN_MODE_NO_INTERRUPTIONS; in updateVolumeRowH()
669 final boolean isZenPriority = mState.zenMode == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in updateVolumeRowH()
DZenModePanel.java383 final int zen = rule != null ? rule.zenMode : Global.ZEN_MODE_OFF; in handleUpdateManualRule()