Home
last modified time | relevance | path

Searched refs:allowAlarms (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/android/service/notification/
DZenAdapters.java33 .allowAlarms(policy.allowAlarms()) in notificationPolicyToZenPolicy()
DZenModeDiff.java256 if (from.allowAlarms != to.allowAlarms) { in ConfigDiff()
257 addField(FIELD_ALLOW_ALARMS, new FieldDiff<>(from.allowAlarms, to.allowAlarms)); in ConfigDiff()
DZenModeConfig.java309 public boolean allowAlarms = DEFAULT_ALLOW_ALARMS; field in ZenModeConfig
363 allowAlarms = source.readInt() == 1; in ZenModeConfig()
380 .allowAlarms(true) in getDefaultZenPolicy()
476 dest.writeInt(allowAlarms ? 1 : 0); in writeToParcel()
513 sb.append(",allowAlarms=").append(allowAlarms) in toString()
738 return allowAlarms; in isAllowAlarms()
741 public void setAllowAlarms(boolean allowAlarms) { in setAllowAlarms() argument
745 this.allowAlarms = allowAlarms; in setAllowAlarms()
833 boolean eq = other.allowAlarms == allowAlarms in equals()
863 return Objects.hash(allowAlarms, allowMedia, allowSystem, allowCalls, in hashCode()
[all …]
DZenPolicy.java850 public @NonNull Builder allowAlarms(boolean allow) { in allowAlarms() method in ZenPolicy.Builder
884 allowAlarms(allow); in allowCategory()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java89 private final ZenPolicy POLICY = new ZenPolicy.Builder().allowAlarms(true).build();
187 .allowAlarms(true) in testZenPolicyToNotificationPolicy_classic()
223 .allowAlarms(true) in testZenPolicyToNotificationPolicy()
271 .allowAlarms(true) in testZenConfigToZenPolicy_classic()
316 .allowAlarms(true) in testZenConfigToZenPolicy()
412 .allowAlarms(true) in testPriorityOnlyMutingAll()
421 .allowAlarms(false) in testPriorityOnlyMutingAll()
787 .allowAlarms(true) in testZenPolicyXml_classic()
836 .allowAlarms(true) in testZenPolicyXml()
964 .allowAlarms(true) in getMutedRingerConfig()
[all …]
DZenModeHelperTest.java229 private static final ZenPolicy POLICY = new ZenPolicy.Builder().allowAlarms(true).build();
719 assertThat(policy.allowAlarms()).isFalse(); in testTotalSilence_consolidatedPolicyDisallowsAll()
753 assertThat(policy.allowAlarms()).isTrue(); in testAlarmsOnly_consolidatedPolicyOnlyAllowsAlarmsAndMedia()
1215 .allowAlarms(true) in testProtoWithAutoRuleCustomPolicy_classic()
1254 .allowAlarms(true) in testProtoWithAutoRuleCustomPolicy()
1494 .allowAlarms(false) in testWriteXmlWithZenPolicy()
1884 .allowAlarms(false) in testReadXmlDefaultRulesExist()
1936 .allowAlarms(true) in testReadXml_onModesApi_noUpgrade()
2033 .allowAlarms(true) in testReadXml_upgradeToModesApi_fillsInCustomPolicies()
2815 .allowAlarms(false) in updateAutomaticZenRule_overwritesExistingPolicy()
[all …]
DZenPolicyTest.java532 builder.allowAlarms(true); in testAllowAlarms()
539 builder.allowAlarms(false); in testAllowAlarms()
722 ZenPolicy policy = builder.allowRepeatCallers(true).allowAlarms(false) in testPolicyBuilder_constructFromPolicy()
DNotificationManagerServiceTest.java9673 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAutomaticZenRuleValidation_policyFilterAgreement()
9702 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAddAutomaticZenRule_systemCallTakesPackageFromOwner()
9724 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAddAutomaticZenRule_systemAppIdCallTakesPackageFromOwner()
9744 ZenPolicy zenPolicy = new ZenPolicy.Builder().allowAlarms(true).build(); in testAddAutomaticZenRule_nonSystemCallTakesPackageFromArg()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/statusbar/notification/domain/interactor/
DNotificationsSoundPolicyInteractor.kt46 val areAlarmsAllowed: Flow<Boolean?> = notificationPolicy.map { it?.allowAlarms() } in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java492 boolean allowAlarms = (mNotificationManager.getNotificationPolicy().priorityCategories in computeAlarmWarningText()
496 if (allowAlarms) { in computeAlarmWarningText()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeEventLogger.java577 proto.write(DNDPolicyProto.ALARMS, toState(mNewPolicy.allowAlarms())); in getDNDPolicyProto()
DZenModeFiltering.java204 if (!policy.allowAlarms()) { in shouldIntercept()
DZenModeHelper.java2058 .allowAlarms(true) in applyCustomPolicy()
2194 final boolean allowAlarms = mConsolidatedPolicy.allowAlarms(); in applyRestrictions()
2204 final boolean muteAlarms = zenPriorityOnly && !allowAlarms; in applyRestrictions()
/frameworks/base/core/java/android/app/
DNotificationManager.java2622 public boolean allowAlarms() { in allowAlarms() method in NotificationManager.Policy
/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.txt41356 method @NonNull public android.service.notification.ZenPolicy.Builder allowAlarms(boolean);