Searched refs:zenPolicy (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/core/java/android/service/notification/ |
D | ZenModeConfig.java | 663 rt.zenPolicy = readZenPolicyXml(parser); in readRuleXml() 690 if (rule.zenPolicy != null) { in writeRuleXml() 691 writeZenPolicyXml(rule.zenPolicy, out); in writeRuleXml() 941 public Policy toNotificationPolicy(ZenPolicy zenPolicy) { in toNotificationPolicy() argument 948 if (zenPolicy.isCategoryAllowed(ZenPolicy.PRIORITY_CATEGORY_REMINDERS, in toNotificationPolicy() 953 if (zenPolicy.isCategoryAllowed(ZenPolicy.PRIORITY_CATEGORY_EVENTS, in toNotificationPolicy() 958 if (zenPolicy.isCategoryAllowed(ZenPolicy.PRIORITY_CATEGORY_MESSAGES, in toNotificationPolicy() 961 messageSenders = getNotificationPolicySenders(zenPolicy.getPriorityMessageSenders(), in toNotificationPolicy() 965 if (zenPolicy.isCategoryAllowed(ZenPolicy.PRIORITY_CATEGORY_CALLS, in toNotificationPolicy() 968 callSenders = getNotificationPolicySenders(zenPolicy.getPriorityCallSenders(), in toNotificationPolicy() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 72 ZenPolicy zenPolicy = new ZenPolicy.Builder().build(); in testZenPolicyNothingSetToNotificationPolicy() local 73 assertEquals(config.toNotificationPolicy(), config.toNotificationPolicy(zenPolicy)); in testZenPolicyNothingSetToNotificationPolicy() 81 ZenPolicy zenPolicy = new ZenPolicy.Builder() in testZenPolicyToNotificationPolicy() local 103 assertEquals(expectedPolicy, config.toNotificationPolicy(zenPolicy)); in testZenPolicyToNotificationPolicy()
|
D | ZenModeHelperTest.java | 828 customRule.zenPolicy = new ZenPolicy.Builder() in testWriteXmlWithZenPolicy() 873 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlRestoreWithZenPolicy_forSystemUser() 1107 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlOnlyOneDefaultRuleExists() 1158 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlDefaultRulesExist() 1172 defaultScheduleRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlDefaultRulesExist() 1186 defaultScheduleRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlDefaultRulesExist()
|
D | NotificationManagerServiceTest.java | 4981 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAutomaticZenRuleValidation_policyFilterAgreement() local 4984 zenPolicy, NotificationManager.INTERRUPTION_FILTER_NONE, isEnabled); in testAutomaticZenRuleValidation_policyFilterAgreement() 4994 zenPolicy, NotificationManager.INTERRUPTION_FILTER_PRIORITY, isEnabled); in testAutomaticZenRuleValidation_policyFilterAgreement()
|
/frameworks/base/core/java/android/app/ |
D | AutomaticZenRule.java | 233 public void setZenPolicy(ZenPolicy zenPolicy) { in setZenPolicy() argument 234 this.mZenPolicy = (zenPolicy == null ? null : zenPolicy.copy()); in setZenPolicy()
|
D | NotificationManager.java | 927 rule.configurationActivity, rule.conditionId, rule.zenPolicy, in getAutomaticZenRules()
|
/frameworks/base/core/proto/android/service/ |
D | notification.proto | 207 optional ZenPolicyProto zenPolicy = 11; field
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 567 rule.zenPolicy = automaticZenRule.getZenPolicy(); in populateZenRule() 574 rule.conditionId, rule.zenPolicy, in createAutomaticZenRule() 956 policy.apply(rule.zenPolicy); in applyCustomPolicy()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 3967 NotificationManager.Policy zenPolicy = mNm.getConsolidatedNotificationPolicy(); in shouldZenMuteStream() local 3968 final boolean muteAlarms = (zenPolicy.priorityCategories in shouldZenMuteStream() 3970 final boolean muteMedia = (zenPolicy.priorityCategories in shouldZenMuteStream() 3972 final boolean muteSystem = (zenPolicy.priorityCategories in shouldZenMuteStream() 3975 .areAllPriorityOnlyNotificationZenSoundsMuted(zenPolicy); in shouldZenMuteStream() 3999 NotificationManager.Policy zenPolicy = mNm.getConsolidatedNotificationPolicy(); in updateZenModeAffectedStreams() local 4000 if ((zenPolicy.priorityCategories in updateZenModeAffectedStreams() 4005 if ((zenPolicy.priorityCategories in updateZenModeAffectedStreams() 4010 if ((zenPolicy.priorityCategories in updateZenModeAffectedStreams() 4015 if (ZenModeConfig.areAllPriorityOnlyNotificationZenSoundsMuted(zenPolicy)) { in updateZenModeAffectedStreams()
|