Home
last modified time | relevance | path

Searched refs:zen (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java276 private static String prefKeyForConfirmation(int zen) { in prefKeyForConfirmation() argument
277 switch (zen) { in prefKeyForConfirmation()
411 final int zen = rule != null ? rule.zenMode : Global.ZEN_MODE_OFF; in handleUpdateManualRule() local
412 handleUpdateZen(zen); in handleUpdateManualRule()
438 private void handleUpdateZen(int zen) { in handleUpdateZen() argument
439 if (mSessionZen != -1 && mSessionZen != zen) { in handleUpdateZen()
440 mSessionZen = zen; in handleUpdateZen()
442 mZenButtons.setSelectedValue(zen, false /* fromClick */); in handleUpdateZen()
448 final Object zen = mZenButtons.getSelectedValue(); in getSelectedZen() local
449 return zen != null ? (Integer) zen : defValue; in getSelectedZen()
[all …]
DVolumeDialogControllerImpl.java600 final int zen = Settings.Global.getInt(mContext.getContentResolver(), in updateZenModeW() local
602 if (mState.zenMode == zen) return false; in updateZenModeW()
603 mState.zenMode = zen; in updateZenModeW()
604 Events.writeEvent(mContext, Events.EVENT_ZEN_MODE_CHANGED, zen); in updateZenModeW()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeFiltering.java88 public static boolean matchesCallFilter(Context context, int zen, NotificationManager.Policy in matchesCallFilter() argument
91 if (zen == Global.ZEN_MODE_NO_INTERRUPTIONS) return false; // nothing gets through in matchesCallFilter()
92 if (zen == Global.ZEN_MODE_ALARMS) return false; // not an alarm in matchesCallFilter()
93 if (zen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in matchesCallFilter()
120 public boolean shouldIntercept(int zen, NotificationManager.Policy policy, in shouldIntercept() argument
123 if (zen == ZEN_MODE_OFF || isCritical(record)) { in shouldIntercept()
133 switch (zen) { in shouldIntercept()
DZenModeHelper.java877 protected void setZenModeSetting(int zen) { in setZenModeSetting() argument
878 Global.putInt(mContext.getContentResolver(), Global.ZEN_MODE, zen); in setZenModeSetting() local
879 showZenUpgradeNotification(zen); in setZenModeSetting()
900 final int zen = computeZenMode(); in evaluateZenMode() local
901 ZenLog.traceSetZenMode(zen, reason); in evaluateZenMode()
902 mZenMode = zen; in evaluateZenMode()
906 if (setRingerMode && (zen != zenBefore || (zen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in evaluateZenMode()
911 if (zen != zenBefore) { in evaluateZenMode()
926 int zen = Global.ZEN_MODE_OFF; in computeZenMode() local
929 if (zenSeverity(automaticRule.zenMode) > zenSeverity(zen)) { in computeZenMode()
[all …]
DNotificationManagerService.java3534 final int zen = NotificationManager.zenModeFromInterruptionFilter(filter, -1);
3535 if (zen == -1) throw new IllegalArgumentException("Invalid filter: " + filter);
3538 mZenModeHelper.setManualZenMode(zen, null, pkg, "setInterruptionFilter");
4458 final boolean zenOnly = filter.filtered && filter.zen;
8364 public boolean zen;
8393 filter.zen = true;
8424 return zen ? true : sbn != null
8430 return zen ? true : component != null && matches(component.getPackageName());
8435 return zen ? true : pkg != null && pkg.toLowerCase().contains(pkgFilter);
8440 return stats ? "stats" : zen ? "zen" : ('\'' + pkgFilter + '\'');
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeController.java29 void setZen(int zen, Uri conditionId, String reason); in setZen() argument
44 default void onZenChanged(int zen) {} in onZenChanged() argument
DZenModeControllerImpl.java146 public void setZen(int zen, Uri conditionId, String reason) { in setZen() argument
147 mNoMan.setZenMode(zen, conditionId, reason); in setZen()
217 private void fireZenChanged(int zen) { in fireZenChanged() argument
219 Utils.safeForeach(mCallbacks, c -> c.onZenChanged(zen)); in fireZenChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDndTile.java208 public void onZenChanged(int zen) { in handleSecondaryClick()
227 final int zen = arg instanceof Integer ? (Integer) arg : mController.getZen(); in handleUpdateState() local
228 final boolean newValue = zen != ZEN_MODE_OFF; in handleUpdateState()
237 zen != Global.ZEN_MODE_OFF, mController.getConfig(), false)); in handleUpdateState()
240 switch (zen) { in handleUpdateState()
314 public void onZenChanged(int zen) {
315 refreshState(zen);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java247 public void onZenChanged(int zen) { in onZenChanged() argument
259 int zen = mZenController.getZen(); in updateAlarm() local
260 final boolean zenNone = zen == Global.ZEN_MODE_NO_INTERRUPTIONS; in updateAlarm()
320 int zen = mZenController.getZen(); in updateVolumeZen() local
323 zenVisible = zen != Global.ZEN_MODE_OFF; in updateVolumeZen()
326 } else if (zen == Global.ZEN_MODE_NO_INTERRUPTIONS) { in updateVolumeZen()
330 } else if (zen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { in updateVolumeZen()
336 if (!ZenModeConfig.isZenOverridingRinger(zen, mZenController.getConsolidatedPolicy())) { in updateVolumeZen()
DDemoStatusIcons.java109 String zen = args.getString("zen"); in dispatchDemoCommand() local
110 if (zen != null) { in dispatchDemoCommand()
111 int iconId = zen.equals("dnd") ? R.drawable.stat_sys_dnd : 0; in dispatchDemoCommand()
DNotificationPanelView.java3060 public void onZenChanged(int zen) { in onZenChanged() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeZenModeController.java33 public void setZen(int zen, Uri conditionId, String reason) { in setZen() argument
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java638 final String zen = parser.getAttributeValue(null, RULE_ATT_ZEN); in readRuleXml() local
639 rt.zenMode = tryParseZenMode(zen, -1); in readRuleXml()
641 Slog.w(TAG, "Bad zen mode in rule xml:" + zen); in readRuleXml()
1942 public static boolean isZenOverridingRinger(int zen, Policy consolidatedPolicy) { in isZenOverridingRinger() argument
1943 return zen == Global.ZEN_MODE_NO_INTERRUPTIONS in isZenOverridingRinger()
1944 || zen == Global.ZEN_MODE_ALARMS in isZenOverridingRinger()
1945 || (zen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS in isZenOverridingRinger()
/frameworks/base/core/proto/android/service/
Dnotification.proto35 optional ZenModeProto zen = 2; field
/frameworks/base/core/java/android/app/
DNotificationManager.java2048 public static int zenModeToInterruptionFilter(int zen) { in zenModeToInterruptionFilter() argument
2049 switch (zen) { in zenModeToInterruptionFilter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java348 public void onZenChanged(int zen) { in onZenChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQuickStatusBarHeader.java469 public void onZenChanged(int zen) { in onZenChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleController.java229 public void onZenChanged(int zen) { in BubbleController()
/frameworks/base/core/proto/android/app/
Dsettings_enums.proto1491 // OPEN: Settings > Zen mode > Dialog warning about the zen access privileges being granted.
1494 // OPEN: Settings > Zen mode > Dialog warning about the zen access privileges being revoked.
1497 // OPEN: Settings > Zen mode > Dialog that picks time for zen mode.
/frameworks/base/core/proto/android/providers/settings/
Dsecure.proto552 optional Zen zen = 71; field
Dglobal.proto1048 optional Zen zen = 138; field
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto2681 // OPEN: Settings > Zen mode > Dialog warning about the zen access privileges being granted.
2684 // OPEN: Settings > Zen mode > Dialog warning about the zen access privileges being revoked.
2687 // OPEN: Settings > Zen mode > Dialog that picks time for zen mode.