Searched refs:ZenPolicy (Results 1 – 12 of 12) 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 | 124 import android.service.notification.ZenPolicy; 4981 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() 950 policy.apply(new ZenPolicy.Builder() in applyCustomPolicy() 963 ZenPolicy policy = new ZenPolicy(); in updateConsolidatedPolicy()
|
/frameworks/base/core/proto/android/service/ |
D | notification.proto | 224 // An android.service.notification.ZenPolicy object
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 4451 …entName, @NonNull android.net.Uri, @Nullable android.service.notification.ZenPolicy, int, boolean); 4460 method public android.service.notification.ZenPolicy getZenPolicy(); 4467 method public void setZenPolicy(android.service.notification.ZenPolicy); 42043 public final class ZenPolicy implements android.os.Parcelable { 42063 … public static final android.os.Parcelable.Creator<android.service.notification.ZenPolicy> CREATOR; 42074 public static final class ZenPolicy.Builder { 42075 ctor public ZenPolicy.Builder(); 42076 method @NonNull public android.service.notification.ZenPolicy.Builder allowAlarms(boolean); 42077 method @NonNull public android.service.notification.ZenPolicy.Builder allowAllSounds(); 42078 method @NonNull public android.service.notification.ZenPolicy.Builder allowCalls(int); [all …]
|
/frameworks/base/api/ |
D | current.txt | 4451 …entName, @NonNull android.net.Uri, @Nullable android.service.notification.ZenPolicy, int, boolean); 4460 method public android.service.notification.ZenPolicy getZenPolicy(); 4467 method public void setZenPolicy(android.service.notification.ZenPolicy); 42187 public final class ZenPolicy implements android.os.Parcelable { 42207 … public static final android.os.Parcelable.Creator<android.service.notification.ZenPolicy> CREATOR; 42218 public static final class ZenPolicy.Builder { 42219 ctor public ZenPolicy.Builder(); 42220 method @NonNull public android.service.notification.ZenPolicy.Builder allowAlarms(boolean); 42221 method @NonNull public android.service.notification.ZenPolicy.Builder allowAllSounds(); 42222 method @NonNull public android.service.notification.ZenPolicy.Builder allowCalls(int); [all …]
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 13388 …deConfig;->readZenPolicyXml(Lorg/xmlpull/v1/XmlPullParser;)Landroid/service/notification/ZenPolicy; 13392 …tion/ZenModeConfig;->toNotificationPolicy(Landroid/service/notification/ZenPolicy;)Landroid/app/No… 13407 HSPLandroid/service/notification/ZenPolicy$1;-><init>()V 13408 HSPLandroid/service/notification/ZenPolicy;-><init>()V 13409 HSPLandroid/service/notification/ZenPolicy;->apply(Landroid/service/notification/ZenPolicy;)V 13410 HSPLandroid/service/notification/ZenPolicy;->getZenPolicyPriorityCategoryState(I)I 13411 HSPLandroid/service/notification/ZenPolicy;->getZenPolicyVisualEffectState(I)I 35768 Landroid/service/notification/ZenPolicy$1; 35769 Landroid/service/notification/ZenPolicy$Builder; 35770 Landroid/service/notification/ZenPolicy;
|