Searched refs:randomInstant (Results 1 – 5 of 5) sorted by relevance
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/ |
D | TimeExtensionsTest.kt | 24 import com.android.healthconnect.controller.utils.randomInstant 206 val randomInstant = localDate.randomInstant() in localDateRandomInstant_returnsInstantOnTheLocalDate() constant 208 assertThat(randomInstant.isOnSameDay(localDate.toInstantAtStartOfDay())).isTrue() in localDateRandomInstant_returnsInstantOnTheLocalDate()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | LoadMostRecentAggregationsUseCaseTest.kt | 15 import com.android.healthconnect.controller.utils.randomInstant 225 val startDate = LocalDate.of(2023, 4, 5).randomInstant() in loadMostRecentAggregations_forSleep_sessionsSpanOneDay_returnsAggregationInfoForOneDay() 226 val endDate = LocalDate.of(2023, 4, 5).randomInstant() in loadMostRecentAggregations_forSleep_sessionsSpanOneDay_returnsAggregationInfoForOneDay() 248 val startDate = LocalDate.of(2023, 4, 5).randomInstant() in loadMostRecentAggregations_forSleep_sessionsSpanTwoDays_returnsAggregationInfoWithStartAndEndTime() 249 val endDate = LocalDate.of(2023, 4, 7).randomInstant() in loadMostRecentAggregations_forSleep_sessionsSpanTwoDays_returnsAggregationInfoWithStartAndEndTime()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 57 import com.android.healthconnect.controller.utils.randomInstant in <lambda>() 136 HealthPermissionType.STEPS -> getStepsRecord(Random.nextLong(0, 5000), date.randomInstant()) in getRandomRecord() 139 Length.fromMeters(Random.nextDouble(0.0, 5000.0)), date.randomInstant()) in getRandomRecord() 142 Energy.fromCalories(Random.nextDouble(1500.0, 5000.0)), date.randomInstant()) in getRandomRecord() 143 HealthPermissionType.SLEEP -> getSleepSessionRecord(date.randomInstant()) in getRandomRecord()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/ |
D | LoadDataEntriesUseCaseTest.kt | 23 import com.android.healthconnect.controller.utils.randomInstant in <lambda>() 79 val stepsRecord = getStepsRecord(100, stepsDate.randomInstant()) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/ |
D | TimeExtensions.kt | 88 fun LocalDate.randomInstant(): Instant { in LocalDate() method
|