/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | ZenModePanel.java | 276 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 …]
|
D | VolumeDialogControllerImpl.java | 601 final int zen = Settings.Global.getInt(mContext.getContentResolver(), in updateZenModeW() local 603 if (mState.zenMode == zen) return false; in updateZenModeW() 604 mState.zenMode = zen; in updateZenModeW() 605 Events.writeEvent(mContext, Events.EVENT_ZEN_MODE_CHANGED, zen); in updateZenModeW()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeFiltering.java | 88 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()
|
D | ZenModeHelper.java | 877 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 …]
|
D | NotificationManagerService.java | 3623 final int zen = NotificationManager.zenModeFromInterruptionFilter(filter, -1); 3624 if (zen == -1) throw new IllegalArgumentException("Invalid filter: " + filter); 3627 mZenModeHelper.setManualZenMode(zen, null, pkg, "setInterruptionFilter"); 4591 final boolean zenOnly = filter.filtered && filter.zen; 8626 public boolean zen; 8656 filter.zen = true; 8695 return zen ? true : sbn != null 8701 return zen ? true : component != null && matches(component.getPackageName()); 8706 return zen ? true : pkg != null && pkg.toLowerCase().contains(pkgFilter); 8711 return stats ? "stats" : zen ? "zen" : ('\'' + pkgFilter + '\'');
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ZenModeController.java | 29 void setZen(int zen, Uri conditionId, String reason); in setZen() argument 44 default void onZenChanged(int zen) {} in onZenChanged() argument
|
D | ZenModeControllerImpl.java | 146 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/ |
D | DndTile.java | 208 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/ |
D | PhoneStatusBarPolicy.java | 247 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()
|
D | DemoStatusIcons.java | 109 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()
|
D | NotificationPanelView.java | 3408 public void onZenChanged(int zen) { in onZenChanged() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | FakeZenModeController.java | 33 public void setZen(int zen, Uri conditionId, String reason) { in setZen() argument
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeConfig.java | 638 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/ |
D | notification.proto | 35 optional ZenModeProto zen = 2; field
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 2067 public static int zenModeToInterruptionFilter(int zen) { in zenModeToInterruptionFilter() argument 2068 switch (zen) { in zenModeToInterruptionFilter()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 349 public void onZenChanged(int zen) { in onZenChanged() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QuickStatusBarHeader.java | 474 public void onZenChanged(int zen) { in onZenChanged() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleController.java | 242 public void onZenChanged(int zen) { in BubbleController()
|
/frameworks/base/core/proto/android/app/ |
D | settings_enums.proto | 1501 // OPEN: Settings > Zen mode > Dialog warning about the zen access privileges being granted. 1504 // OPEN: Settings > Zen mode > Dialog warning about the zen access privileges being revoked. 1507 // OPEN: Settings > Zen mode > Dialog that picks time for zen mode.
|
/frameworks/base/core/proto/android/providers/settings/ |
D | secure.proto | 565 optional Zen zen = 71; field
|
D | global.proto | 1047 optional Zen zen = 138; field
|
/frameworks/base/proto/src/metrics_constants/ |
D | metrics_constants.proto | 2681 // 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.
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 5867 …field public static final String META_DATA_AUTOMATIC_RULE_TYPE = "android.service.zen.automatic.ru… 5868 …field public static final String META_DATA_RULE_INSTANCE_LIMIT = "android.service.zen.automatic.ru… 41910 …ic static final String META_DATA_CONFIGURATION_ACTIVITY = "android.service.zen.automatic.configura… 41911 …ublic static final String META_DATA_RULE_INSTANCE_LIMIT = "android.service.zen.automatic.ruleInsta… 41912 …field @Deprecated public static final String META_DATA_RULE_TYPE = "android.service.zen.automatic.…
|
/frameworks/base/api/ |
D | current.txt | 5867 …field public static final String META_DATA_AUTOMATIC_RULE_TYPE = "android.service.zen.automatic.ru… 5868 …field public static final String META_DATA_RULE_INSTANCE_LIMIT = "android.service.zen.automatic.ru… 42054 …ic static final String META_DATA_CONFIGURATION_ACTIVITY = "android.service.zen.automatic.configura… 42055 …ublic static final String META_DATA_RULE_INSTANCE_LIMIT = "android.service.zen.automatic.ruleInsta… 42056 …field @Deprecated public static final String META_DATA_RULE_TYPE = "android.service.zen.automatic.…
|