Home
last modified time | relevance | path

Searched refs:isOnSameDay (Results 1 – 3 of 3) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DSleepSessionHelper.kt11 import com.android.healthconnect.controller.utils.isOnSameDay in <lambda>()
121 if (currentSleepSession.endTime.isOnSameDay(currentSleepSession.startTime)) { in <lambda>()
167 if (currentSleepSession.endTime.isOnSameDay(lastDateWithDataInstant)) { in <lambda>()
172 } else if (currentSleepSession.endTime.isOnSameDay(currentSleepSession.startTime)) { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DTimeExtensionsTest.kt23 import com.android.healthconnect.controller.utils.isOnSameDay
85 assertThat(thisInstant.isOnSameDay(otherInstant)).isTrue() in instantIsOnSameDay_whenOtherInstantOnSameLocalDate_returnsTrue()
95 assertThat(thisInstant.isOnSameDay(otherInstant)).isFalse() in instantIsOnSameDay_whenOtherInstantNotOnSameLocalDate_returnsFalse()
208 assertThat(randomInstant.isOnSameDay(localDate.toInstantAtStartOfDay())).isTrue() in localDateRandomInstant_returnsInstantOnTheLocalDate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DTimeExtensions.kt56 fun Instant.isOnSameDay(other: Instant): Boolean { in Instant() method