Searched refs:allowAlarms (Results 1 – 16 of 16) sorted by relevance
33 .allowAlarms(policy.allowAlarms()) in notificationPolicyToZenPolicy()
256 if (from.allowAlarms != to.allowAlarms) { in ConfigDiff()257 addField(FIELD_ALLOW_ALARMS, new FieldDiff<>(from.allowAlarms, to.allowAlarms)); in ConfigDiff()
309 public boolean allowAlarms = DEFAULT_ALLOW_ALARMS; field in ZenModeConfig363 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() argument745 this.allowAlarms = allowAlarms; in setAllowAlarms()833 boolean eq = other.allowAlarms == allowAlarms in equals()863 return Objects.hash(allowAlarms, allowMedia, allowSystem, allowCalls, in hashCode()[all …]
850 public @NonNull Builder allowAlarms(boolean allow) { in allowAlarms() method in ZenPolicy.Builder884 allowAlarms(allow); in allowCategory()
89 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 …]
229 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 …]
532 builder.allowAlarms(true); in testAllowAlarms()539 builder.allowAlarms(false); in testAllowAlarms()722 ZenPolicy policy = builder.allowRepeatCallers(true).allowAlarms(false) in testPolicyBuilder_constructFromPolicy()
9673 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()
46 val areAlarmsAllowed: Flow<Boolean?> = notificationPolicy.map { it?.allowAlarms() } in <lambda>()
492 boolean allowAlarms = (mNotificationManager.getNotificationPolicy().priorityCategories in computeAlarmWarningText()496 if (allowAlarms) { in computeAlarmWarningText()
577 proto.write(DNDPolicyProto.ALARMS, toState(mNewPolicy.allowAlarms())); in getDNDPolicyProto()
204 if (!policy.allowAlarms()) { in shouldIntercept()
2058 .allowAlarms(true) in applyCustomPolicy()2194 final boolean allowAlarms = mConsolidatedPolicy.allowAlarms(); in applyRestrictions()2204 final boolean muteAlarms = zenPriorityOnly && !allowAlarms; in applyRestrictions()
2622 public boolean allowAlarms() { in allowAlarms() method in NotificationManager.Policy
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
41356 method @NonNull public android.service.notification.ZenPolicy.Builder allowAlarms(boolean);