Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java429 private boolean ruleValuesEqual(AutomaticZenRule rule, ZenRule defaultRule) { in ruleValuesEqual() argument
430 if (rule == null || defaultRule == null) { in ruleValuesEqual()
434 NotificationManager.zenModeToInterruptionFilter(defaultRule.zenMode) in ruleValuesEqual()
435 && rule.getConditionId().equals(defaultRule.conditionId) in ruleValuesEqual()
436 && rule.getOwner().equals(defaultRule.component); in ruleValuesEqual()
444 ZenRule defaultRule = configDefaultRules.automaticRules.get(ruleId); in updateDefaultZenRules() local
446 if (ruleValuesEqual(currRule, defaultRule) && in updateDefaultZenRules()
447 !defaultRule.name.equals(currRule.getName())) { in updateDefaultZenRules()
448 if (canManageAutomaticZenRule(defaultRule)) { in updateDefaultZenRules()
450 + "from " + currRule.getName() + " to " + defaultRule.name); in updateDefaultZenRules()
[all …]