/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | Events.java | 312 static ZenModeEvent fromZenMode(int zenMode) { in fromZenMode() argument 313 switch (zenMode) { in fromZenMode() 450 final Integer zenMode = (Integer) list[0]; in logEvent() local 451 sb.append(zenModeToString(zenMode)); in logEvent() 452 sUiEventLogger.log(ZenModeEvent.fromZenMode(zenMode)); in logEvent() 512 private static String zenModeToString(int zenMode) { in zenModeToString() argument 513 switch (zenMode) { in zenModeToString()
|
D | VolumeDialogControllerImpl.java | 625 if (mState.zenMode == zen) return false; in updateZenModeW() 626 mState.zenMode = zen; in updateZenModeW() 708 mNoMan.setZenMode(mState.zenMode, condition != null ? condition.id : null, TAG); in onSetExitConditionW()
|
D | ZenModePanel.java | 415 final int zen = rule != null ? rule.zenMode : Global.ZEN_MODE_OFF; in handleUpdateManualRule()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | VolumeDialogController.java | 106 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/ |
D | ZenLog.java | 103 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()
|
D | ZenModeHelper.java | 590 rule.zenMode = NotificationManager.zenModeFromInterruptionFilter( in populateZenRule() 597 NotificationManager.zenModeToInterruptionFilter(rule.zenMode), in createAutomaticZenRule() 601 public void setManualZenMode(int zenMode, Uri conditionId, String caller, String reason) { in setManualZenMode() argument 602 setManualZenMode(zenMode, conditionId, reason, caller, true /*setRingerMode*/); in setManualZenMode() 607 private void setManualZenMode(int zenMode, Uri conditionId, String reason, String caller, in setManualZenMode() argument 612 if (!Global.isValidZenMode(zenMode)) return; in setManualZenMode() 613 if (DEBUG) Log.d(TAG, "setManualZenMode " + Global.zenModeToString(zenMode) in setManualZenMode() 617 if (zenMode == Global.ZEN_MODE_OFF) { in setManualZenMode() 627 newRule.zenMode = zenMode; in setManualZenMode() 950 if (mConfig.manualRule != null) return mConfig.manualRule.zenMode; in computeZenMode() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerZenModePanel.java | 117 public void setZenState(int zenMode) { in setZenState() argument 118 mZenMode = zenMode; in setZenState()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeHelperTest.java | 236 private ArrayMap<String, ZenModeConfig.ZenRule> getCustomAutomaticRules(int zenMode) { in getCustomAutomaticRules() argument 244 customRule.zenMode = zenMode; in getCustomAutomaticRules() 830 mZenModeHelperSpy.mConfig.manualRule.zenMode = in testWriteXml() 1027 customRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testWriteXmlWithZenPolicy() 1072 customRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlRestoreWithZenPolicy_forSystemUser() 1107 customRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlRulesNotOverriden() 1272 customRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlAllDisabledRulesResetDefaultRules() 1308 customRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlOnlyOneDefaultRuleExists() 1321 defaultScheduleRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlOnlyOneDefaultRuleExists() 1359 customRule.zenMode = ZEN_MODE_IMPORTANT_INTERRUPTIONS; in testReadXmlDefaultRulesExist() [all …]
|
D | ZenModeConfigTest.java | 197 rule.zenMode = Settings.Global.ZEN_MODE_ALARMS; in testRuleXml() 230 assertEquals(rule.zenMode, fromXml.zenMode); in testRuleXml()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Painting.kt | 75 var zenMode = true variable in com.android.egg.paint.Painting 149 if (zenMode) { in onAttachedToWindow() 160 if (zenMode) { in onDetachedFromWindow()
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeConfig.java | 390 return rule == null || Global.isValidZenMode(rule.zenMode) && sameCondition(rule); in isValidManualRule() 394 return rule != null && !TextUtils.isEmpty(rule.name) && Global.isValidZenMode(rule.zenMode) in isValidAutomaticRule() 664 rt.zenMode = tryParseZenMode(zen, -1); in readRuleXml() 665 if (rt.zenMode == -1) { in readRuleXml() 682 if (rt.zenMode != Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in readRuleXml() 685 rt.zenMode = Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS; in readRuleXml() 697 out.attribute(null, RULE_ATT_ZEN, Integer.toString(rule.zenMode)); in writeRuleXml() 1749 public int zenMode; // ie: Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS field in ZenModeConfig.ZenRule 1772 zenMode = source.readInt(); in ZenRule() 1804 dest.writeInt(zenMode); in writeToParcel() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | VibratorService.java | 1908 final int zenMode = Settings.Global.getInt(mContext.getContentResolver(), in checkDoNotDisturb() local 1910 if (zenMode != Settings.Global.ZEN_MODE_OFF && !opts.force) { in checkDoNotDisturb() 1914 zenMode)); in checkDoNotDisturb()
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 1077 zenModeToInterruptionFilter(rule.zenMode), rule.enabled, in getAutomaticZenRules()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 4540 final int zenMode = mNm.getZenMode(); in updateZenModeAffectedStreams() local 4542 if (zenMode == Settings.Global.ZEN_MODE_NO_INTERRUPTIONS) { in updateZenModeAffectedStreams() 4545 } else if (zenMode == Settings.Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in updateZenModeAffectedStreams()
|