Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/viewmodels/
DInsertOrUpdateRecordsViewModel.kt31 private val _insertedRecordsState = MutableLiveData<InsertedRecordsState>()
32 val insertedRecordsState: LiveData<InsertedRecordsState>
43 _insertedRecordsState.postValue(InsertedRecordsState.WithData(response)) in insertRecordsViaViewModel()
46 InsertedRecordsState.Error(exception.localizedMessage!!)) in insertRecordsViaViewModel()
49 InsertedRecordsState.Error(exception.localizedMessage!!)) in insertRecordsViaViewModel()
69 sealed class InsertedRecordsState { class
70 data class Error(val errorMessage: String) : InsertedRecordsState()
71 data class WithData(val entries: List<Record>) : InsertedRecordsState()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DInsertRecordFragment.kt102 is InsertOrUpdateRecordsViewModel.InsertedRecordsState.WithData -> { in <lambda>()
105 is InsertOrUpdateRecordsViewModel.InsertedRecordsState.Error -> { in <lambda>()