Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DExportSettingsViewModel.kt39 private val _storedExportSettings = MutableLiveData<ExportSettings>()
45 val storedExportSettings: LiveData<ExportSettings>
68 _storedExportSettings.postValue(ExportSettings.Loading) in loadExportSettings()
72 _storedExportSettings.postValue(ExportSettings.WithData(result.data)) in loadExportSettings()
75 _storedExportSettings.postValue(ExportSettings.LoadingFailed) in loadExportSettings()
139 _storedExportSettings.postValue(ExportSettings.WithData(frequency)) in updateExportSettings()
143 _storedExportSettings.postValue(ExportSettings.LoadingFailed) in updateExportSettings()
DExportSettings.kt20 sealed class ExportSettings { class
21 data object Loading : ExportSettings()
23 data object LoadingFailed : ExportSettings()
25 data class WithData(val frequency: ExportFrequency) : ExportSettings()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/backuprestore/
DBackupAndRestoreSettingsFragmentTest.kt35 import com.android.healthconnect.controller.exportimport.api.ExportSettings
116 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_WEEKLY)) in backupAndRestoreSettingsFragmentInit_showsFragmentCorrectly()
135 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_WEEKLY)) in backupAndRestoreSettingsFragment_withNoLastSuccessfulDate_doesNotShowLastExportTime()
153 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_NEVER)) in backupAndRestoreSettingsFragment_clicksScheduledExportWhenItIsOff_navigatesToExportSetupActivity()
169 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_DAILY)) in backupAndRestoreSettingsFragment_clicksScheduledExportWhenItIsOn_navigatesToScheduledExportFragment()
185 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_NEVER)) in backupAndRestoreSettingsFragment_whenExportFrequencyIsNever_showsCorrectSummary()
195 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_DAILY)) in backupAndRestoreSettingsFragment_whenExportFrequencyIsDaily_showsCorrectSummary()
205 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_WEEKLY)) in backupAndRestoreSettingsFragment_whenExportFrequencyIsWeekly_showsCorrectSummary()
215 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_MONTHLY)) in backupAndRestoreSettingsFragment_whenExportFrequencyIsMonthly_showsCorrectSummary()
225 MutableLiveData(ExportSettings.WithData(ExportFrequency.EXPORT_FREQUENCY_NEVER)) in backupAndRestoreSettingsFragment_whenImportErrorIsWrongFileError_showsImportErrorBanner()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/api/
DExportSettingsViewModelTest.kt28 import com.android.healthconnect.controller.exportimport.api.ExportSettings
95 val testObserver = TestObserver<ExportSettings>() in <lambda>()
103 .isEqualTo(ExportSettings.WithData(EXPORT_FREQUENCY_WEEKLY)) in <lambda>()
141 val testObserver = TestObserver<ExportSettings>() in <lambda>()
150 .isEqualTo(ExportSettings.WithData(EXPORT_FREQUENCY_MONTHLY)) in <lambda>()
165 val testObserver = TestObserver<ExportSettings>() in <lambda>()
174 .isEqualTo(ExportSettings.WithData(EXPORT_FREQUENCY_DAILY)) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/
DScheduledExportFragment.kt28 import com.android.healthconnect.controller.exportimport.api.ExportSettings in <lambda>()
88 is ExportSettings.WithData -> { in <lambda>()
111 is ExportSettings.LoadingFailed -> in <lambda>()
114 is ExportSettings.Loading -> { in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/backuprestore/
DBackupAndRestoreSettingsFragment.kt28 import com.android.healthconnect.controller.exportimport.api.ExportSettings in <lambda>()
133 is ExportSettings.WithData -> { in <lambda>()
154 is ExportSettings.LoadingFailed -> in <lambda>()