Searched refs:azr (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 1124 private boolean populateZenRule(String pkg, AutomaticZenRule azr, ZenRule rule, in populateZenRule() argument 1132 rule.component = azr.getOwner(); in populateZenRule() 1137 if (!Objects.equals(rule.conditionId, azr.getConditionId())) { in populateZenRule() 1138 rule.conditionId = azr.getConditionId(); in populateZenRule() 1143 && rule.enabled == azr.isEnabled() in populateZenRule() 1151 if (rule.enabled != azr.isEnabled()) { in populateZenRule() 1152 rule.enabled = azr.isEnabled(); in populateZenRule() 1156 if (!Objects.equals(rule.configurationActivity, azr.getConfigurationActivity())) { in populateZenRule() 1157 rule.configurationActivity = azr.getConfigurationActivity(); in populateZenRule() 1160 if (rule.allowManualInvocation != azr.isManualInvocationAllowed()) { in populateZenRule() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeHelperTest.java | 705 AutomaticZenRule azr = new AutomaticZenRule.Builder("OriginalName", CONDITION_ID) in testTotalSilence_consolidatedPolicyDisallowsAll() local 709 azr, UPDATE_ORIGIN_SYSTEM_OR_SYSTEMUI, "reason", Process.SYSTEM_UID); in testTotalSilence_consolidatedPolicyDisallowsAll() 713 new Condition(azr.getConditionId(), "", STATE_TRUE), in testTotalSilence_consolidatedPolicyDisallowsAll() 739 AutomaticZenRule azr = new AutomaticZenRule.Builder("OriginalName", CONDITION_ID) in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia() local 743 azr, UPDATE_ORIGIN_SYSTEM_OR_SYSTEMUI, "reason", Process.SYSTEM_UID); in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia() 747 new Condition(azr.getConditionId(), "", STATE_TRUE), in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia() 4236 AutomaticZenRule azr = new AutomaticZenRule.Builder(NAME, CONDITION_ID) in automaticZenRuleToZenRule_allFields() local 4249 String ruleId = mZenModeHelper.addAutomaticZenRule(OWNER.getPackageName(), azr, in automaticZenRuleToZenRule_allFields() 4544 AutomaticZenRule azr = new AutomaticZenRule.Builder(azrBase) in updateAutomaticZenRule_nullDeviceEffectsUpdate() local 4551 mZenModeHelper.updateAutomaticZenRule(ruleId, azr, UPDATE_ORIGIN_APP, "reason", in updateAutomaticZenRule_nullDeviceEffectsUpdate() [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationManager.java | 1323 AutomaticZenRule azr = new AutomaticZenRule(rule.name, rule.component, in getAutomaticZenRules() local 1327 azr.setPackageName(rule.pkg); in getAutomaticZenRules() 1328 ruleMap.put(rule.id, azr); in getAutomaticZenRules()
|