/packages/modules/HealthFitness/framework/java/android/health/connect/exportimport/ |
D | ScheduledExportSettings.java | 79 @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()
|
D | ScheduledExportStatus.java | 59 int periodInDays) { in ScheduledExportStatus() argument 62 mPeriodInDays = periodInDays; in ScheduledExportStatus()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/ |
D | ExportFrequency.kt | 25 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()
|
D | ExportSettingsViewModel.kt | 117 _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()
|
D | LoadExportSettingsUseCase.kt | 40 val periodInDays = healthDataExportManager.getScheduledExportPeriodInDays() in invoke() constant 41 val frequency = fromPeriodInDays(periodInDays) in invoke()
|
D | ScheduledExportUiState.kt | 27 val periodInDays: Int constant in com.android.healthconnect.controller.exportimport.api.ScheduledExportUiState
|
D | LoadScheduledExportStatusUseCase.kt | 62 scheduledExportStatus.periodInDays) in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/ |
D | ScheduledExportFragmentTest.kt | 75 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>()
|
D | ExportDestinationFragmentTest.kt | 398 ExportFrequency.EXPORT_FREQUENCY_NEVER.periodInDays)) in <lambda>()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/ |
D | ExportImportSettingsStorage.java | 74 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/ |
D | ExportSettingsViewModelTest.kt | 135 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>()
|
D | UpdateExportSettingsUseCaseTest.kt | 58 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>() 64 .isEqualTo(ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>() 75 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays) in <lambda>()
|
D | LoadExportSettingsUseCaseTest.kt | 57 ExportFrequency.EXPORT_FREQUENCY_DAILY.periodInDays)) in <lambda>()
|
D | LoadScheduledExportStatusUseCaseTest.kt | 71 assertThat(exportStatus.periodInDays).isEqualTo(7) in <lambda>()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/ |
D | ExportImportJobs.java | 49 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/ |
D | ScheduledExportFragment.kt | 135 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/ |
D | FakeHealthDataExportManager.kt | 57 if (settings.periodInDays >= 0) { in configureScheduledExport() 58 scheduledExportPeriodInDays = settings.periodInDays in configureScheduledExport()
|
D | FakeComponents.kt | 462 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/ |
D | HomeFragment.kt | 252 getExportFileAccessErrorBanner(it, scheduledExportUiState.periodInDays)) in <lambda>() 263 periodInDays: Int in <lambda>() 276 lastSuccessfulDate.plus(periodInDays.toLong(), ChronoUnit.DAYS))) in <lambda>()
|