Home
last modified time | relevance | path

Searched refs:ZenPolicy (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java22 import android.service.notification.ZenPolicy;
41 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToDisallowed()
45 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
46 assertEquals(ZenPolicy.STATE_DISALLOW, in testZenPolicyApplyAllowedToDisallowed()
51 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
52 assertEquals(ZenPolicy.STATE_ALLOW, in testZenPolicyApplyAllowedToDisallowed()
54 assertEquals(ZenPolicy.STATE_DISALLOW, in testZenPolicyApplyAllowedToDisallowed()
60 assertEquals(ZenPolicy.STATE_DISALLOW, in testZenPolicyApplyAllowedToDisallowed()
66 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToUnset()
69 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset()
[all …]
DZenModeConfigTest.java31 import android.service.notification.ZenPolicy;
73 ZenPolicy zenPolicy = new ZenPolicy.Builder().build(); in testZenPolicyNothingSetToNotificationPolicy()
82 ZenPolicy zenPolicy = new ZenPolicy.Builder() in testZenPolicyToNotificationPolicy()
109 ZenPolicy expected = new ZenPolicy.Builder() in testZenConfigToZenPolicy()
125 ZenPolicy actual = config.toZenPolicy(); in testZenConfigToZenPolicy()
268 config.allowConversationsFrom = ZenPolicy.CONVERSATION_SENDERS_IMPORTANT; in getCustomConfig()
287 config.allowConversationsFrom = ZenPolicy.CONVERSATION_SENDERS_NONE; in getMutedAllConfig()
DZenModeHelperTest.java90 import android.service.notification.ZenPolicy;
803 mZenModeHelperSpy.mConfig.allowConversationsFrom = ZenPolicy.CONVERSATION_SENDERS_ANYONE; in testParcelConfig()
827 mZenModeHelperSpy.mConfig.allowConversationsFrom = ZenPolicy.CONVERSATION_SENDERS_ANYONE; in testWriteXml()
1032 customRule.zenPolicy = new ZenPolicy.Builder() in testWriteXmlWithZenPolicy()
1036 .allowCalls(ZenPolicy.PEOPLE_TYPE_NONE) in testWriteXmlWithZenPolicy()
1037 .allowMessages(ZenPolicy.PEOPLE_TYPE_CONTACTS) in testWriteXmlWithZenPolicy()
1077 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlRestoreWithZenPolicy_forSystemUser()
1079 .allowCalls(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlRestoreWithZenPolicy_forSystemUser()
1311 customRule.zenPolicy = new ZenPolicy.Builder() in testReadXmlOnlyOneDefaultRuleExists()
1313 .allowMessages(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlOnlyOneDefaultRuleExists()
[all …]
DNotificationManagerServiceTest.java141 import android.service.notification.ZenPolicy;
5593 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAutomaticZenRuleValidation_policyFilterAgreement()
/frameworks/base/core/java/android/service/notification/
DZenPolicy.java40 public final class ZenPolicy implements Parcelable { class
203 public ZenPolicy() { in ZenPolicy() method in ZenPolicy
417 private ZenPolicy mZenPolicy;
420 mZenPolicy = new ZenPolicy(); in Builder()
426 public Builder(ZenPolicy policy) { in Builder()
430 mZenPolicy = new ZenPolicy(); in Builder()
437 public @NonNull ZenPolicy build() { in build()
801 public static final @android.annotation.NonNull Parcelable.Creator<ZenPolicy> CREATOR =
802 new Parcelable.Creator<ZenPolicy>() {
804 public ZenPolicy createFromParcel(Parcel source) {
[all …]
DZenModeConfig.java107 private static final int DEFAULT_ALLOW_CONV_FROM = ZenPolicy.CONVERSATION_SENDERS_NONE;
273 .append(",allowConvFrom=").append(ZenPolicy.conversationTypeToString in toString()
752 public static ZenPolicy readZenPolicyXml(XmlPullParser parser) { in readZenPolicyXml()
755 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in readZenPolicyXml()
756 final int calls = safeInt(parser, ALLOW_ATT_CALLS_FROM, ZenPolicy.PEOPLE_TYPE_UNSET); in readZenPolicyXml()
757 final int messages = safeInt(parser, ALLOW_ATT_MESSAGES_FROM, ZenPolicy.PEOPLE_TYPE_UNSET); in readZenPolicyXml()
758 final int repeatCallers = safeInt(parser, ALLOW_ATT_REPEAT_CALLERS, ZenPolicy.STATE_UNSET); in readZenPolicyXml()
759 final int alarms = safeInt(parser, ALLOW_ATT_ALARMS, ZenPolicy.STATE_UNSET); in readZenPolicyXml()
760 final int media = safeInt(parser, ALLOW_ATT_MEDIA, ZenPolicy.STATE_UNSET); in readZenPolicyXml()
761 final int system = safeInt(parser, ALLOW_ATT_SYSTEM, ZenPolicy.STATE_UNSET); in readZenPolicyXml()
[all …]
/frameworks/base/core/java/android/app/
DAutomaticZenRule.java27 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()
DNotificationManager.java50 import android.service.notification.ZenPolicy;
1620 public static final int CONVERSATION_SENDERS_ANYONE = ZenPolicy.CONVERSATION_SENDERS_ANYONE;
1626 ZenPolicy.CONVERSATION_SENDERS_IMPORTANT;
1631 public static final int CONVERSATION_SENDERS_NONE = ZenPolicy.CONVERSATION_SENDERS_NONE;
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java68 import android.service.notification.ZenPolicy;
687 ZenPolicy.conversationTypeToString(config.allowConversationsFrom), in dump()
969 private void applyCustomPolicy(ZenPolicy policy, ZenRule rule) { in applyCustomPolicy()
971 policy.apply(new ZenPolicy.Builder() in applyCustomPolicy()
975 policy.apply(new ZenPolicy.Builder() in applyCustomPolicy()
988 ZenPolicy policy = new ZenPolicy(); in updateConsolidatedPolicy()
DZenModeFiltering.java20 import static android.service.notification.ZenPolicy.CONVERSATION_SENDERS_ANYONE;
/frameworks/base/core/proto/android/service/
Dnotification.proto224 // An android.service.notification.ZenPolicy object
/frameworks/base/config/
Dboot-image-profile.txt17864 …deConfig;->readZenPolicyXml(Lorg/xmlpull/v1/XmlPullParser;)Landroid/service/notification/ZenPolicy;
17876 …tion/ZenModeConfig;->toNotificationPolicy(Landroid/service/notification/ZenPolicy;)Landroid/app/No…
17893 HSPLandroid/service/notification/ZenPolicy$Builder;-><init>()V
17894 HSPLandroid/service/notification/ZenPolicy;-><init>()V
17895 HSPLandroid/service/notification/ZenPolicy;->conversationTypeToString(I)Ljava/lang/String;
17896 HSPLandroid/service/notification/ZenPolicy;->getPriorityCallSenders()I
17897 HSPLandroid/service/notification/ZenPolicy;->getPriorityCategoryAlarms()I
17898 HSPLandroid/service/notification/ZenPolicy;->getPriorityCategoryCalls()I
17899 HSPLandroid/service/notification/ZenPolicy;->getPriorityCategoryConversations()I
17900 HSPLandroid/service/notification/ZenPolicy;->getPriorityCategoryEvents()I
[all …]
Dpreloaded-classes5608 android.service.notification.ZenPolicy$1
5609 android.service.notification.ZenPolicy$Builder
5610 android.service.notification.ZenPolicy
/frameworks/base/api/
Dcurrent.txt4620 …entName, @NonNull android.net.Uri, @Nullable android.service.notification.ZenPolicy, int, boolean);
4629 method public android.service.notification.ZenPolicy getZenPolicy();
4636 method public void setZenPolicy(android.service.notification.ZenPolicy);
43919 public final class ZenPolicy implements android.os.Parcelable {
43945 … public static final android.os.Parcelable.Creator<android.service.notification.ZenPolicy> CREATOR;
43956 public static final class ZenPolicy.Builder {
43957 ctor public ZenPolicy.Builder();
43958 method @NonNull public android.service.notification.ZenPolicy.Builder allowAlarms(boolean);
43959 method @NonNull public android.service.notification.ZenPolicy.Builder allowAllSounds();
43960 method @NonNull public android.service.notification.ZenPolicy.Builder allowCalls(int);
[all …]
/frameworks/base/services/
Dart-profile22446 …ication/ZenModeHelper;->applyCustomPolicy(Landroid/service/notification/ZenPolicy;Landroid/service…