Home
last modified time | relevance | path

Searched refs:periodInDays (Results 1 – 19 of 19) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/exportimport/
DScheduledExportSettings.java79 @IntRange(from = 0, to = 30) int periodInDays) { in withPeriodInDays()
80 if (periodInDays < 0 || periodInDays > 30) { in withPeriodInDays()
84 return new ScheduledExportSettings(null, periodInDays); in withPeriodInDays()
92 @NonNull Uri uri, @IntRange(from = 0, to = 30) int periodInDays) { in withUriAndPeriodInDays()
95 if (periodInDays < 0 || periodInDays > 30) { in withUriAndPeriodInDays()
99 return new ScheduledExportSettings(uri, periodInDays); in withUriAndPeriodInDays()
109 private ScheduledExportSettings(@Nullable Uri uri, int periodInDays) { in ScheduledExportSettings() argument
111 mPeriodInDays = periodInDays; in ScheduledExportSettings()
DScheduledExportStatus.java59 int periodInDays) { in ScheduledExportStatus() argument
62 mPeriodInDays = periodInDays; in ScheduledExportStatus()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DExportFrequency.kt25 enum class ExportFrequency(val periodInDays: Int) { in <lambda>() constant in com.android.healthconnect.controller.exportimport.api.ExportFrequency
36 fun fromPeriodInDays(periodInDays: Int): ExportFrequency { in fromPeriodInDays()
38 if (frequency.periodInDays == periodInDays) { in fromPeriodInDays()
43 "Export frequency period in days $periodInDays is not supported") in fromPeriodInDays()
DExportSettingsViewModel.kt117 _selectedExportFrequency.value?.periodInDays in updateExportUriWithSelectedFrequency()
118 ?: ExportFrequency.EXPORT_FREQUENCY_NEVER.periodInDays) in updateExportUriWithSelectedFrequency()
124 val settings = ScheduledExportSettings.withPeriodInDays(frequency.periodInDays) in updateExportFrequency()
137 if (settings.periodInDays != DEFAULT_INT) { in updateExportSettings()
138 val frequency = fromPeriodInDays(settings.periodInDays) in updateExportSettings()
DLoadExportSettingsUseCase.kt40 val periodInDays = healthDataExportManager.getScheduledExportPeriodInDays() in invoke() constant
41 val frequency = fromPeriodInDays(periodInDays) in invoke()
DScheduledExportUiState.kt27 val periodInDays: Int constant in com.android.healthconnect.controller.exportimport.api.ScheduledExportUiState
DLoadScheduledExportStatusUseCase.kt62 scheduledExportStatus.periodInDays) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/
DScheduledExportFragmentTest.kt75 ExportFrequency.EXPORT_FREQUENCY_WEEKLY.periodInDays in <lambda>()
122 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays in <lambda>()
132 ExportFrequency.EXPORT_FREQUENCY_WEEKLY.periodInDays in <lambda>()
142 ExportFrequency.EXPORT_FREQUENCY_MONTHLY.periodInDays in <lambda>()
160 ExportFrequency.EXPORT_FREQUENCY_NEVER.periodInDays)) in <lambda>()
185 ExportFrequency.EXPORT_FREQUENCY_NEVER.periodInDays)) in <lambda>()
192 ExportFrequency.EXPORT_FREQUENCY_WEEKLY.periodInDays)) in <lambda>()
198 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays in <lambda>()
208 ExportFrequency.EXPORT_FREQUENCY_MONTHLY.periodInDays)) in <lambda>()
DExportDestinationFragmentTest.kt398 ExportFrequency.EXPORT_FREQUENCY_NEVER.periodInDays)) in <lambda>()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DExportImportSettingsStorage.java74 String periodInDays = String.valueOf(settings.getPeriodInDays()); in configureNonNull() local
76 .insertOrReplacePreference(EXPORT_PERIOD_PREFERENCE_KEY, periodInDays); in configureNonNull()
121 String periodInDays = prefHelper.getPreference(EXPORT_PERIOD_PREFERENCE_KEY); in getScheduledExportStatus() local
130 periodInDays == null ? 0 : Integer.parseInt(periodInDays)); in getScheduledExportStatus()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/api/
DExportSettingsViewModelTest.kt135 assertThat(updateExportSettingsUseCase.mostRecentSettings.periodInDays) in <lambda>()
159 assertThat(updateExportSettingsUseCase.mostRecentSettings.periodInDays) in <lambda>()
160 .isEqualTo(EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>()
198 assertThat(updateExportSettingsUseCase.mostRecentSettings.periodInDays) in <lambda>()
199 .isEqualTo(EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>()
DUpdateExportSettingsUseCaseTest.kt58 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>()
64 .isEqualTo(ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>()
75 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>()
DLoadExportSettingsUseCaseTest.kt57 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays)) in <lambda>()
DLoadScheduledExportStatusUseCaseTest.kt71 assertThat(exportStatus.periodInDays).isEqualTo(7) in <lambda>()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DExportImportJobs.java49 int periodInDays = ExportImportSettingsStorage.getScheduledExportPeriodInDays(); in schedulePeriodicExportJob() local
50 if (periodInDays <= 0) { in schedulePeriodicExportJob()
63 Duration.ofDays(periodInDays).toMillis(), in schedulePeriodicExportJob()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/
DScheduledExportFragment.kt135 val periodInDays = scheduledExportUiState.periodInDays in <lambda>() constant
141 lastSuccessfulExportTime.plus(periodInDays.toLong(), ChronoUnit.DAYS))) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeHealthDataExportManager.kt57 if (settings.periodInDays >= 0) { in configureScheduledExport()
58 scheduledExportPeriodInDays = settings.periodInDays in configureScheduledExport()
DFakeComponents.kt462 ScheduledExportSettings.withPeriodInDays(EXPORT_FREQUENCY_NEVER.periodInDays)
473 ScheduledExportSettings.withPeriodInDays(EXPORT_FREQUENCY_NEVER.periodInDays) in reset()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/home/
DHomeFragment.kt252 getExportFileAccessErrorBanner(it, scheduledExportUiState.periodInDays)) in <lambda>()
263 periodInDays: Int in <lambda>()
276 lastSuccessfulDate.plus(periodInDays.toLong(), ChronoUnit.DAYS))) in <lambda>()