Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/service/notification/
DZenAdapters.java66 zenPolicyBuilder.allowPriorityChannels(policy.allowPriorityChannels()); in notificationPolicyToZenPolicy()
DZenModeDiff.java308 if (from.allowPriorityChannels != to.allowPriorityChannels) { in ConfigDiff()
310 new FieldDiff<>(from.allowPriorityChannels, to.allowPriorityChannels)); in ConfigDiff()
DZenModeConfig.java328 public boolean allowPriorityChannels = DEFAULT_ALLOW_PRIORITY_CHANNELS; field in ZenModeConfig
373 allowPriorityChannels = source.readBoolean(); in ZenModeConfig()
394 .allowPriorityChannels(true) in getDefaultZenPolicy()
486 dest.writeBoolean(allowPriorityChannels); in writeToParcel()
530 sb.append(",allowPriorityChannels=").append(allowPriorityChannels); in toString()
546 return allowPriorityChannels; in isAllowPriorityChannels()
549 public void setAllowPriorityChannels(boolean allowPriorityChannels) { in setAllowPriorityChannels() argument
553 this.allowPriorityChannels = allowPriorityChannels; in setAllowPriorityChannels()
853 && other.allowPriorityChannels == allowPriorityChannels; in equals()
868 allowConversationsFrom, allowPriorityChannels); in hashCode()
[all …]
DZenPolicy.java1012 public @NonNull Builder allowPriorityChannels(boolean allow) { in allowPriorityChannels() method in ZenPolicy.Builder
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java216 builder.allowPriorityChannels(true); in testZenPolicyApplyChannels_applyUnset()
229 builder.allowPriorityChannels(false); in testZenPolicyApplyChannels_applyStricter()
232 builder.allowPriorityChannels(true); in testZenPolicyApplyChannels_applyStricter()
245 builder.allowPriorityChannels(false); in testZenPolicyApplyChannels_applyLooser()
248 builder.allowPriorityChannels(true); in testZenPolicyApplyChannels_applyLooser()
263 builder.allowPriorityChannels(true); in testZenPolicyApplyChannels_applySet()
696 builder.allowPriorityChannels(true); in testAllowChannels_noFlag()
709 builder.allowPriorityChannels(true); in testAllowChannels()
714 builder.allowPriorityChannels(false); in testAllowChannels()
724 .allowPriorityChannels(true) in testPolicyBuilder_constructFromPolicy()
DZenModeConfigTest.java151 .allowPriorityChannels(true) in testPriorityOnlyMutingAllNotifications()
162 .allowPriorityChannels(false) in testPriorityOnlyMutingAllNotifications()
229 .allowPriorityChannels(false) in testZenPolicyToNotificationPolicy()
251 assertFalse(expectedPolicy.allowPriorityChannels()); in testZenPolicyToNotificationPolicy()
265 policy.allowPriorityChannels()); in testZenPolicyToNotificationPolicy_unsetChannelsTakesDefault()
325 .allowPriorityChannels(false) in testZenConfigToZenPolicy()
392 .allowPriorityChannels(true) in testPriorityOnlyMutingAll()
404 .allowPriorityChannels(false) in testPriorityOnlyMutingAll()
841 .allowPriorityChannels(false) in testZenPolicyXml()
966 .allowPriorityChannels(false) in getMutedRingerConfig()
[all …]
DZenModeFilteringTest.java550 .allowPriorityChannels(true) in testAllowChannels_priorityPackage()
556 .allowPriorityChannels(false) in testAllowChannels_priorityPackage()
DZenModeHelperTest.java727 assertThat(policy.allowPriorityChannels()).isFalse(); in testTotalSilence_consolidatedPolicyDisallowsAll()
761 assertThat(policy.allowPriorityChannels()).isFalse(); in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia()
1257 .allowPriorityChannels(false) in testProtoWithAutoRuleCustomPolicy()
4092 .allowPriorityChannels(true) in testUpdateConsolidatedPolicy_allowChannels()
4110 assertTrue(mZenModeHelper.mConsolidatedPolicy.allowPriorityChannels()); in testUpdateConsolidatedPolicy_allowChannels()
4114 .allowPriorityChannels(false) in testUpdateConsolidatedPolicy_allowChannels()
4132 assertFalse(mZenModeHelper.mConsolidatedPolicy.allowPriorityChannels()); in testUpdateConsolidatedPolicy_allowChannels()
4345 .allowPriorityChannels(false) in updateAutomaticZenRule_fromUser_updatesBitmaskAndValue()
4605 .allowPriorityChannels(false) // Differs from the default in automaticZenRuleToZenRule_nullToNonNullPolicyUpdate()
5918 .allowPriorityChannels(true) in applyGlobalPolicyAsImplicitZenRule_createsImplicitRule()
[all …]
/frameworks/base/core/java/android/app/
DNotificationManager.java2443 : (allowPriorityChannels() ? "true" : "false"))); in toString()
2722 public boolean allowPriorityChannels() { in allowPriorityChannels() method in NotificationManager.Policy
2737 public static int policyState(boolean hasPriorityChannels, boolean allowPriorityChannels) { in policyState() argument
2742 if (!allowPriorityChannels) { in policyState()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeEventLogger.java605 mNewPolicy.allowPriorityChannels() in getDNDPolicyProto()
DZenModeFiltering.java157 return inPriorityChannel && policy.allowPriorityChannels(); in canRecordBypassDnd()
DZenModeHelper.java2053 .allowPriorityChannels(false) in applyCustomPolicy()
2060 .allowPriorityChannels(false) in applyCustomPolicy()
DNotificationManagerService.java4570 return mZenModeHelper.getConsolidatedNotificationPolicy().allowPriorityChannels()
/frameworks/base/core/api/
Dtest-current.txt404 method @FlaggedApi("android.app.modes_api") public boolean allowPriorityChannels();
Dcurrent.txt41363 …pi") @NonNull public android.service.notification.ZenPolicy.Builder allowPriorityChannels(boolean);