Home
last modified time | relevance | path

Searched refs:AllDataState (Results 1 – 3 of 3) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/alldata/
DAllDataViewModel.kt44 private val _allData = MutableLiveData<AllDataState>()
51 val allData: LiveData<AllDataState>
55 _allData.postValue(AllDataState.Loading) in loadAllData()
59 _allData.postValue(AllDataState.WithData(result.data)) in loadAllData()
62 _allData.postValue(AllDataState.Error) in loadAllData()
95 sealed class AllDataState { class
96 object Loading : AllDataState()
98 object Error : AllDataState()
100 data class WithData(val dataMap: List<PermissionTypesPerCategory>) : AllDataState()
DAllDataFragment.kt139 is AllDataViewModel.AllDataState.Loading -> { in <lambda>()
146 is AllDataViewModel.AllDataState.Error -> { in <lambda>()
149 is AllDataViewModel.AllDataState.WithData -> { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/alldata/
DAllDataViewModelTest.kt94 val testObserver = TestObserver<AllDataViewModel.AllDataState>() in <lambda>()
108 .isEqualTo(AllDataViewModel.AllDataState.WithData(expected)) in <lambda>()
136 val testObserver = TestObserver<AllDataViewModel.AllDataState>() in <lambda>()
153 .isEqualTo(AllDataViewModel.AllDataState.WithData(expected)) in <lambda>()