Searched refs:lastActive (Results 1 – 12 of 12) sorted by relevance
405 val dataOld = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testOnSmartspaceMediaDataLoaded_noRecentMedia_activeValidRec_prioritizesSmartspace()422 val dataOld = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testOnSmartspaceMediaDataLoaded_noRecentMedia_inactiveRec_showsNothing()439 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testOnSmartspaceMediaDataLoaded_hasRecentMedia_inactiveRec_showsNothing()462 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testOnSmartspaceMediaDataLoaded_hasRecentMedia_activeInvalidRec_usesMedia()491 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testOnSmartspaceMediaDataLoaded_hasRecentMedia_activeValidRec_usesBoth()530 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testOnSmartspaceMediaDataRemoved_usedMediaAndSmartspace_clearsBoth()574 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testOnSmartspaceLoaded_persistentEnabled_inactive_hasRecentMedia_staysInactive()613 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testSmartspaceLoaded_shouldTriggerResume_doesTrigger()643 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in testSmartspaceLoaded_notShouldTriggerResume_doesNotTrigger()
620 val dataOld = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in onSmartspaceMediaDataLoaded_noRecentMedia_activeValidRec_prioritizesSmartspace()652 val dataOld = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in onSmartspaceMediaDataLoaded_noRecentMedia_inactiveRec_showsNothing()690 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in onSmartspaceMediaDataLoaded_hasRecentMedia_inactiveRec_showsNothing()742 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in onSmartspaceMediaDataLoaded_hasRecentMedia_activeInvalidRec_usesMedia()802 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in onSmartspaceMediaDataLoaded_hasRecentMedia_activeValidRec_usesBoth()899 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in onSmartspaceMediaDataRemoved_usedMediaAndSmartspace_clearsBoth()1000 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in onSmartspaceLoaded_persistentEnabled_inactive_hasRecentMedia_staysInactive()1072 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in smartspaceLoaded_shouldTriggerResume_doesTrigger()1136 val dataCurrent = dataMain.copy(active = false, lastActive = clock.elapsedRealtime()) in smartspaceLoaded_notShouldTriggerResume_doesNotTrigger()
975 assertThat(data.lastActive).isAtLeast(currentTime) in testAddResumptionControls()1002 assertThat(data.lastActive).isAtLeast(currentTime) in testAddResumptionControls_withExplicitIndicator()1499 assertThat(mediaDataCaptor.value!!.lastActive).isAtLeast(currentTime) in testOnMediaDataChanged_updatesLastActiveTime()1524 assertThat(mediaDataCaptor.value.lastActive).isAtLeast(currentTime) in testOnMediaDataTimedOut_updatesLastActiveTime()1552 assertThat(mediaDataCaptor.value.lastActive).isAtLeast(currentTime) in testOnActiveMediaConverted_updatesLastActiveTime()1588 assertThat(mediaDataCaptor.value.lastActive).isLessThan(currentTime) in testOnInactiveMediaConverted_doesNotUpdateLastActiveTime()
29 val lastActive: Long = 0L, constant in com.android.systemui.media.controls.data.model.MediaSortKeyModel
542 it.lastActive = systemClock.elapsedRealtime() in <lambda>()692 val lastActive = systemClock.elapsedRealtime() in <lambda>() constant718 lastActive = lastActive, in <lambda>()868 val lastActive = systemClock.elapsedRealtime() in <lambda>() constant900 lastActive = lastActive, in <lambda>()1472 val lastActive = in <lambda>() constant1476 data.lastActive in <lambda>()1489 lastActive = lastActive, in <lambda>()1515 .sortedBy { (_, data) -> data.lastActive } in <lambda>()
587 it.lastActive = systemClock.elapsedRealtime() in setInactive()746 val lastActive = systemClock.elapsedRealtime() in loadMediaDataInBgForResumption() constant772 lastActive = lastActive, in loadMediaDataInBgForResumption()923 val lastActive = systemClock.elapsedRealtime() in loadMediaDataInBg() constant954 lastActive = lastActive, in loadMediaDataInBg()1529 val lastActive = in convertToResumePlayer() constant1533 data.lastActive in convertToResumePlayer()1546 lastActive = lastActive, in convertToResumePlayer()1571 .sortedBy { (key, data) -> data.lastActive } in convertToResumePlayer()
150 val sorted = userEntries.toSortedMap(compareBy { userEntries.get(it)?.lastActive ?: -1 }) in <lambda>()362 return sortedEntries.get(lastActiveKey)?.let { now - it.lastActive } ?: Long.MAX_VALUE in <lambda>()
149 selectedUserEntries.toSortedMap(compareBy { selectedUserEntries[it]?.lastActive ?: -1 }) in <lambda>()401 return sortedEntries[lastActiveInstanceId]?.let { now - it.lastActive } ?: Long.MAX_VALUE in <lambda>()
86 var lastActive: Long = 0L, variable in com.android.systemui.media.controls.shared.model.MediaData
106 .thenByDescending { it.lastActive } in <lambda>()200 it.lastActive, in <lambda>()
332 lastActive = 2L in testPlayerOrdering()345 lastActive = 1L in testPlayerOrdering()
1649 .thenByDescending { it.data.lastActive } in <lambda>()