Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/
DDataSourcesFragmentTest.kt89 val dataSourcesViewModel: DataSourcesViewModel = Mockito.mock(DataSourcesViewModel::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.datasources.DataSourcesFragmentTest
99 whenever(dataSourcesViewModel.getCurrentSelection()).then { HealthDataCategory.ACTIVITY } in <lambda>()
112 whenever(dataSourcesViewModel.dataSourcesAndAggregationsInfo).then { in <lambda>()
130 whenever(dataSourcesViewModel.getEditedPriorityList()) in <lambda>()
132 whenever(dataSourcesViewModel.updatedAggregationCardsData).then { in <lambda>()
156 whenever(dataSourcesViewModel.dataSourcesAndAggregationsInfo).then { in <lambda>()
164 whenever(dataSourcesViewModel.getEditedPriorityList()).then { listOf(TEST_APP, TEST_APP_2) } in <lambda>()
165 whenever(dataSourcesViewModel.updatedAggregationCardsData).then { in <lambda>()
204 whenever(dataSourcesViewModel.dataSourcesAndAggregationsInfo).then { in <lambda>()
221 whenever(dataSourcesViewModel.getEditedPriorityList()) in <lambda>()
[all …]
DAddAnAppFragmentTest.kt66 val dataSourcesViewModel: DataSourcesViewModel = Mockito.mock(DataSourcesViewModel::class.java) constant in com.android.healthconnect.controller.tests.datasources.AddAnAppFragmentTest
82 whenever(dataSourcesViewModel.dataSourcesInfo).then { in fragmentIsDisplayed()
105 whenever(dataSourcesViewModel.dataSourcesInfo).then { in showsLoading_whenAppSourcesLoading()
119 whenever(dataSourcesViewModel.dataSourcesInfo).then { in showsError_whenAppSourcesError()
134 whenever(dataSourcesViewModel.dataSourcesInfo).then { in addAnApp_navigatesBackToDataSourcesFragment()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/
DDataSourcesFragment.kt84 private val dataSourcesViewModel: DataSourcesViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.datasources.DataSourcesFragment
137 dataSourcesViewModel.setCurrentSelection(currentCategorySelection) in <lambda>()
161 dataSourcesViewModel.loadData(currentCategorySelection) in <lambda>()
163 dataSourcesViewModel.dataSourcesAndAggregationsInfo.observe(viewLifecycleOwner) { in <lambda>()
192 dataSourcesViewModel.updatedAggregationCardsData.observe(viewLifecycleOwner) { in <lambda>()
210 dataSourcesViewModel.loadData(currentCategorySelection) in <lambda>()
235 updateMenu(dataSourcesViewModel.getEditedPriorityList().size > 1) in <lambda>()
236 updateAddApp(dataSourcesViewModel.getEditedPotentialAppSources().isNotEmpty()) in <lambda>()
249 dataSourcesViewModel.setEditedPriorityList(priorityList) in <lambda>()
254 dataSourcesViewModel, in <lambda>()
[all …]
DAddAnAppFragment.kt38 private val dataSourcesViewModel: DataSourcesViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.datasources.AddAnAppFragment
59 dataSourcesViewModel.loadData(category) in <lambda>()
60 dataSourcesViewModel.dataSourcesInfo.observe(viewLifecycleOwner) { dataSourcesInfoState -> in <lambda>()
98 dataSourcesViewModel.updatePriorityList( in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/appsources/
DAppSourcesPreference.kt33 private val dataSourcesViewModel: DataSourcesViewModel, constant
51 priorityList = dataSourcesViewModel.getEditedPriorityList() in onBindViewHolder()
52 potentialAppSourcesList = dataSourcesViewModel.getEditedPotentialAppSources() in onBindViewHolder()
62 dataSourcesViewModel, in onBindViewHolder()
DAppSourcesAdapter.kt45 private val dataSourcesViewModel: DataSourcesViewModel, in <lambda>() constant
106 dataSourcesViewModel.updatePriorityList(priorityList.map { it.packageName }, category) in <lambda>()
193 dataSourcesViewModel.setEditedPriorityList(currentPriority) in <lambda>()
194 dataSourcesViewModel.updatePriorityList( in <lambda>()
198 dataSourcesViewModel.loadPotentialAppSources(category, false) in <lambda>()
199 dataSourcesViewModel.setEditedPotentialAppSources(potentialAppSourcesList) in <lambda>()