Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DVisualInterruptionDecisionProviderTestBase.kt266 assertShouldNotHeadsUp(buildPeekEntry { whenMs = whenAgo(MAX_HUN_WHEN_AGE_MS) }) in <lambda>()
274 val entry = buildPeekEntry { whenMs = whenAgo(MAX_HUN_WHEN_AGE_MS) } in <lambda>()
290 assertShouldHeadsUp(buildPeekEntry { whenMs = whenAgo(0) }) in <lambda>()
297 assertShouldHeadsUp(buildPeekEntry { whenMs = whenAgo(MAX_HUN_WHEN_AGE_MS - 1) }) in <lambda>()
304 assertShouldHeadsUp(buildPeekEntry { whenMs = 0L }) in <lambda>()
311 assertShouldHeadsUp(buildPeekEntry { whenMs = -1L }) in <lambda>()
318 assertShouldHeadsUp(buildFsiEntry { whenMs = whenAgo(MAX_HUN_WHEN_AGE_MS) }) in <lambda>()
327 whenMs = whenAgo(MAX_HUN_WHEN_AGE_MS) in <lambda>()
339 whenMs = whenAgo(MAX_HUN_WHEN_AGE_MS) in <lambda>()
1157 var whenMs: Long? = null in <lambda>() variable in com.android.systemui.statusbar.notification.interruption.VisualInterruptionDecisionProviderTestBase.EntryBuilder
[all …]
DVisualInterruptionDecisionProviderImplTest.kt103 whenMs = whenAgo(5) in testAvalancheFilter_duringAvalanche_allowConversationFromAfterEvent()
123 whenMs = whenAgo(15) in testAvalancheFilter_duringAvalanche_suppressConversationFromBeforeEvent()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordLoggerTest.java226 long whenMs = Duration.ofMinutes(2).toMillis(); in testGetAgeInMinutes() local
227 int age = NotificationRecordLogger.getAgeInMinutes(postTimeMs, whenMs); in testGetAgeInMinutes()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecordLogger.java609 static int getAgeInMinutes(long postTimeMs, long whenMs) { in getAgeInMinutes() argument
610 return (int) Duration.ofMillis(postTimeMs - whenMs).toMinutes(); in getAgeInMinutes()