Home
last modified time | relevance | path

Searched refs:CategoriesFragmentState (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/categories/
DHealthDataCategoryViewModel.kt34 private val _categoriesData = MutableLiveData<CategoriesFragmentState>()
38 val categoriesData: LiveData<CategoriesFragmentState>
46 _categoriesData.postValue(CategoriesFragmentState.Loading) in loadCategories()
50 _categoriesData.postValue(CategoriesFragmentState.WithData(result.data)) in loadCategories()
53 _categoriesData.postValue(CategoriesFragmentState.Error) in loadCategories()
59 sealed class CategoriesFragmentState { class
60 object Loading : CategoriesFragmentState()
61 object Error : CategoriesFragmentState()
63 CategoriesFragmentState()
DHealthDataAllCategoriesFragment.kt26 …id.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.WithData in <lambda>()
68 HealthDataCategoryViewModel.CategoriesFragmentState.Error -> { in <lambda>()
71 HealthDataCategoryViewModel.CategoriesFragmentState.Loading -> { in <lambda>()
DHealthDataCategoriesFragment.kt32 …droid.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.Error in <lambda>()
33 …oid.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.Loading in <lambda>()
34 …id.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.WithData in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/categories/
DHealthDataCategoriesFragmentTest.kt40 …com.android.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState
41 …id.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.WithData
115 MutableLiveData<CategoriesFragmentState>(WithData(HEALTH_DATA_ALL_CATEGORIES)) in seeAllCategories_navigatesToSeeAllCategories()
134 MutableLiveData<CategoriesFragmentState>(WithData(HEALTH_DATA_ALL_CATEGORIES)) in activityButton_navigatesToActivityDataType()
154 MutableLiveData<CategoriesFragmentState>(WithData(HEALTH_DATA_ALL_CATEGORIES)) in oldIA_autoDelete_navigatesToAutoDelete()
172 MutableLiveData<CategoriesFragmentState>(WithData(emptyList())) in categoriesFragment_isDisplayed()
185 MutableLiveData<CategoriesFragmentState>(WithData(emptyList())) in categoriesFragment_whenNewAppPriorityEnabled_autoDeleteNotDisplayed()
198 MutableLiveData<CategoriesFragmentState>(WithData(emptyList())) in categoriesFragment_emptyCategories_noDataViewIsDisplayed_deleteIconIsDisabled()
210 MutableLiveData<CategoriesFragmentState>(WithData(HEALTH_DATA_ALL_CATEGORIES)) in categoriesFragment_withCategories_categoryInformationIsDisplayed()
227 MutableLiveData<CategoriesFragmentState>(WithData(HEALTH_DATA_ALL_CATEGORIES)) in seeAllCategoriesPreference_isDisplayed()
[all …]
DHealthDataAllCategoriesFragmentTest.kt41 …com.android.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState
42 …droid.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.Error
43 …oid.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.Loading
44 …id.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.WithData
153 MutableLiveData<CategoriesFragmentState>(Loading) in allCategoriesFragment_loadingState_showsLoading()
162 MutableLiveData<CategoriesFragmentState>(WithData(emptyList())) in allCategoriesFragment_withData_hidesLoading()
170 whenever(viewModel.categoriesData).then { MutableLiveData<CategoriesFragmentState>(Error) } in allCategoriesFragment_withError_showError()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/
DDataManagementActivityTest.kt87 MutableLiveData<HealthDataCategoryViewModel.CategoriesFragmentState>( in <lambda>()
88 HealthDataCategoryViewModel.CategoriesFragmentState.WithData(emptyList())) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/navigation/
DTrampolineActivityTest.kt48 …id.healthconnect.controller.categories.HealthDataCategoryViewModel.CategoriesFragmentState.WithData
209 MutableLiveData<CategoriesFragmentState>(WithData(emptyList())) in manageHealthDataIntent_launchesDataManagementActivity()