Searched refs:ZenPolicy (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenPolicyTest.java | 21 import android.service.notification.ZenPolicy; 37 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToDisallowed() 41 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed() 42 assertEquals(ZenPolicy.STATE_DISALLOW, in testZenPolicyApplyAllowedToDisallowed() 47 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed() 48 assertEquals(ZenPolicy.STATE_ALLOW, in testZenPolicyApplyAllowedToDisallowed() 50 assertEquals(ZenPolicy.STATE_DISALLOW, in testZenPolicyApplyAllowedToDisallowed() 56 assertEquals(ZenPolicy.STATE_DISALLOW, in testZenPolicyApplyAllowedToDisallowed() 62 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToUnset() 65 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset() [all …]
|
D | ZenModeConfigTest.java | 30 import android.service.notification.ZenPolicy; 72 ZenPolicy zenPolicy = new ZenPolicy.Builder().build(); in testZenPolicyNothingSetToNotificationPolicy() 81 ZenPolicy zenPolicy = new ZenPolicy.Builder() in testZenPolicyToNotificationPolicy()
|
D | ZenModeHelperTest.java | 66 import android.service.notification.ZenPolicy; 828 customRule.zenPolicy = new ZenPolicy.Builder() in testWriteXmlWithZenPolicy() 832 .allowCalls(ZenPolicy.PEOPLE_TYPE_NONE) in testWriteXmlWithZenPolicy() 833 .allowMessages(ZenPolicy.PEOPLE_TYPE_CONTACTS) in testWriteXmlWithZenPolicy() 873 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlRestoreWithZenPolicy_forSystemUser() 875 .allowCalls(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlRestoreWithZenPolicy_forSystemUser() 1107 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlOnlyOneDefaultRuleExists() 1109 .allowMessages(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlOnlyOneDefaultRuleExists() 1158 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlDefaultRulesExist() 1160 .allowMessages(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlDefaultRulesExist() [all …]
|
D | NotificationManagerServiceTest.java | 123 import android.service.notification.ZenPolicy; 4898 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAutomaticZenRuleValidation_policyFilterAgreement()
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenPolicy.java | 39 public final class ZenPolicy implements Parcelable { class 167 public ZenPolicy() { in ZenPolicy() method in ZenPolicy 362 private ZenPolicy mZenPolicy; 365 mZenPolicy = new ZenPolicy(); in Builder() 371 public Builder(ZenPolicy policy) { in Builder() 375 mZenPolicy = new ZenPolicy(); in Builder() 382 public @NonNull ZenPolicy build() { in build() 717 public static final @android.annotation.NonNull Parcelable.Creator<ZenPolicy> CREATOR = 718 new Parcelable.Creator<ZenPolicy>() { 720 public ZenPolicy createFromParcel(Parcel source) { [all …]
|
D | ZenModeConfig.java | 727 public static ZenPolicy readZenPolicyXml(XmlPullParser parser) { in readZenPolicyXml() 730 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in readZenPolicyXml() 731 final int calls = safeInt(parser, ALLOW_ATT_CALLS_FROM, ZenPolicy.PEOPLE_TYPE_UNSET); in readZenPolicyXml() 732 final int messages = safeInt(parser, ALLOW_ATT_MESSAGES_FROM, ZenPolicy.PEOPLE_TYPE_UNSET); in readZenPolicyXml() 733 final int repeatCallers = safeInt(parser, ALLOW_ATT_REPEAT_CALLERS, ZenPolicy.STATE_UNSET); in readZenPolicyXml() 734 final int alarms = safeInt(parser, ALLOW_ATT_ALARMS, ZenPolicy.STATE_UNSET); in readZenPolicyXml() 735 final int media = safeInt(parser, ALLOW_ATT_MEDIA, ZenPolicy.STATE_UNSET); in readZenPolicyXml() 736 final int system = safeInt(parser, ALLOW_ATT_SYSTEM, ZenPolicy.STATE_UNSET); in readZenPolicyXml() 737 final int events = safeInt(parser, ALLOW_ATT_EVENTS, ZenPolicy.STATE_UNSET); in readZenPolicyXml() 738 final int reminders = safeInt(parser, ALLOW_ATT_REMINDERS, ZenPolicy.STATE_UNSET); in readZenPolicyXml() [all …]
|
/frameworks/base/core/java/android/app/ |
D | AutomaticZenRule.java | 27 import android.service.notification.ZenPolicy; 46 private ZenPolicy mZenPolicy; 94 @Nullable ZenPolicy policy, int interruptionFilter, boolean enabled) { in AutomaticZenRule() 108 Uri conditionId, ZenPolicy policy, int interruptionFilter, boolean enabled, in AutomaticZenRule() 182 public ZenPolicy getZenPolicy() { in getZenPolicy() 233 public void setZenPolicy(ZenPolicy zenPolicy) { in setZenPolicy()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 59 import android.service.notification.ZenPolicy; 944 private void applyCustomPolicy(ZenPolicy policy, ZenRule rule) { in applyCustomPolicy() 946 policy.apply(new ZenPolicy.Builder() in applyCustomPolicy() 951 policy.apply(new ZenPolicy.Builder() in applyCustomPolicy() 964 ZenPolicy policy = new ZenPolicy(); in updateConsolidatedPolicy()
|
/frameworks/base/core/proto/android/service/ |
D | notification.proto | 224 // An android.service.notification.ZenPolicy object
|