Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenAdaptersTest.java50 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_allCallers() local
52 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_allCallers()
53 assertThat(zenPolicy.getPriorityCallSenders()).isEqualTo(ZenPolicy.PEOPLE_TYPE_ANYONE); in notificationPolicyToZenPolicy_allCallers()
61 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_starredCallers() local
63 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_starredCallers()
64 assertThat(zenPolicy.getPriorityCallSenders()).isEqualTo(ZenPolicy.PEOPLE_TYPE_STARRED); in notificationPolicyToZenPolicy_starredCallers()
71 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_repeatCallers() local
73 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_DISALLOW); in notificationPolicyToZenPolicy_repeatCallers()
74 assertThat(zenPolicy.getPriorityCategoryRepeatCallers()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_repeatCallers()
75 assertThat(zenPolicy.getPriorityCallSenders()).isEqualTo(ZenPolicy.PEOPLE_TYPE_NONE); in notificationPolicyToZenPolicy_repeatCallers()
[all …]
DZenModeConfigTest.java130 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
138 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
150 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
161 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications()
174 ZenPolicy zenPolicy = new ZenPolicy.Builder().build(); in testZenPolicyNothingSetToNotificationPolicy() local
175 assertEquals(config.toNotificationPolicy(), config.toNotificationPolicy(zenPolicy)); in testZenPolicyNothingSetToNotificationPolicy()
186 ZenPolicy zenPolicy = new ZenPolicy.Builder() in testZenPolicyToNotificationPolicy_classic() local
210 assertEquals(expectedPolicy, config.toNotificationPolicy(zenPolicy)); in testZenPolicyToNotificationPolicy_classic()
222 ZenPolicy zenPolicy = new ZenPolicy.Builder() in testZenPolicyToNotificationPolicy() local
248 assertEquals(expectedPolicy, config.toNotificationPolicy(zenPolicy)); in testZenPolicyToNotificationPolicy()
[all …]
DZenModeHelperTest.java1214 rule.zenPolicy = new ZenPolicy.Builder() in testProtoWithAutoRuleCustomPolicy_classic()
1253 rule.zenPolicy = new ZenPolicy.Builder() in testProtoWithAutoRuleCustomPolicy()
1493 customRule.zenPolicy = new ZenPolicy.Builder() in testWriteXmlWithZenPolicy()
1544 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlRestoreWithZenPolicy_forSystemUser()
1803 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlOnlyOneDefaultRuleExists()
1855 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlDefaultRulesExist()
1869 defaultScheduleRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlDefaultRulesExist()
1883 defaultScheduleRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlDefaultRulesExist()
1940 customRule.zenPolicy = mZenModeHelper.getDefaultZenPolicy().overwrittenWith(policy); in testReadXml_onModesApi_noUpgrade()
1960 assertThat(rule.zenPolicy).isEqualTo(customRule.zenPolicy); in testReadXml_onModesApi_noUpgrade()
[all …]
DNotificationManagerServiceTest.java9673 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAutomaticZenRuleValidation_policyFilterAgreement() local
9676 zenPolicy, NotificationManager.INTERRUPTION_FILTER_NONE, isEnabled); in testAutomaticZenRuleValidation_policyFilterAgreement()
9686 zenPolicy, NotificationManager.INTERRUPTION_FILTER_PRIORITY, isEnabled); in testAutomaticZenRuleValidation_policyFilterAgreement()
9702 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAddAutomaticZenRule_systemCallTakesPackageFromOwner() local
9705 zenPolicy, NotificationManager.INTERRUPTION_FILTER_PRIORITY, isEnabled); in testAddAutomaticZenRule_systemCallTakesPackageFromOwner()
9724 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAddAutomaticZenRule_systemAppIdCallTakesPackageFromOwner() local
9727 zenPolicy, NotificationManager.INTERRUPTION_FILTER_PRIORITY, isEnabled); in testAddAutomaticZenRule_systemAppIdCallTakesPackageFromOwner()
9744 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAddAutomaticZenRule_nonSystemCallTakesPackageFromArg() local
9747 zenPolicy, NotificationManager.INTERRUPTION_FILTER_PRIORITY, isEnabled); in testAddAutomaticZenRule_nonSystemCallTakesPackageFromArg()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java439 newRule.zenPolicy = getDefaultZenPolicy(); in ensureManualZenRule()
575 return manualRule.zenPolicy.getPriorityConversationSenders(); in getAllowConversationsFrom()
629 manualRule.zenPolicy.getPriorityCallSenders(), DEFAULT_CALLS_SOURCE); in getAllowCallsFrom()
636 manualRule.zenPolicy = new ZenPolicy.Builder(manualRule.zenPolicy) in setAllowCallsFrom()
653 return manualRule.zenPolicy.isCategoryAllowed( in isAllowEvents()
948 rt.manualRule.zenPolicy = rt.toZenPolicy(); in readXml()
1157 rt.zenPolicy = readZenPolicyXml(parser); in readRuleXml()
1203 if (rule.zenPolicy != null) { in writeRuleXml()
1204 writeZenPolicyXml(rule.zenPolicy, out); in writeRuleXml()
1601 return Flags.modesUi() ? manualRule.zenPolicy : toZenPolicy(); in getZenPolicy()
[all …]
DZenModeDiff.java542 if (!Objects.equals(from.zenPolicy, to.zenPolicy)) { in RuleDiff()
543 addField(FIELD_ZEN_POLICY, new FieldDiff<>(from.zenPolicy, to.zenPolicy)); in RuleDiff()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java636 rule.zenPolicy = mConfig.getZenPolicy().copy(); in applyGlobalZenModeAsImplicitZenRule()
730 if (implicitRule != null && implicitRule.zenPolicy != null) { in getNotificationPolicyFromImplicitZenRule()
736 return mConfig.toNotificationPolicy(implicitRule.zenPolicy); in getNotificationPolicyFromImplicitZenRule()
1250 rule.zenPolicy = azr.getZenPolicy(); in populateZenRule()
1292 zenRule.zenPolicy = in updatePolicy()
1302 ZenPolicy oldPolicy = zenRule.zenPolicy != null in updatePolicy()
1303 ? zenRule.zenPolicy in updatePolicy()
1316 zenRule.zenPolicy = newPolicy; in updatePolicy()
1473 .setZenPolicy(rule.zenPolicy) in zenRuleToAutomaticZenRule()
1485 rule.conditionId, rule.zenPolicy, in zenRuleToAutomaticZenRule()
[all …]
/frameworks/base/core/java/android/app/
DAutomaticZenRule.java382 public void setZenPolicy(@Nullable ZenPolicy zenPolicy) { in setZenPolicy() argument
383 this.mZenPolicy = (zenPolicy == null ? null : zenPolicy.copy()); in setZenPolicy()
DNotificationManager.java1324 rule.configurationActivity, rule.conditionId, rule.zenPolicy, in getAutomaticZenRules()
/frameworks/base/core/proto/android/service/
Dnotification.proto216 optional ZenPolicyProto zenPolicy = 11; field
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java7055 NotificationManager.Policy zenPolicy = mNm.getConsolidatedNotificationPolicy(); in updateZenModeAffectedStreams() local
7056 if ((zenPolicy.priorityCategories in updateZenModeAffectedStreams()
7061 if ((zenPolicy.priorityCategories in updateZenModeAffectedStreams()
7068 if ((zenPolicy.priorityCategories in updateZenModeAffectedStreams()
7073 if (ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(zenPolicy)) { in updateZenModeAffectedStreams()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...