Home
last modified time | relevance | path

Searched refs:snoozing (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DZenModeEventLogger.java511 ZenModeDiff.FieldDiff snoozing = d.getDiffForField( in getIsUserAction() local
513 if (snoozing != null && snoozing.hasDiff() && (boolean) snoozing.to()) { in getIsUserAction()
DZenModeConditions.java189 if (rule != null && rule.snoozing && !rule.isTrueOrUnknown()) { in updateSnoozing()
190 rule.snoozing = false; in updateSnoozing()
DZenModeHelper.java644 rule.snoozing = false; in applyGlobalZenModeAsImplicitZenRule()
868 deletedRule.snoozing = false; in maybePreserveRemovedRule()
971 if (rule != null && rule.snoozing && !rule.isTrueOrUnknown()) { in updateSnoozing()
972 rule.snoozing = false; in updateSnoozing()
1153 rule.snoozing = false; in populateZenRule()
1243 rule.snoozing = false; in populateZenRule()
1545 automaticRule.snoozing = true; in setManualZenMode()
1556 automaticRule.snoozing = true; in setManualZenMode()
1604 && !rule.snoozing) { in dump()
1663 automaticRule.snoozing = false; in readXml()
/frameworks/base/core/java/android/service/notification/
DZenModeDiff.java509 if (from.snoozing != to.snoozing) { in RuleDiff()
510 addField(FIELD_SNOOZING, new FieldDiff<>(from.snoozing, to.snoozing)); in RuleDiff()
DZenModeConfig.java2461 public boolean snoozing; // user manually disabled this instance field in ZenModeConfig.ZenRule
2495 snoozing = source.readInt() == 1; in ZenRule()
2557 dest.writeInt(snoozing ? 1 : 0); in writeToParcel()
2612 .append(",snoozing=").append(snoozing) in toString()
2662 proto.write(ZenRuleProto.IS_SNOOZING, snoozing); in dumpDebug()
2686 && other.snoozing == snoozing in equals()
2719 return Objects.hash(enabled, snoozing, name, zenMode, conditionId, condition, in hashCode()
2725 return Objects.hash(enabled, snoozing, name, zenMode, conditionId, condition, in hashCode()
2742 return enabled && !snoozing && getPkg() != null && isTrueOrUnknown(); in isAutomaticActive()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java502 rule.snoozing = true; in testWriteToParcel()
521 assertEquals(rule.snoozing, parceled.snoozing); in testWriteToParcel()
561 rule.snoozing = true; in testRuleXml_classic()
571 assertFalse(fromXml.snoozing); in testRuleXml_classic()
597 rule.snoozing = true; in testRuleXml()
631 assertFalse(fromXml.snoozing); in testRuleXml()
DZenModeDiffTest.java333 rule.snoozing = true; in makeRule()
DZenModeHelperTest.java2952 .that(mZenModeHelper.mConfig.automaticRules.get(activeRuleId).snoozing) in setManualZenMode_off_snoozesActiveRules()
2955 .that(mZenModeHelper.mConfig.automaticRules.get(inactiveRuleId).snoozing) in setManualZenMode_off_snoozesActiveRules()
2990 config.automaticRules.get(activeRuleId).snoozing).isFalse(); in setManualZenMode_off_doesNotSnoozeRulesIfFromUser()
2992 config.automaticRules.get(inactiveRuleId).snoozing).isFalse(); in setManualZenMode_off_doesNotSnoozeRulesIfFromUser()
2997 config.automaticRules.get(activeRuleId).snoozing).isTrue(); in setManualZenMode_off_doesNotSnoozeRulesIfFromUser()
2999 config.automaticRules.get(inactiveRuleId).snoozing).isFalse(); in setManualZenMode_off_doesNotSnoozeRulesIfFromUser()
4203 rule.snoozing = true; in zenRuleToAutomaticZenRule_allFields()
4915 assertEquals(false, mZenModeHelper.mConfig.automaticRules.get(createdId).snoozing); in testUpdateAutomaticRule_unsnoozes()
5551 assertThat(storedRule.snoozing).isFalse(); in removeAndAddAutomaticZenRule_wasSnoozed_isRestoredAsInactive()
5877 assertThat(mZenModeHelper.mConfig.automaticRules.valueAt(0).snoozing).isFalse(); in applyGlobalZenModeAsImplicitZenRule_update_unsnoozesRule()
[all …]
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto3773 // updated. TYPE_DISMISS: snoozing canceled due to data being cleared on package