Home
last modified time | relevance | path

Searched refs:stateFlow (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/util/
DStateFlowBridge.kt26 private val stateFlow = MutableStateFlow<T?>(null) constant
27 val flow = stateFlow.filterNotNull()
30 if (stateFlow.value == null) { in setIfAbsent()
31 stateFlow.value = value in setIfAbsent()
39 stateFlow.value = value in Sync()
/frameworks/base/packages/CredentialManager/wear/robotests/src/com/android/credentialmanager/
DCredentialSelectorViewModelTest.kt50 private val stateFlow: MutableStateFlow<Request?> = MutableStateFlow(Request.Create(null)) constant in com.android.credentialmanager.CredentialSelectorViewModelTest
52 on { requests } doReturn stateFlow in <lambda>()
78 stateFlow.value = null in Setting state to idle when receiving null request()
86 stateFlow.value = Request.Cancel(appName = "appName", token = null) in Setting state to cancel when receiving Cancel request()
95 stateFlow.value = Request.Create(token = null) in Setting state to create when receiving Create request()
103 stateFlow.value = Request.Close(token = null) in Closing app when receiving Close request()
121 stateFlow.value = Request.Get( in Back on a single entry screen closes app()
135 stateFlow.value = Request.Get( in Back on a multiple entry screen gets us back to a primary screen()
148 stateFlow.value = Request.Create(token = null) in Back on create request state closes app()
158 stateFlow.value = Request.Close(token = null) in Back on close request state closes app()
[all …]