Home
last modified time | relevance | path

Searched refs:reuseCache (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DMobileIconsViewModel.kt63 val reuseCache = mutableMapOf<Int, Pair<MobileIconViewModel, CoroutineScope>>() in <lambda>() constant
112 return reuseCache.getOrPut(subId) { createViewModel(subId) }.first in <lambda>()
135 reuseCache.keys in <lambda>()
138 reuseCache in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DMobileIconsViewModelTest.kt162 assertThat(underTest.reuseCache.keys).containsExactly(1, 2) in caching_invalidViewModelsAreRemovedFromCacheWhenSubDisappears()
168 assertThat(underTest.reuseCache.keys).containsExactly(2) in caching_invalidViewModelsAreRemovedFromCacheWhenSubDisappears()
178 var scope1 = underTest.reuseCache[1]?.second in caching_invalidatedViewModelsAreCanceled()
179 var scope2 = underTest.reuseCache[2]?.second in caching_invalidatedViewModelsAreCanceled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/
DMobileIconsInteractor.kt144 private val reuseCache = mutableMapOf<Int, WeakReference<MobileIconInteractor>>() constant
392 reuseCache[subId]?.get() ?: createMobileConnectionInteractorForSubId(subId) in getMobileConnectionInteractorForSubId()
409 .also { reuseCache[subId] = WeakReference(it) } in getMobileConnectionInteractorForSubId()