Home
last modified time | relevance | path

Searched refs:ScheduledExportSettings (Results 1 – 21 of 21) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/exportimport/
DScheduledExportSettingsTest.java38 ScheduledExportSettings settings = ScheduledExportSettings.withUri(TEST_URI); in testWithUri()
42 ScheduledExportSettings deserializedSettings = in testWithUri()
43 settingsParcel.readTypedObject(ScheduledExportSettings.CREATOR); in testWithUri()
51 ScheduledExportSettings settings = ScheduledExportSettings.withPeriodInDays(7); in testWithPeriodInDays()
55 ScheduledExportSettings deserializedSettings = in testWithPeriodInDays()
56 settingsParcel.readTypedObject(ScheduledExportSettings.CREATOR); in testWithPeriodInDays()
64 ScheduledExportSettings settings = in testWithUriAndPeriodInDays()
65 ScheduledExportSettings.withUriAndPeriodInDays(TEST_URI, 7); in testWithUriAndPeriodInDays()
69 ScheduledExportSettings deserializedSettings = in testWithUriAndPeriodInDays()
70 settingsParcel.readTypedObject(ScheduledExportSettings.CREATOR); in testWithUriAndPeriodInDays()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/exportimport/
DScheduledExportSettings.java35 public final class ScheduledExportSettings implements Parcelable { class
37 public static final Creator<ScheduledExportSettings> CREATOR =
40 public ScheduledExportSettings createFromParcel(Parcel in) {
41 return new ScheduledExportSettings(in);
45 public ScheduledExportSettings[] newArray(int size) {
46 return new ScheduledExportSettings[size];
56 if (!(o instanceof ScheduledExportSettings that)) return false; in equals()
68 public static ScheduledExportSettings withUri(@NonNull Uri uri) { in withUri()
71 return new ScheduledExportSettings(uri, DEFAULT_INT); in withUri()
78 public static ScheduledExportSettings withPeriodInDays( in withPeriodInDays()
[all …]
DScheduledExportSettings.aidl8 parcelable ScheduledExportSettings;
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DExportImportSettingsStorageTest.java26 import android.health.connect.exportimport.ScheduledExportSettings;
61 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()
108 ExportImportSettingsStorage.configure(ScheduledExportSettings.withPeriodInDays(1)); in testGetScheduledExportPeriodInDays()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/exportimport/
DExportImportJobsTest.java28 import android.health.connect.exportimport.ScheduledExportSettings;
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.java29 import android.health.connect.exportimport.ScheduledExportSettings;
185 ScheduledExportSettings.withUri(Uri.fromFile(new File("inaccessible")))); in runExport_destinationUriDoesNotExist_exportFails()
209 ScheduledExportSettings.withUri(Uri.fromFile(new File("inaccessible")))); in runExport_updatesLastSuccessfulExport_onSuccessOnly()
218 ScheduledExportSettings.withUri( in configureExportUri()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DExportSettingsViewModel.kt20 import android.health.connect.exportimport.ScheduledExportSettings
105 val settings = ScheduledExportSettings.withUri(uri) in updateExportUri()
115 ScheduledExportSettings.withUriAndPeriodInDays( in updateExportUriWithSelectedFrequency()
124 val settings = ScheduledExportSettings.withPeriodInDays(frequency.periodInDays) in updateExportFrequency()
133 private fun updateExportSettings(settings: ScheduledExportSettings) { in updateExportSettings()
DUpdateExportSettingsUseCase.kt20 import android.health.connect.exportimport.ScheduledExportSettings
39 settings: ScheduledExportSettings in invoke()
54 suspend fun invoke(settings: ScheduledExportSettings): ExportImportUseCaseResult<Unit>
DHealthDataExportManager.kt21 import android.health.connect.exportimport.ScheduledExportSettings
30 fun configureScheduledExport(settings: ScheduledExportSettings)
DHealthDataExportManagerImpl.kt22 import android.health.connect.exportimport.ScheduledExportSettings
36 override fun configureScheduledExport(settings: ScheduledExportSettings) { in configureScheduledExport()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/
DScheduledExportFragmentTest.kt20 import android.health.connect.exportimport.ScheduledExportSettings in <lambda>()
159 ScheduledExportSettings.withPeriodInDays( in <lambda>()
184 ScheduledExportSettings.withPeriodInDays( in <lambda>()
191 ScheduledExportSettings.withPeriodInDays( in <lambda>()
207 ScheduledExportSettings.withPeriodInDays( in <lambda>()
DExportDestinationFragmentTest.kt24 import android.health.connect.exportimport.ScheduledExportSettings in <lambda>()
396 ScheduledExportSettings.withUriAndPeriodInDays( in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/api/
DUpdateExportSettingsUseCaseTest.kt20 import android.health.connect.exportimport.ScheduledExportSettings
57 ScheduledExportSettings.withPeriodInDays( in <lambda>()
74 ScheduledExportSettings.withPeriodInDays( in <lambda>()
DLoadExportSettingsUseCaseTest.kt20 import android.health.connect.exportimport.ScheduledExportSettings
56 ScheduledExportSettings.withPeriodInDays( in <lambda>()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DExportImportSettingsStorage.java25 import android.health.connect.exportimport.ScheduledExportSettings;
57 public static void configure(@Nullable ScheduledExportSettings settings) { in configure()
66 private static void configureNonNull(@NonNull ScheduledExportSettings settings) { in configureNonNull()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeHealthDataExportManager.kt22 import android.health.connect.exportimport.ScheduledExportSettings
54 override fun configureScheduledExport(settings: ScheduledExportSettings) { in configureScheduledExport()
DFakeComponents.kt21 import android.health.connect.exportimport.ScheduledExportSettings
461 var mostRecentSettings: ScheduledExportSettings =
462 ScheduledExportSettings.withPeriodInDays(EXPORT_FREQUENCY_NEVER.periodInDays)
465 settings: ScheduledExportSettings in invoke()
473 ScheduledExportSettings.withPeriodInDays(EXPORT_FREQUENCY_NEVER.periodInDays) in reset()
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DIHealthConnectService.aidl35 import android.health.connect.exportimport.ScheduledExportSettings;
344 …void configureScheduledExport(in @nullable ScheduledExportSettings settings, in UserHandle userHan… in configureScheduledExport()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/
DHealthConnectServiceImplTest.java55 import android.health.connect.exportimport.ScheduledExportSettings;
483 ScheduledExportSettings.withUri(Uri.parse(TEST_URI)), mUserHandle); in testConfigureScheduledExport_schedulesAnInternalTask()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthConnectManager.java94 import android.health.connect.exportimport.ScheduledExportSettings;
1778 public void configureScheduledExport(@Nullable ScheduledExportSettings settings) { in configureScheduledExport()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java107 import android.health.connect.exportimport.ScheduledExportSettings;
2047 @Nullable ScheduledExportSettings settings, @NonNull UserHandle user) { in configureScheduledExport()