Home
last modified time | relevance | path

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

/packages/modules/Permission/SafetyCenter/Persistence/java/com/android/safetycenter/persistence/
DPersistedSafetyCenterIssue.java42 @Nullable Instant dismissedAt, in PersistedSafetyCenterIssue() argument
47 mDismissedAt = dismissedAt; in PersistedSafetyCenterIssue()
140 public Builder setDismissedAt(@Nullable Instant dismissedAt) { in setDismissedAt() argument
141 mDismissedAt = dismissedAt; in setDismissedAt()
DSafetyCenterIssuesPersistence.java285 Instant dismissedAt = persistedSafetyCenterIssue.getDismissedAt(); in serializeIssues() local
286 if (dismissedAt != null) { in serializeIssues()
288 null, ATTRIBUTE_DISMISSED_AT, Long.toString(dismissedAt.toEpochMilli())); in serializeIssues()
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetyCenterIssueDismissalRepository.java113 Instant dismissedAt = issueData.getDismissedAt(); in isIssueDismissed() local
114 boolean isNotCurrentlyDismissed = dismissedAt == null; in isIssueDismissed()
128 Duration timeSinceLastDismissal = Duration.between(dismissedAt, Instant.now()); in isIssueDismissed()
233 Instant dismissedAt = getNotificationDismissedAt(issueKey); in isNotificationDismissedNow() local
234 if (dismissedAt == null) { in isNotificationDismissedNow()
245 Instant canResurfaceAt = dismissedAt.plus(resurfaceDelay); in isNotificationDismissedNow()
552 private void setDismissedAt(@Nullable Instant dismissedAt) { in setDismissedAt() argument
553 mDismissedAt = dismissedAt; in setDismissedAt()
/packages/modules/Permission/SafetyCenter/Persistence/tests/java/com/android/safetycenter/persistence/
DPersistedSafetyCenterIssueTest.kt44 assertThat(ACTIVE_ISSUE.dismissedAt).isEqualTo(null) in getDismissedAt_returnsDismissedAt()
45 assertThat(DISMISSED_ISSUE.dismissedAt).isEqualTo(INSTANT) in getDismissedAt_returnsDismissedAt()