Home | History | Annotate | Download | only in notification

Lines Matching refs:reason

217     private void loadConfigForUser(int user, String reason) {
220 if (DEBUG) Log.d(TAG, reason + " u=" + user);
223 if (DEBUG) Log.d(TAG, reason + " generating default config for user " + user);
228 setConfigLocked(config, reason);
285 public String addAutomaticZenRule(AutomaticZenRule automaticZenRule, String reason) {
309 Log.d(TAG, "addAutomaticZenRule rule= " + automaticZenRule + " reason=" + reason);
315 if (setConfigLocked(newConfig, reason, true)) {
324 String reason) {
330 + " reason=" + reason);
345 return setConfigLocked(newConfig, reason, true);
349 public boolean removeAutomaticZenRule(String id, String reason) {
358 if (DEBUG) Log.d(TAG, "removeZenRule zenRule=" + id + " reason=" + reason);
363 return setConfigLocked(newConfig, reason, true);
367 public boolean removeAutomaticZenRules(String packageName, String reason) {
379 return setConfigLocked(newConfig, reason, true);
509 public void setManualZenMode(int zenMode, Uri conditionId, String caller, String reason) {
510 setManualZenMode(zenMode, conditionId, reason, caller, true /*setRingerMode*/);
515 private void setManualZenMode(int zenMode, Uri conditionId, String reason, String caller,
522 + " conditionId=" + conditionId + " reason=" + reason
540 setConfigLocked(newConfig, reason, setRingerMode);
604 String reason = "readXml";
638 reason += ", reset to default rules";
645 if (DEBUG) Log.d(TAG, reason);
647 setConfigLocked(config, reason);
713 public boolean setConfigLocked(ZenModeConfig config, String reason) {
714 return setConfigLocked(config, reason, true /*setRingerMode*/);
717 public void setConfig(ZenModeConfig config, String reason) {
719 setConfigLocked(config, reason);
723 private boolean setConfigLocked(ZenModeConfig config, String reason, boolean setRingerMode) {
738 if (DEBUG) Log.d(TAG, "setConfigLocked reason=" + reason, new Throwable());
739 ZenLog.traceConfig(reason, mConfig, config);
749 mHandler.postApplyConfig(config, reason, setRingerMode);
759 private void applyConfig(ZenModeConfig config, String reason, boolean setRingerMode) {
762 if (!evaluateZenMode(reason, setRingerMode)) {
790 protected boolean evaluateZenMode(String reason, boolean setRingerMode) {
794 ZenLog.traceSetZenMode(zen, reason);
1263 public final String reason;
1266 ConfigMessageData(ZenModeConfig config, String reason, boolean setRingerMode) {
1268 this.reason = reason;
1289 private void postApplyConfig(ZenModeConfig config, String reason, boolean setRingerMode) {
1291 new ConfigMessageData(config, reason, setRingerMode)));
1305 applyConfig(applyConfigData.config, applyConfigData.reason,