Home
last modified time | relevance | path

Searched refs:exportSettingsViewModel (Results 1 – 4 of 4) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/backuprestore/
DBackupAndRestoreSettingsFragmentTest.kt66 val exportSettingsViewModel: ExportSettingsViewModel = constant in com.android.healthconnect.controller.tests.backuprestore.BackupAndRestoreSettingsFragmentTest
115 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragmentInit_showsFragmentCorrectly()
134 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_withNoLastSuccessfulDate_doesNotShowLastExportTime()
152 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_clicksScheduledExportWhenItIsOff_navigatesToExportSetupActivity()
168 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_clicksScheduledExportWhenItIsOn_navigatesToScheduledExportFragment()
184 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_whenExportFrequencyIsNever_showsCorrectSummary()
194 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_whenExportFrequencyIsDaily_showsCorrectSummary()
204 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_whenExportFrequencyIsWeekly_showsCorrectSummary()
214 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_whenExportFrequencyIsMonthly_showsCorrectSummary()
224 whenever(exportSettingsViewModel.storedExportSettings).then { in backupAndRestoreSettingsFragment_whenImportErrorIsWrongFileError_showsImportErrorBanner()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/
DScheduledExportFragment.kt51 private val exportSettingsViewModel: ExportSettingsViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.exportimport.ScheduledExportFragment
86 exportSettingsViewModel.storedExportSettings.observe(viewLifecycleOwner) { exportSettings -> in <lambda>()
100 exportSettingsViewModel.updatePreviousExportFrequency(exportSettings.frequency) in <lambda>()
107 exportSettingsViewModel::updateExportFrequency) in <lambda>()
122 exportSettingsViewModel.previousExportFrequency.value?.let { previousExportFrequency in <lambda>()
124 exportSettingsViewModel.updateExportFrequency(previousExportFrequency) in <lambda>()
127 exportSettingsViewModel.updateExportFrequency( in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/
DExportFrequencyFragmentTest.kt55 val exportSettingsViewModel: ExportSettingsViewModel = constant in com.android.healthconnect.controller.tests.exportimport.ExportFrequencyFragmentTest
66 whenever(exportSettingsViewModel.selectedExportFrequency).then { in setup()
120 verify(exportSettingsViewModel, times(2)) in exportFrequencyFragment_dailyButtonIsCheckedByDefault()
130 verify(exportSettingsViewModel) in exportFrequencyFragment_checksWeeklyButton_updatesSelectedFrequency()
140 verify(exportSettingsViewModel) in exportFrequencyFragment_checksMonthlyButton_updatesSelectedFrequency()
146 whenever(exportSettingsViewModel.selectedExportFrequency).then { in exportFrequencyFragment_selectedFrequencyIsDaily_dailyButtonChecked()
156 whenever(exportSettingsViewModel.selectedExportFrequency).then { in exportFrequencyFragment_selectedFrequencyIsWeekly_weeklyButtonChecked()
166 whenever(exportSettingsViewModel.selectedExportFrequency).then { in exportFrequencyFragment_selectedFrequencyIsMonthly_monthlyButtonChecked()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/backuprestore/
DBackupAndRestoreSettingsFragment.kt61 private val exportSettingsViewModel: ExportSettingsViewModel by viewModels() in <lambda>() constant in com.android.healthconnect.controller.backuprestore.BackupAndRestoreSettingsFragment
131 exportSettingsViewModel.storedExportSettings.observe(viewLifecycleOwner) { exportSettings -> in <lambda>()
163 exportSettingsViewModel.loadExportSettings() in <lambda>()