Home
last modified time | relevance | path

Searched refs:ExportImportSettingsStorage (Results 1 – 9 of 9) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DExportImportSettingsStorageTest.java61 ExportImportSettingsStorage.configure(ScheduledExportSettings.withUri(Uri.parse(TEST_URI))); in testConfigure_uri()
69 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(7)); in testConfigure_uri_keepsOtherSettings()
71 ExportImportSettingsStorage.configure(ScheduledExportSettings.withUri(Uri.parse(TEST_URI))); in testConfigure_uri_keepsOtherSettings()
79 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(7)); in testConfigure_periodInDays()
87 ExportImportSettingsStorage.configure(ScheduledExportSettings.withUri(Uri.parse(TEST_URI))); in testConfigure_periodInDays_keepsOtherSettings()
89 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(7)); in testConfigure_periodInDays_keepsOtherSettings()
97 ExportImportSettingsStorage.configure(ScheduledExportSettings.withUri(Uri.parse(TEST_URI))); in testConfigure_clear()
98 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(7)); in testConfigure_clear()
100 ExportImportSettingsStorage.configure(null); in testConfigure_clear()
108 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(1)); in testGetScheduledExportPeriodInDays()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DImportManager.java35 import com.android.server.healthconnect.storage.ExportImportSettingsStorage;
68 ExportImportSettingsStorage.setImportOngoing(true); in runImport()
82 ExportImportSettingsStorage.setLastImportError(DATA_IMPORT_ERROR_UNKNOWN); in runImport()
94 ExportImportSettingsStorage.setLastImportError(DATA_IMPORT_ERROR_WRONG_FILE); in runImport()
98 ExportImportSettingsStorage.setLastImportError(DATA_IMPORT_ERROR_VERSION_MISMATCH); in runImport()
102 ExportImportSettingsStorage.setLastImportError(DATA_IMPORT_ERROR_UNKNOWN); in runImport()
106 ExportImportSettingsStorage.setLastImportError(DATA_IMPORT_ERROR_NONE); in runImport()
113 ExportImportSettingsStorage.setImportOngoing(false); in runImport()
DExportManager.java29 import com.android.server.healthconnect.storage.ExportImportSettingsStorage;
100 ExportImportSettingsStorage.setLastExportError( in runExport()
109 ExportImportSettingsStorage.setLastExportError( in runExport()
118 ExportImportSettingsStorage.setLastExportError( in runExport()
124 exportToUri(localExportZipFile, ExportImportSettingsStorage.getUri()); in runExport()
127 ExportImportSettingsStorage.setLastExportError( in runExport()
132 ExportImportSettingsStorage.setLastExportError( in runExport()
138 ExportImportSettingsStorage.setLastSuccessfulExport(mClock.instant()); in runExport()
DExportImportJobs.java30 import com.android.server.healthconnect.storage.ExportImportSettingsStorage;
49 int periodInDays = ExportImportSettingsStorage.getScheduledExportPeriodInDays(); in schedulePeriodicExportJob()
82 if (!exportImport() || ExportImportSettingsStorage.getScheduledExportPeriodInDays() <= 0) { in executePeriodicExportJob()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/
DExportImportJobsTest.java35 import com.android.server.healthconnect.storage.ExportImportSettingsStorage;
73 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(0)); in schedulePeriodicExportJob_withPeriodZero_doesNotScheduleExportJob()
82 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(1)); in schedulePeriodicExportJob_withPeriodGreaterThanZero_schedulesExportJob()
94 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(0)); in executePeriodicExportJob_withPeriodZero_doesNotRunExport()
104 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(0)); in executePeriodicExportJob_withPeriodZero_returnsTrue()
114 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(1)); in executePeriodicExportJob_withPeriodGreaterThanZero_runsExport()
124 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(1)); in executePeriodicExportJob_successfulExport_returnsTrue()
135 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(1)); in executePeriodicExportJob_failedExport_returnsFalse()
DExportManagerTest.java37 import com.android.server.healthconnect.storage.ExportImportSettingsStorage;
182 ExportImportSettingsStorage.setLastExportError(HealthConnectManager.DATA_EXPORT_ERROR_NONE); in runExport_destinationUriDoesNotExist_exportFails()
184 ExportImportSettingsStorage.configure( in runExport_destinationUriDoesNotExist_exportFails()
188 assertThat(ExportImportSettingsStorage.getScheduledExportStatus().getDataExportError()) in runExport_destinationUriDoesNotExist_exportFails()
202 ExportImportSettingsStorage.getScheduledExportStatus() in runExport_updatesLastSuccessfulExport_onSuccessOnly()
208 ExportImportSettingsStorage.configure( in runExport_updatesLastSuccessfulExport_onSuccessOnly()
217 ExportImportSettingsStorage.configure( in configureExportUri()
DImportManagerTest.java43 import com.android.server.healthconnect.storage.ExportImportSettingsStorage;
146 assertThat(ExportImportSettingsStorage.getImportStatus().getDataImportError()) in copiesAllData()
222 assertThat(ExportImportSettingsStorage.getImportStatus().getDataImportError()) in runImport_importNotADatabase_setsWrongFileError()
243 assertThat(ExportImportSettingsStorage.getImportStatus().getDataImportError()) in runImport_versionMismatch_setsVersionMismatchError()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DExportImportSettingsStorage.java38 public final class ExportImportSettingsStorage { class
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java150 import com.android.server.healthconnect.storage.ExportImportSettingsStorage;
2056 ExportImportSettingsStorage.configure(settings); in configureScheduledExport()
2100 ExportImportSettingsStorage.getScheduledExportStatus(); in getScheduledExportStatus()
2123 return ExportImportSettingsStorage.getScheduledExportPeriodInDays(); in getScheduledExportPeriodInDays()
2147 ImportStatus status = ExportImportSettingsStorage.getImportStatus(); in getImportStatus()