Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java884 final ZenModeConfig.ZenRule newRule = new ZenModeConfig.ZenRule(); in testisManualActive_stateTrue() local
885 newRule.type = AutomaticZenRule.TYPE_OTHER; in testisManualActive_stateTrue()
886 newRule.enabled = true; in testisManualActive_stateTrue()
887 newRule.conditionId = Uri.EMPTY; in testisManualActive_stateTrue()
888 newRule.allowManualInvocation = true; in testisManualActive_stateTrue()
889 config.manualRule = newRule; in testisManualActive_stateTrue()
901 final ZenModeConfig.ZenRule newRule = new ZenModeConfig.ZenRule(); in testisManualActive_stateFalse() local
902 newRule.type = AutomaticZenRule.TYPE_OTHER; in testisManualActive_stateFalse()
903 newRule.enabled = true; in testisManualActive_stateFalse()
904 newRule.conditionId = Uri.EMPTY; in testisManualActive_stateFalse()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeControllerImpl.java322 final ZenRule newRule = config != null ? config.manualRule : null; in updateZenModeConfig() local
323 if (!Objects.equals(oldRule, newRule)) { in updateZenModeConfig()
324 fireManualRuleChanged(newRule); in updateZenModeConfig()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java566 ZenModeConfig.ZenRule newRule = requireNonNull(newConfig.automaticRules.get(ruleId)); in updateAutomaticZenRule() local
568 if (newRule.enabled != automaticZenRule.isEnabled()) { in updateAutomaticZenRule()
569 dispatchOnAutomaticRuleStatusChanged(mConfig.user, newRule.getPkg(), ruleId, in updateAutomaticZenRule()
576 boolean updated = populateZenRule(newRule.pkg, automaticZenRule, newRule, in updateAutomaticZenRule()
584 newRule.component, true, callingUid); in updateAutomaticZenRule()
1561 final ZenRule newRule = new ZenRule(); in setManualZenMode() local
1562 newRule.enabled = true; in setManualZenMode()
1563 newRule.zenMode = zenMode; in setManualZenMode()
1564 newRule.conditionId = conditionId; in setManualZenMode()
1565 newRule.enabler = caller; in setManualZenMode()
[all …]
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java434 final ZenRule newRule = new ZenRule(); in ensureManualZenRule() local
435 newRule.type = AutomaticZenRule.TYPE_OTHER; in ensureManualZenRule()
436 newRule.enabled = true; in ensureManualZenRule()
437 newRule.conditionId = Uri.EMPTY; in ensureManualZenRule()
438 newRule.allowManualInvocation = true; in ensureManualZenRule()
439 newRule.zenPolicy = getDefaultZenPolicy(); in ensureManualZenRule()
440 newRule.pkg = "android"; in ensureManualZenRule()
441 manualRule = newRule; in ensureManualZenRule()