Searched refs:reuseCache (Results 1 – 3 of 3) sorted by relevance
63 val reuseCache = mutableMapOf<Int, Pair<MobileIconViewModel, CoroutineScope>>() in <lambda>() constant in com.android.systemui.statusbar.pipeline.mobile.ui.viewmodel.MobileIconsViewModel112 return reuseCache.getOrPut(subId) { createViewModel(subId) }.first in <lambda>()135 reuseCache.keys in <lambda>()138 reuseCache in <lambda>()
162 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()
144 private val reuseCache = mutableMapOf<Int, WeakReference<MobileIconInteractor>>() constant392 reuseCache[subId]?.get() ?: createMobileConnectionInteractorForSubId(subId) in getMobileConnectionInteractorForSubId()409 .also { reuseCache[subId] = WeakReference(it) } in getMobileConnectionInteractorForSubId()