Home
last modified time | relevance | path

Searched refs:lastActive (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/pipeline/
DLegacyMediaDataFilterImplTest.kt405 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()
DMediaDataFilterImplTest.kt620 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()
DMediaDataProcessorTest.kt975 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/data/model/
DMediaSortKeyModel.kt29 val lastActive: Long = 0L, constant in com.android.systemui.media.controls.data.model.MediaSortKeyModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaDataProcessor.kt542 it.lastActive = systemClock.elapsedRealtime() in <lambda>()
692 val lastActive = systemClock.elapsedRealtime() in <lambda>() constant
718 lastActive = lastActive, in <lambda>()
868 val lastActive = systemClock.elapsedRealtime() in <lambda>() constant
900 lastActive = lastActive, in <lambda>()
1472 val lastActive = in <lambda>() constant
1476 data.lastActive in <lambda>()
1489 lastActive = lastActive, in <lambda>()
1515 .sortedBy { (_, data) -> data.lastActive } in <lambda>()
DLegacyMediaDataManagerImpl.kt587 it.lastActive = systemClock.elapsedRealtime() in setInactive()
746 val lastActive = systemClock.elapsedRealtime() in loadMediaDataInBgForResumption() constant
772 lastActive = lastActive, in loadMediaDataInBgForResumption()
923 val lastActive = systemClock.elapsedRealtime() in loadMediaDataInBg() constant
954 lastActive = lastActive, in loadMediaDataInBg()
1529 val lastActive = in convertToResumePlayer() constant
1533 data.lastActive in convertToResumePlayer()
1546 lastActive = lastActive, in convertToResumePlayer()
1571 .sortedBy { (key, data) -> data.lastActive } in convertToResumePlayer()
DLegacyMediaDataFilterImpl.kt150 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>()
DMediaDataFilterImpl.kt149 selectedUserEntries.toSortedMap(compareBy { selectedUserEntries[it]?.lastActive ?: -1 }) in <lambda>()
401 return sortedEntries[lastActiveInstanceId]?.let { now - it.lastActive } ?: Long.MAX_VALUE in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/shared/model/
DMediaData.kt86 var lastActive: Long = 0L, variable in com.android.systemui.media.controls.shared.model.MediaData
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/data/repository/
DMediaFilterRepository.kt106 .thenByDescending { it.lastActive } in <lambda>()
200 it.lastActive, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/
DMediaCarouselControllerTest.kt332 lastActive = 2L in testPlayerOrdering()
345 lastActive = 1L in testPlayerOrdering()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaCarouselController.kt1649 .thenByDescending { it.data.lastActive } in <lambda>()