Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/service/notification/
DZenAdapters.java46 .allowMessages( in notificationPolicyToZenPolicy()
47 policy.allowMessages() in notificationPolicyToZenPolicy()
DZenModeConfig.java314 public boolean allowMessages = DEFAULT_ALLOW_MESSAGES; field in ZenModeConfig
350 allowMessages = source.readInt() == 1; in ZenModeConfig()
384 .allowMessages(PEOPLE_TYPE_STARRED) in getDefaultZenPolicy()
463 dest.writeInt(allowMessages ? 1 : 0); in writeToParcel()
520 .append(",allowMessages=").append(allowMessages) in toString()
619 public void setAllowMessages(boolean allowMessages) { in setAllowMessages() argument
623 this.allowMessages = allowMessages; in setAllowMessages()
686 return allowMessages; in isAllowMessages()
838 && other.allowMessages == allowMessages in equals()
864 allowRepeatCallers, allowMessages, in hashCode()
[all …]
DZenModeDiff.java279 if (from.allowMessages != to.allowMessages) { in ConfigDiff()
281 new FieldDiff<>(from.allowMessages, to.allowMessages)); in ConfigDiff()
DZenPolicy.java792 public @NonNull Builder allowMessages(@PeopleType int audienceType) { in allowMessages() method in ZenPolicy.Builder
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java195 builder.allowMessages(ZenPolicy.PEOPLE_TYPE_CONTACTS); in testZenPolicyApplyMoreSevereMessageSenders()
199 builder.allowMessages(ZenPolicy.PEOPLE_TYPE_NONE); in testZenPolicyApplyMoreSevereMessageSenders()
299 .allowMessages(ZenPolicy.PEOPLE_TYPE_STARRED) in testZenPolicyOverwrite_someOverlappingFields_takeNewPolicy()
307 .allowMessages(ZenPolicy.PEOPLE_TYPE_NONE) in testZenPolicyOverwrite_someOverlappingFields_takeNewPolicy()
347 builder.allowMessages(20); // invalid #, won't change policy in testZenPolicyMessagesInvalid()
427 builder.allowMessages(ZenPolicy.PEOPLE_TYPE_ANYONE); in testAllowMessages()
435 builder.allowMessages(ZenPolicy.PEOPLE_TYPE_CONTACTS); in testAllowMessages()
443 builder.allowMessages(ZenPolicy.PEOPLE_TYPE_STARRED); in testAllowMessages()
451 builder.allowMessages(ZenPolicy.PEOPLE_TYPE_NONE); in testAllowMessages()
459 builder.allowMessages(ZenPolicy.PEOPLE_TYPE_UNSET); in testAllowMessages()
DZenModeConfigTest.java278 .allowMessages(ZenPolicy.PEOPLE_TYPE_STARRED) in testZenConfigToZenPolicy_classic()
323 .allowMessages(ZenPolicy.PEOPLE_TYPE_STARRED) in testZenConfigToZenPolicy()
784 .allowMessages(ZenPolicy.PEOPLE_TYPE_NONE) in testZenPolicyXml_classic()
833 .allowMessages(ZenPolicy.PEOPLE_TYPE_NONE) in testZenPolicyXml()
DZenModeHelperTest.java722 assertThat(policy.allowMessages()).isFalse(); in testTotalSilence_consolidatedPolicyDisallowsAll()
756 assertThat(policy.allowMessages()).isFalse(); in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia()
1498 .allowMessages(PEOPLE_TYPE_CONTACTS) in testWriteXmlWithZenPolicy()
1805 .allowMessages(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlOnlyOneDefaultRuleExists()
1857 .allowMessages(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlDefaultRulesExist()
1871 .allowMessages(ZenPolicy.PEOPLE_TYPE_ANYONE) in testReadXmlDefaultRulesExist()
2418 .allowMessages(PEOPLE_TYPE_CONTACTS) in testAddAutomaticZenRule_modesApi_fillsInDefaultValues()
3833 assertTrue(mZenModeHelper.mConsolidatedPolicy.allowMessages()); in testUpdateConsolidatedPolicy_preModesApiDefaultRulesOnly_takesGlobalDefault()
3905 assertTrue(mZenModeHelper.mConsolidatedPolicy.allowMessages()); // default in testUpdateConsolidatedPolicy_preModesApiCustomPolicyOnly_fillInWithGlobal()
3953 assertThat(mZenModeHelper.mConsolidatedPolicy.allowMessages()).isTrue(); // default in testUpdateConsolidatedPolicy_modesApiCustomPolicyOnly_fillInWithDefault()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeEventLogger.java573 proto.write(DNDPolicyProto.MESSAGES, toState(mNewPolicy.allowMessages())); in getDNDPolicyProto()
DZenModeFiltering.java272 if (!policy.allowMessages()) { in shouldIntercept()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManagerTest.java301 when(mNotificationPolicy.allowMessages()).thenReturn(false); in setUp()
1410 when(mNotificationPolicy.allowMessages()).thenReturn(true); in testUpdateWidgetsFromBroadcastInBackgroundAllowNoConversationsAllowContactMessages()
1425 when(mNotificationPolicy.allowMessages()).thenReturn(true); in testUpdateWidgetsFromBroadcastInBackgroundAllowNoConversationsAllowStarredContactMessages()
/frameworks/base/core/java/android/app/
DNotificationManager.java2652 public boolean allowMessages() { in allowMessages() method in NotificationManager.Policy
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/widget/
DPeopleSpaceWidgetManager.java1227 if (policy.allowMessages()) { in getNotificationPolicyState()
/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.txt41362 method @NonNull public android.service.notification.ZenPolicy.Builder allowMessages(int);
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt49261 Landroid/service/notification/ZenModeConfig;->allowMessages:Z