Home
last modified time | relevance | path

Searched refs:deletionInstant (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java1168 Long deletionInstant = tryParseLong( in readRuleXml() local
1170 if (deletionInstant != null) { in readRuleXml()
1171 rt.deletionInstant = Instant.ofEpochMilli(deletionInstant); in readRuleXml()
1223 if (rule.deletionInstant != null) { in writeRuleXml()
1225 rule.deletionInstant.toEpochMilli()); in writeRuleXml()
2489 @Nullable public Instant deletionInstant; // Only set on deleted rules. field in ZenModeConfig.ZenRule
2526 deletionInstant = Instant.ofEpochMilli(source.readLong()); in ZenRule()
2596 if (deletionInstant != null) { in writeToParcel()
2598 dest.writeLong(deletionInstant.toEpochMilli()); in writeToParcel()
2644 if (deletionInstant != null) { in toString()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeConfigTest.java513 rule.deletionInstant = Instant.ofEpochMilli(1701790147000L); in testWriteToParcel()
542 assertEquals(rule.deletionInstant, parceled.deletionInstant); in testWriteToParcel()
622 rule.deletionInstant = Instant.ofEpochMilli(1701790147000L); in testRuleXml()
655 assertEquals(rule.deletionInstant, fromXml.deletionInstant); in testRuleXml()
DZenModeHelperTest.java5606 rule.deletionInstant = deletedAt; in newZenRule()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java517 ruleToRestore.deletionInstant = null; in maybeRestoreRemovedRule()
866 deletedRule.deletionInstant = Instant.now(mClock); in maybePreserveRemovedRule()
1810 if (deletedRule.deletionInstant == null in cleanUpZenRules()
1811 || deletedRule.deletionInstant.isBefore(keptRuleThreshold)) { in cleanUpZenRules()