Home
last modified time | relevance | path

Searched refs:toInstantAtStartOfDay (Results 1 – 10 of 10) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DLoadMostRecentAggregationsUseCaseTest.kt16 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay
105 stepsDate.toInstantAtStartOfDay()), in <lambda>()
109 distanceDate.toInstantAtStartOfDay()), in <lambda>()
113 caloriesDate.toInstantAtStartOfDay()), in <lambda>()
142 distanceDate.toInstantAtStartOfDay()), in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories()
146 caloriesDate.toInstantAtStartOfDay()), in loadMostRecentAggregations_forActivity_whenNoStepsData_returnsInOrder_DistanceCalories()
175 stepsDate.toInstantAtStartOfDay()), in loadMostRecentAggregations_forActivity_whenNoDistanceData_returnsInOrder_StepsCalories()
179 caloriesDate.toInstantAtStartOfDay()), in loadMostRecentAggregations_forActivity_whenNoDistanceData_returnsInOrder_StepsCalories()
208 stepsDate.toInstantAtStartOfDay()), in loadMostRecentAggregations_forActivity_whenNoCaloriesData_returnsInOrder_StepsDistance()
212 distanceDate.toInstantAtStartOfDay()))) in loadMostRecentAggregations_forActivity_whenNoCaloriesData_returnsInOrder_StepsDistance()
DLoadPriorityEntriesUseCaseTest.kt32 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>()
338 queryDate.toInstantAtStartOfDay(), in <lambda>()
DLoadLastDateWithPriorityDataUseCaseTest.kt33 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>()
483 queryDate.toInstantAtStartOfDay(), in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DTimeExtensions.kt84 fun LocalDate.toInstantAtStartOfDay(): Instant { in toInstantAtStartOfDay() method
89 val startOfDay = this.toInstantAtStartOfDay() in LocalDate()
92 val duration = Duration.between(startOfDay, this.plusDays(1).toInstantAtStartOfDay()) in LocalDate()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/
DLoadDataEntriesUseCaseTest.kt24 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>()
75 displayedStartTime = stepsDate.toInstantAtStartOfDay(), in <lambda>()
120 displayedStartTime = sleepDate.toInstantAtStartOfDay(), in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DLoadPriorityEntriesUseCase.kt12 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>()
38 val localDateInstant = localDate.toInstantAtStartOfDay() in <lambda>()
DLoadLastDateWithPriorityDataUseCase.kt28 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>()
127 displayedStartTime = minDate.toInstantAtStartOfDay(), in <lambda>()
DLoadMostRecentAggregationsUseCase.kt25 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>()
112 val lastDateInstant = lastDateWithData.toInstantAtStartOfDay() in <lambda>()
DSleepSessionHelper.kt12 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>()
70 val lastDateWithDataInstant = lastDateWithData.toInstantAtStartOfDay() in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DTimeExtensionsTest.kt26 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay
186 assertThat(testLocalDate.toInstantAtStartOfDay()).isEqualTo(expectedInstant) in localDateToInstantAtStartOfDay_returnsCorrectInstant()
208 assertThat(randomInstant.isOnSameDay(localDate.toInstantAtStartOfDay())).isTrue() in localDateRandomInstant_returnsInstantOnTheLocalDate()