Home
last modified time | relevance | path

Searched refs:AccessScreenState (Results 1 – 6 of 6) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/access/
DAccessViewModel.kt23 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.Error
24 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.WithData
41 private val _appMetadataMap = MutableLiveData<AccessScreenState>()
43 val appMetadataMap: LiveData<AccessScreenState>
49 _appMetadataMap.postValue(AccessScreenState.Loading) in loadAppMetaDataMap()
64 sealed class AccessScreenState { class
65 object Loading : AccessScreenState()
67 object Error : AccessScreenState()
70 AccessScreenState()
DAccessFragment.kt111 is AccessViewModel.AccessScreenState.Loading -> { in <lambda>()
114 is AccessViewModel.AccessScreenState.Error -> { in <lambda>()
117 is AccessViewModel.AccessScreenState.WithData -> { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DAccessFragmentTest.kt35 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState
36 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.WithData
75 MutableLiveData<AccessViewModel.AccessScreenState>(WithData(emptyMap())) in dataAccessFragment_noSections_noneDisplayed()
99 MutableLiveData<AccessScreenState>(WithData(map)) in dataAccessFragment_readSection_isDisplayed()
123 MutableLiveData<AccessScreenState>(WithData(map)) in dataAccessFragment_readAndWriteSections_isDisplayed()
147 MutableLiveData<AccessViewModel.AccessScreenState>(WithData(map)) in dataAccessFragment_inactiveSection_isDisplayed()
166 MutableLiveData<AccessScreenState>(AccessScreenState.Loading) in dataAccessFragment_loadingState_showsLoading()
175 MutableLiveData<AccessScreenState>(WithData(emptyMap())) in dataAccessFragment_withData_hidesLoading()
184 MutableLiveData<AccessScreenState>(AccessScreenState.Error) in dataAccessFragment_withError_showError()
200 MutableLiveData<AccessScreenState>(WithData(map)) in whenAppNameClicked_navigatesToConnectedApp()
DAccessViewModelTest.kt66 val testObserver = TestObserver<AccessViewModel.AccessScreenState>() in <lambda>()
72 .isEqualTo(AccessViewModel.AccessScreenState.WithData(expected)) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataaccess/
DHealthDataAccessFragmentTest.kt29 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState
30 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState.WithData
77 MutableLiveData<AccessScreenState>(WithData(emptyMap())) in dataAccessFragment_noSections_noneDisplayed()
101 MutableLiveData<AccessScreenState>(WithData(map)) in dataAccessFragment_readSection_isDisplayed()
125 MutableLiveData<AccessScreenState>(WithData(map)) in dataAccessFragment_readAndWriteSections_isDisplayed()
156 MutableLiveData<AccessScreenState>(WithData(map)) in dataAccessFragment_inactiveSection_isDisplayed()
176 MutableLiveData<AccessScreenState>(AccessScreenState.Loading) in dataAccessFragment_loadingState_showsLoading()
185 MutableLiveData<AccessScreenState>(WithData(emptyMap())) in dataAccessFragment_withData_hidesLoading()
194 MutableLiveData<AccessScreenState>(AccessScreenState.Error) in dataAccessFragment_withError_showError()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataaccess/
DHealthDataAccessFragment.kt29 import com.android.healthconnect.controller.data.access.AccessViewModel.AccessScreenState in <lambda>()
177 is AccessScreenState.Loading -> { in <lambda>()
180 is AccessScreenState.Error -> { in <lambda>()
183 is AccessScreenState.WithData -> { in <lambda>()