/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
ZenModeController.java | 28 void setZen(int zen, Uri conditionId, String reason); 41 public void onZenChanged(int zen) {}
|
ZenModeControllerImpl.java | 48 /** Platform implementation of the zen mode controller. **/ 114 public void setZen(int zen, Uri conditionId, String reason) { 115 mNoMan.setZenMode(zen, conditionId, reason); 180 private void fireZenChanged(int zen) { 182 cb.onZenChanged(zen);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
ZenFooter.java | 35 * Zen mode information (and end button) attached to the bottom of the volume dialog. 90 private void setZen(int zen) { 91 if (mZen == zen) return; 92 mZen = zen; 139 public void onZenChanged(int zen) { 140 setZen(zen);
|
VolumeDialogComponent.java | 65 ZenModeController zen) { 74 mZenModeController = zen; 76 mController, zen, mVolumeDialogCallback);
|
ZenModePanel.java | 215 private static String prefKeyForConfirmation(int zen) { 216 switch (zen) { 290 /** Start or stop requesting relevant zen mode exit conditions */ 368 final int zen = rule != null ? rule.zenMode : Global.ZEN_MODE_OFF; local 369 handleUpdateZen(zen); 374 private void handleUpdateZen(int zen) { 375 if (mSessionZen != -1 && mSessionZen != zen) { 377 mSessionZen = zen; 379 mZenButtons.setSelectedValue(zen, false /* fromClick */); 416 final Object zen = mZenButtons.getSelectedValue() local 425 final int zen = getSelectedZen(Global.ZEN_MODE_OFF); local 722 final int zen = getSelectedZen(Global.ZEN_MODE_OFF); local [all...] |
VolumeDialogController.java | 422 final int zen = Settings.Global.getInt(mContext.getContentResolver(), local 424 if (mState.zenMode == zen) return false; 425 mState.zenMode = zen; 426 Events.writeEvent(mContext, Events.EVENT_ZEN_MODE_CHANGED, zen); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
DndTile.java | 126 int zen = Prefs.getInt(mContext, Prefs.Key.DND_FAVORITE_ZEN, Global.ZEN_MODE_ALARMS); local 127 mController.setZen(zen, null, TAG); 138 final int zen = arg instanceof Integer ? (Integer) arg : mController.getZen(); local 139 final boolean newValue = zen != Global.ZEN_MODE_OFF; 143 switch (zen) { 224 public void onZenChanged(int zen) { 225 refreshState(zen);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
ZenModeFiltering.java | 78 public static boolean matchesCallFilter(Context context, int zen, ZenModeConfig config, 81 if (zen == Global.ZEN_MODE_NO_INTERRUPTIONS) return false; // nothing gets through 82 if (zen == Global.ZEN_MODE_ALARMS) return false; // not an alarm 83 if (zen == Global.ZEN_MODE_IMPORTANT_INTERRUPTIONS) { 106 public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) { 110 switch (zen) {
|
ZenModeHelper.java | 79 * NotificationManagerService helper for functionality related to zen mode. 611 * @return a copy of the zen mode configuration 675 private void setZenModeSetting(int zen) { 676 Global.putInt(mContext.getContentResolver(), Global.ZEN_MODE, zen); local 693 final int zen = computeZenMode(); local 694 ZenLog.traceSetZenMode(zen, reason); 695 mZenMode = zen; 702 if (zen != zenBefore) { 718 int zen = Global.ZEN_MODE_OFF; local 721 if (zenSeverity(automaticRule.zenMode) > zenSeverity(zen)) { [all...] |
NotificationManagerService.java | 214 // missed calls in ZEN mode "Important". 4194 public boolean zen; field in class:NotificationManagerService.DumpFilter [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
DemoStatusIcons.java | 68 String zen = args.getString("zen"); local 69 if (zen != null) { 70 int iconId = zen.equals("important") ? R.drawable.stat_sys_zen_important 71 : zen.equals("none") ? R.drawable.stat_sys_zen_none 73 updateSlot("zen", null, iconId);
|
PhoneStatusBarPolicy.java | 163 // zen 200 public void setZenMode(int zen) { 201 mZen = zen;
|
QSTileHost.java | 122 ZenModeController zen, HotspotController hotspot, 134 mZen = zen;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
AttentionManagementVerifierActivity.java | 239 boolean zen = payload.getBoolean(JSON_MATCHES_ZEN_FILTER); 240 Log.e(TAG, tag + (zen ? "" : " not") + " intercepted"); 246 pass &= !zen; 249 pass &= !zen; 252 pass &= !zen; 330 boolean zen = payload.getBoolean(JSON_MATCHES_ZEN_FILTER); 331 Log.e(TAG, tag + (zen ? "" : " not") + " intercepted"); 337 pass &= zen; 340 pass &= zen; 343 pass &= zen; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SystemUIFactory.java | 108 ZenModeController zen, HotspotController hotspot, 114 return new QSTileHost(context, statusBar, bluetooth, location, rotation, network, zen,
|
/frameworks/base/core/java/android/app/ |
NotificationManager.java | 495 * Returns null if there are no zen rules that match the given id, or if the calling package 508 * Creates the given zen rule. 527 * Updates the given zen rule. 549 * Deletes the automatic zen rule with the given id. 570 * Deletes all automatic zen rules owned by the given package. [all...] |
/frameworks/base/core/java/android/service/notification/ |
ZenModeConfig.java | 54 * Persisted configuration for zen mode. 88 private static final String ZEN_TAG = "zen"; 121 private static final String RULE_ATT_ZEN = "zen"; 500 final String zen = parser.getAttributeValue(null, RULE_ATT_ZEN); local 501 rt.zenMode = tryParseZenMode(zen, -1); 503 Slog.w(TAG, "Bad zen mode in rule xml:" + zen); [all...] |