Searched refs:automaticRules (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeHelperTest.java | 433 ArrayMap<String, ZenModeConfig.ZenRule> automaticRules = new ArrayMap<>(); in getCustomAutomaticRules() local 435 automaticRules.put(rule.id, rule); in getCustomAutomaticRules() 436 return automaticRules; in getCustomAutomaticRules() 1122 mZenModeHelper.mConfig.automaticRules = new ArrayMap<>(); // no automatic rules in testProto() 1154 mZenModeHelper.mConfig.automaticRules = getCustomAutomaticRules(ZEN_MODE_ALARMS); in testProtoWithAutoRule() 1177 mZenModeHelper.mConfig.automaticRules = new ArrayMap<>(); in testProtoWithDefaultAutoRules() 1210 mZenModeHelper.mConfig.automaticRules = new ArrayMap<>(); in testProtoWithAutoRuleCustomPolicy_classic() 1219 mZenModeHelper.mConfig.automaticRules.put(rule.id, rule); in testProtoWithAutoRuleCustomPolicy_classic() 1249 mZenModeHelper.mConfig.automaticRules = new ArrayMap<>(); in testProtoWithAutoRuleCustomPolicy() 1259 mZenModeHelper.mConfig.automaticRules.put(rule.id, rule); in testProtoWithAutoRuleCustomPolicy() [all …]
|
D | SystemZenRulesTest.java | 81 config.automaticRules.put("time", timeRule); in maybeUpgradeRules_oldSystemRules_upgraded() 85 config.automaticRules.put("calendar", calendarRule); in maybeUpgradeRules_oldSystemRules_upgraded() 105 config.automaticRules.put("time", timeRule); in maybeUpgradeRules_newSystemRules_untouched() 121 config.automaticRules.put("time", timeRule); in maybeUpgradeRules_appOwnedRules_untouched()
|
D | ZenModeDiffTest.java | 284 c1.automaticRules.put(r1.id, r1); in testConfigDiff_hasRuleDiffs() 295 c2.automaticRules.put(r2.id, r2); in testConfigDiff_hasRuleDiffs()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 412 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules() 439 rule = mConfig.automaticRules.get(id); in getAutomaticZenRule() 486 newConfig.automaticRules.put(rule.id, rule); in addAutomaticZenRule() 538 ZenRule sleepingRule = config.automaticRules.get( in maybeReplaceDefaultRule() 543 config.automaticRules.remove(ZenModeConfig.EVERY_NIGHT_DEFAULT_RULE_ID); in maybeReplaceDefaultRule() 560 ZenModeConfig.ZenRule oldRule = mConfig.automaticRules.get(ruleId); in updateAutomaticZenRule() 566 ZenModeConfig.ZenRule newRule = requireNonNull(newConfig.automaticRules.get(ruleId)); in updateAutomaticZenRule() 615 ZenRule rule = newConfig.automaticRules.get(implicitRuleId(callingPkg)); in applyGlobalZenModeAsImplicitZenRule() 637 newConfig.automaticRules.put(rule.id, rule); in applyGlobalZenModeAsImplicitZenRule() 678 ZenRule rule = newConfig.automaticRules.get(implicitRuleId(callingPkg)); in applyGlobalPolicyAsImplicitZenRule() [all …]
|
D | ZenModeEventLogger.java | 403 if (config.automaticRules != null) { in activeRulesList() 404 for (ZenModeConfig.ZenRule rule : config.automaticRules.values()) { in activeRulesList() 676 ZenModeConfig.ZenRule rule = configForSearch.automaticRules.getOrDefault(id, null); in getRulePackageAndUser()
|
D | ZenModeConditions.java | 79 for (ZenRule automaticRule : config.automaticRules.values()) { in evaluateConfig()
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeDiff.java | 316 addKeys(allRules, from.automaticRules); in ConfigDiff() 317 addKeys(allRules, to.automaticRules); in ConfigDiff() 322 fromRule = from.automaticRules != null ? from.automaticRules.get(rule) in ConfigDiff() 325 toRule = to.automaticRules != null ? to.automaticRules.get(rule) : null; in ConfigDiff()
|
D | ZenModeConfig.java | 333 public ArrayMap<String, ZenRule> automaticRules = new ArrayMap<>(); field in ZenModeConfig 358 readRulesFromParcel(automaticRules, source); in ZenModeConfig() 412 config.automaticRules.put(EVENTS_DEFAULT_RULE_ID, events); in getDefaultConfig() 427 config.automaticRules.put(EVERY_NIGHT_DEFAULT_RULE_ID, sleeping); in getDefaultConfig() 471 writeRulesToParcel(automaticRules, dest); in writeToParcel() 534 sb.append(",\nautomaticRules=").append(rulesToString(automaticRules)); in toString() 776 final int N = automaticRules.size(); in isValid() 778 if (!isValidAutomaticRule(automaticRules.valueAt(i))) return false; in isValid() 844 && Objects.equals(other.automaticRules, automaticRules) in equals() 866 user, automaticRules, manualRule, in hashCode() [all …]
|
D | SystemZenRules.java | 51 for (ZenRule rule : config.automaticRules.values()) { in maybeUpgradeRules()
|