Home
last modified time | relevance | path

Searched refs:_uiState (Results 1 – 5 of 5) sorted by relevance

/packages/apps/AvatarPicker/src/tests/common/java/com/android/avatatpicker/tests/
DFakeResultHandler.kt30 private val _uiState: MutableStateFlow<UiState> = MutableStateFlow(UiState.None()) constant in com.android.avatatpicker.tests.FakeResultHandler
31 override val uiState = _uiState.asStateFlow()
36 _uiState.value = UiState.Success(result) in onSelect()
42 _uiState.value = UiState.Loading() in getSelected()
46 _uiState.value = UiState.Error(exception) in onError()
50 _uiState.value = UiState.None() in unselect()
/packages/apps/Settings/src/com/android/settings/remoteauth/enrolling/
DRemoteAuthEnrollEnrollingViewModel.kt27 private val _uiState = MutableStateFlow(RemoteAuthEnrollEnrollingUiState()) in <lambda>() constant in com.android.settings.remoteauth.enrolling.RemoteAuthEnrollEnrollingViewModel
28 val uiState: StateFlow<RemoteAuthEnrollEnrollingUiState> = _uiState.asStateFlow() in <lambda>()
33 _uiState.update { currentState -> in <lambda>()
52 _uiState.update { currentState -> in <lambda>()
60 _uiState.update { currentState -> in <lambda>()
/packages/apps/AvatarPicker/src/main/java/com/android/avatarpicker/ui/
DResultHandlerImpl.kt37 private val _uiState: MutableStateFlow<UiState> = MutableStateFlow(UiState.None()) in <lambda>() constant
38 override val uiState = _uiState.asStateFlow() in <lambda>()
43 _uiState.value = UiState.Success(result) in <lambda>()
49 _uiState.value = UiState.Loading() in <lambda>()
53 _uiState.value = UiState.Error(exception) in <lambda>()
57 _uiState.value = UiState.None() in <lambda>()
/packages/apps/Settings/src/com/android/settings/remoteauth/settings/
DRemoteAuthSettingsViewModel.kt26 private val _uiState = MutableStateFlow(RemoteAuthSettingsUiState()) in <lambda>() constant
27 val uiState: StateFlow<RemoteAuthSettingsUiState> = _uiState.asStateFlow() in <lambda>()
32 _uiState.update { currentState -> in <lambda>()
43 _uiState.update { currentState -> in <lambda>()
/packages/modules/Bluetooth/service/src/
DAdapterState.kt31 private val _uiState = MutableSharedFlow<Int>(1 /* replay only most recent value*/) constant in com.android.server.bluetooth.BluetoothAdapterState
37 fun set(s: Int) = runBlocking { _uiState.emit(s) } in <lambda>()
39 fun get(): Int = _uiState.replayCache.get(0) in get()
50 withTimeoutOrNull(timeout) { _uiState.filter { states.contains(it) }.first() } != null in waitForState()