Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/viewmodels/
DInsertOrUpdateRecordsViewModel.kt35 private val _updatedRecordsState = MutableLiveData<UpdatedRecordsState>()
36 val updatedRecordsState: LiveData<UpdatedRecordsState>
58 _updatedRecordsState.postValue(UpdatedRecordsState.Success) in updateRecordsViaViewModel()
61 UpdatedRecordsState.Error(exception.localizedMessage!!)) in updateRecordsViaViewModel()
64 UpdatedRecordsState.Error(exception.localizedMessage!!)) in updateRecordsViaViewModel()
74 sealed class UpdatedRecordsState { class in com.android.healthconnect.testapps.toolbox.viewmodels.InsertOrUpdateRecordsViewModel
75 data class Error(val errorMessage: String) : UpdatedRecordsState()
76 object Success : UpdatedRecordsState()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/ui/
DInsertRecordFragment.kt116 if (state is InsertOrUpdateRecordsViewModel.UpdatedRecordsState.Error) { in <lambda>()