Searched refs:ExportSettings (Results 1 – 6 of 6) sorted by relevance
39 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()
20 sealed class ExportSettings { class21 data object Loading : ExportSettings()23 data object LoadingFailed : ExportSettings()25 data class WithData(val frequency: ExportFrequency) : ExportSettings()
35 import com.android.healthconnect.controller.exportimport.api.ExportSettings116 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 …]
28 import com.android.healthconnect.controller.exportimport.api.ExportSettings95 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>()
28 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>()
28 import com.android.healthconnect.controller.exportimport.api.ExportSettings in <lambda>()133 is ExportSettings.WithData -> { in <lambda>()154 is ExportSettings.LoadingFailed -> in <lambda>()