Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/datenavigation/
DDatePickerSpinnerAdapter.kt149 instant2: Instant, in areInSamePeriod()
153 PERIOD_DAY -> areOnSameDay(instant1, instant2) in areInSamePeriod()
154 PERIOD_WEEK -> areOnSameWeek(instant1, instant2) in areInSamePeriod()
155 PERIOD_MONTH -> areInSameMonth(instant1, instant2) in areInSamePeriod()
160 private fun areOnSameDay(instant1: Instant, instant2: Instant): Boolean { in areOnSameDay()
162 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameDay()
167 private fun areOnSameWeek(instant1: Instant, instant2: Instant): Boolean { in areOnSameWeek()
170 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameWeek()
177 private fun areInSameMonth(instant1: Instant, instant2: Instant): Boolean { in areInSameMonth()
179 val monthOfYear2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate().month in areInSameMonth()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DFirstGrantTimeUnitTest.java123 Instant instant2 = Instant.parse("2023-02-12T10:00:00Z"); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained() local
150 currentGrantTimeState.setPackageGrantTime(anotherPackage, instant2); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
162 .hasValue(instant2); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
172 .isEqualTo(instant2); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/api/
DLoadEntriesHelper.kt171 private fun areOnSameDay(instant1: Instant, instant2: Instant): Boolean { in <lambda>()
173 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in <lambda>()