Searched refs:stateFlow (Results 1 – 2 of 2) sorted by relevance
26 private val stateFlow = MutableStateFlow<T?>(null) constant27 val flow = stateFlow.filterNotNull()30 if (stateFlow.value == null) { in setIfAbsent()31 stateFlow.value = value in setIfAbsent()39 stateFlow.value = value in Sync()
50 private val stateFlow: MutableStateFlow<Request?> = MutableStateFlow(Request.Create(null)) constant in com.android.credentialmanager.CredentialSelectorViewModelTest52 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 …]