/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/exportimport/ |
D | ScheduledExportSettingsTest.java | 38 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/ |
D | ScheduledExportSettings.java | 35 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 …]
|
D | ScheduledExportSettings.aidl | 8 parcelable ScheduledExportSettings;
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/ |
D | ExportImportSettingsStorageTest.java | 26 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/ |
D | ExportImportJobsTest.java | 28 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()
|
D | ExportManagerTest.java | 29 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/ |
D | ExportSettingsViewModel.kt | 20 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()
|
D | UpdateExportSettingsUseCase.kt | 20 import android.health.connect.exportimport.ScheduledExportSettings 39 settings: ScheduledExportSettings in invoke() 54 suspend fun invoke(settings: ScheduledExportSettings): ExportImportUseCaseResult<Unit>
|
D | HealthDataExportManager.kt | 21 import android.health.connect.exportimport.ScheduledExportSettings 30 fun configureScheduledExport(settings: ScheduledExportSettings)
|
D | HealthDataExportManagerImpl.kt | 22 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/ |
D | ScheduledExportFragmentTest.kt | 20 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>()
|
D | ExportDestinationFragmentTest.kt | 24 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/ |
D | UpdateExportSettingsUseCaseTest.kt | 20 import android.health.connect.exportimport.ScheduledExportSettings 57 ScheduledExportSettings.withPeriodInDays( in <lambda>() 74 ScheduledExportSettings.withPeriodInDays( in <lambda>()
|
D | LoadExportSettingsUseCaseTest.kt | 20 import android.health.connect.exportimport.ScheduledExportSettings 56 ScheduledExportSettings.withPeriodInDays( in <lambda>()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/ |
D | ExportImportSettingsStorage.java | 25 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/ |
D | FakeHealthDataExportManager.kt | 22 import android.health.connect.exportimport.ScheduledExportSettings 54 override fun configureScheduledExport(settings: ScheduledExportSettings) { in configureScheduledExport()
|
D | FakeComponents.kt | 21 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/ |
D | IHealthConnectService.aidl | 35 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/ |
D | HealthConnectServiceImplTest.java | 55 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/ |
D | HealthConnectManager.java | 94 import android.health.connect.exportimport.ScheduledExportSettings; 1778 public void configureScheduledExport(@Nullable ScheduledExportSettings settings) { in configureScheduledExport()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/ |
D | HealthConnectServiceImpl.java | 107 import android.health.connect.exportimport.ScheduledExportSettings; 2047 @Nullable ScheduledExportSettings settings, @NonNull UserHandle user) { in configureScheduledExport()
|