Searched refs:dataSourcesViewModel (Results 1 – 6 of 6) sorted by relevance
89 val dataSourcesViewModel: DataSourcesViewModel = Mockito.mock(DataSourcesViewModel::class.java) in <lambda>() constant in com.android.healthconnect.controller.tests.datasources.DataSourcesFragmentTest99 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 …]
66 val dataSourcesViewModel: DataSourcesViewModel = Mockito.mock(DataSourcesViewModel::class.java) constant in com.android.healthconnect.controller.tests.datasources.AddAnAppFragmentTest82 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()
84 private val dataSourcesViewModel: DataSourcesViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.datasources.DataSourcesFragment137 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 …]
38 private val dataSourcesViewModel: DataSourcesViewModel by activityViewModels() in <lambda>() constant in com.android.healthconnect.controller.datasources.AddAnAppFragment59 dataSourcesViewModel.loadData(category) in <lambda>()60 dataSourcesViewModel.dataSourcesInfo.observe(viewLifecycleOwner) { dataSourcesInfoState -> in <lambda>()98 dataSourcesViewModel.updatePriorityList( in <lambda>()
33 private val dataSourcesViewModel: DataSourcesViewModel, constant51 priorityList = dataSourcesViewModel.getEditedPriorityList() in onBindViewHolder()52 potentialAppSourcesList = dataSourcesViewModel.getEditedPotentialAppSources() in onBindViewHolder()62 dataSourcesViewModel, in onBindViewHolder()
45 private val dataSourcesViewModel: DataSourcesViewModel, in <lambda>() constant106 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>()