Searched refs:newRule (Results 1 – 4 of 4) sorted by relevance
884 final ZenModeConfig.ZenRule newRule = new ZenModeConfig.ZenRule(); in testisManualActive_stateTrue() local885 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() local902 newRule.type = AutomaticZenRule.TYPE_OTHER; in testisManualActive_stateFalse()903 newRule.enabled = true; in testisManualActive_stateFalse()904 newRule.conditionId = Uri.EMPTY; in testisManualActive_stateFalse()[all …]
322 final ZenRule newRule = config != null ? config.manualRule : null; in updateZenModeConfig() local323 if (!Objects.equals(oldRule, newRule)) { in updateZenModeConfig()324 fireManualRuleChanged(newRule); in updateZenModeConfig()
566 ZenModeConfig.ZenRule newRule = requireNonNull(newConfig.automaticRules.get(ruleId)); in updateAutomaticZenRule() local568 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() local1562 newRule.enabled = true; in setManualZenMode()1563 newRule.zenMode = zenMode; in setManualZenMode()1564 newRule.conditionId = conditionId; in setManualZenMode()1565 newRule.enabler = caller; in setManualZenMode()[all …]
434 final ZenRule newRule = new ZenRule(); in ensureManualZenRule() local435 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()