Home
last modified time | relevance | path

Searched refs:STATE_ALLOW (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenAdaptersTest.java52 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_allCallers()
63 assertThat(zenPolicy.getPriorityCategoryCalls()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_starredCallers()
74 assertThat(zenPolicy.getPriorityCategoryRepeatCallers()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_repeatCallers()
117 assertThat(zenPolicy.getVisualEffectAmbient()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_setEffects()
118 assertThat(zenPolicy.getVisualEffectFullScreenIntent()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_setEffects()
119 assertThat(zenPolicy.getVisualEffectNotificationList()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_setEffects()
120 assertThat(zenPolicy.getVisualEffectPeek()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_setEffects()
121 assertThat(zenPolicy.getVisualEffectStatusBar()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_setEffects()
146 assertThat(zenPolicy.getPriorityChannelsAllowed()).isEqualTo(ZenPolicy.STATE_ALLOW); in notificationPolicyToZenPolicy_modesApi_priorityChannels()
DZenPolicyTest.java71 assertEquals(ZenPolicy.STATE_ALLOW, in testZenPolicyApplyAllowedToDisallowed()
97 assertEquals(ZenPolicy.STATE_ALLOW, remindersUnset.getPriorityCategoryReminders()); in testZenPolicyApplyAllowedToUnset()
151 assertEquals(ZenPolicy.STATE_ALLOW, remindersAllowed.getPriorityCategoryReminders()); in testZenPolicyApplyUnsetToAllowed()
168 assertEquals(ZenPolicy.STATE_ALLOW, contactsAllowed.getPriorityCategoryCalls()); in testZenPolicyApplyMoreSevereCallSenders()
186 assertEquals(ZenPolicy.STATE_ALLOW, contactsAllowed.getPriorityCategoryCalls()); in testZenPolicyApplyLessSevereCallSenders()
221 assertThat(channelsPriority.getPriorityChannelsAllowed()).isEqualTo(ZenPolicy.STATE_ALLOW); in testZenPolicyApplyChannels_applyUnset()
268 assertThat(unset.getPriorityChannelsAllowed()).isEqualTo(ZenPolicy.STATE_ALLOW); in testZenPolicyApplyChannels_applySet()
326 .isEqualTo(ZenPolicy.STATE_ALLOW); // from p2 in testZenPolicyOverwrite_someOverlappingFields_takeNewPolicy()
338 .isEqualTo(ZenPolicy.STATE_ALLOW); // from p1 in testZenPolicyOverwrite_someOverlappingFields_takeNewPolicy()
340 .isEqualTo(ZenPolicy.STATE_ALLOW); // from p2 in testZenPolicyOverwrite_someOverlappingFields_takeNewPolicy()
[all …]
DZenModeHelperTest.java76 import static com.android.os.dnd.DNDProtoEnums.STATE_ALLOW;
1233 assertThat(policy.getAlarms().getNumber()).isEqualTo(DNDProtoEnums.STATE_ALLOW); in testProtoWithAutoRuleCustomPolicy_classic()
1236 assertThat(policy.getCalls().getNumber()).isEqualTo(DNDProtoEnums.STATE_ALLOW); in testProtoWithAutoRuleCustomPolicy_classic()
1273 assertThat(policy.getAlarms().getNumber()).isEqualTo(DNDProtoEnums.STATE_ALLOW); in testProtoWithAutoRuleCustomPolicy()
1276 assertThat(policy.getCalls().getNumber()).isEqualTo(DNDProtoEnums.STATE_ALLOW); in testProtoWithAutoRuleCustomPolicy()
2005 assertThat(rule.zenPolicy.getPriorityCategoryReminders()).isEqualTo(STATE_ALLOW); in testReadXml_upgradeToModesApi_makesCustomPolicies()
2006 assertThat(rule.zenPolicy.getPriorityCategoryCalls()).isEqualTo(STATE_ALLOW); in testReadXml_upgradeToModesApi_makesCustomPolicies()
2008 assertThat(rule.zenPolicy.getPriorityCategoryMessages()).isEqualTo(STATE_ALLOW); in testReadXml_upgradeToModesApi_makesCustomPolicies()
2009 assertThat(rule.zenPolicy.getPriorityCategoryConversations()).isEqualTo(STATE_ALLOW); in testReadXml_upgradeToModesApi_makesCustomPolicies()
2010 assertThat(rule.zenPolicy.getPriorityCategoryEvents()).isEqualTo(STATE_ALLOW); in testReadXml_upgradeToModesApi_makesCustomPolicies()
[all …]
DZenModeConfigTest.java29 import static android.service.notification.ZenPolicy.STATE_ALLOW;
263 ? config.manualRule.zenPolicy.getPriorityChannelsAllowed() == STATE_ALLOW in testZenPolicyToNotificationPolicy_unsetChannelsTakesDefault()
/frameworks/base/core/java/android/service/notification/
DZenPolicy.java319 STATE_ALLOW,
334 public static final int STATE_ALLOW = 1; field in ZenPolicy
589 return STATE_ALLOW; in getPriorityChannelsAllowed()
616 if (mVisualEffects.get(i) != STATE_ALLOW) { in shouldShowAllVisualEffects()
667 mZenPolicy.mPriorityCategories.set(i, STATE_ALLOW); in allowAllSounds()
697 mZenPolicy.mVisualEffects.set(i, STATE_ALLOW); in showAllVisualEffects()
747 allow ? STATE_ALLOW : STATE_DISALLOW); in allowReminders()
757 allow ? STATE_ALLOW : STATE_DISALLOW); in allowEvents()
777 mZenPolicy.mPriorityCategories.set(PRIORITY_CATEGORY_CONVERSATIONS, STATE_ALLOW); in allowConversations()
801 mZenPolicy.mPriorityCategories.set(PRIORITY_CATEGORY_MESSAGES, STATE_ALLOW); in allowMessages()
[all …]
DZenModeConfig.java41 import static android.service.notification.ZenPolicy.STATE_ALLOW;
1286 builder.allowPriorityChannels(channels == STATE_ALLOW); in readZenPolicyXml()
1300 builder.allowRepeatCallers(repeatCallers == STATE_ALLOW); in readZenPolicyXml()
1308 builder.allowAlarms(alarms == STATE_ALLOW); in readZenPolicyXml()
1312 builder.allowMedia(media == STATE_ALLOW); in readZenPolicyXml()
1316 builder.allowSystem(system == STATE_ALLOW); in readZenPolicyXml()
1320 builder.allowEvents(events == STATE_ALLOW); in readZenPolicyXml()
1324 builder.allowReminders(reminders == STATE_ALLOW); in readZenPolicyXml()
1339 builder.showFullScreenIntent(fullScreenIntent == STATE_ALLOW); in readZenPolicyXml()
1343 builder.showLights(lights == STATE_ALLOW); in readZenPolicyXml()
[all …]
/frameworks/proto_logging/stats/enums/dnd/
Ddnd_enums.proto37 STATE_ALLOW = 1; enumerator
/frameworks/base/core/proto/android/service/
Dnotification.proto239 STATE_ALLOW = 1; enumerator
316 STATE_ALLOW = 1; enumerator
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeEventLogger.java638 return allow ? ZenPolicy.STATE_ALLOW : ZenPolicy.STATE_DISALLOW; in toState()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt41349 field public static final int STATE_ALLOW = 1; // 0x1