Home
last modified time | relevance | path

Searched refs:randomInstant (Results 1 – 5 of 5) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DTimeExtensionsTest.kt24 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/
DLoadMostRecentAggregationsUseCaseTest.kt15 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/
DTestConstants.kt57 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/
DLoadDataEntriesUseCaseTest.kt23 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/
DTimeExtensions.kt88 fun LocalDate.randomInstant(): Instant { in LocalDate() method