Searched refs:toInstantAtStartOfDay (Results 1 – 10 of 10) sorted by relevance
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/ |
D | LoadMostRecentAggregationsUseCaseTest.kt | 16 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()
|
D | LoadPriorityEntriesUseCaseTest.kt | 32 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>() 338 queryDate.toInstantAtStartOfDay(), in <lambda>()
|
D | LoadLastDateWithPriorityDataUseCaseTest.kt | 33 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>() 483 queryDate.toInstantAtStartOfDay(), in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/ |
D | TimeExtensions.kt | 84 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/ |
D | LoadDataEntriesUseCaseTest.kt | 24 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/ |
D | LoadPriorityEntriesUseCase.kt | 12 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>() 38 val localDateInstant = localDate.toInstantAtStartOfDay() in <lambda>()
|
D | LoadLastDateWithPriorityDataUseCase.kt | 28 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>() 127 displayedStartTime = minDate.toInstantAtStartOfDay(), in <lambda>()
|
D | LoadMostRecentAggregationsUseCase.kt | 25 import com.android.healthconnect.controller.utils.toInstantAtStartOfDay in <lambda>() 112 val lastDateInstant = lastDateWithData.toInstantAtStartOfDay() in <lambda>()
|
D | SleepSessionHelper.kt | 12 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/ |
D | TimeExtensionsTest.kt | 26 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()
|