Home
last modified time | relevance | path

Searched refs:toLocalDate (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DTimeExtensions.kt44 fun Instant.toLocalDate(): LocalDate { in toLocalDate() method
45 return atZone(ZoneId.systemDefault()).toLocalDate() in toLocalDate()
57 val localDate1 = this.toLocalDate() in Instant()
58 val localDate2 = other.toLocalDate() in Instant()
63 val localDate1 = this.toLocalDate() in Instant()
64 val localDate2 = other.toLocalDate() in Instant()
69 val localDate1 = this.toLocalDate() in Instant()
70 val localDate2 = other.toLocalDate() in Instant()
75 return this.toLocalDate().atStartOfDay(ZoneId.systemDefault()).toInstant() in atStartOfDay()
79 val localDate1 = this.toLocalDate() in Instant()
[all …]
DDatePickerFactory.kt31 val date = selectedDate.toLocalDate() in create()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/datenavigation/
DDatePickerSpinnerAdapter.kt161 val localDate1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameDay()
162 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameDay()
169 val localDate1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameWeek()
170 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in areOnSameWeek()
178 val monthOfYear1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate().month in areInSameMonth()
179 val monthOfYear2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate().month in areInSameMonth()
185 val year1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate().year in areInSameYear()
186 val year2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate().year in areInSameYear()
DDateNavigationView.kt36 import com.android.healthconnect.controller.utils.toLocalDate
185 .toLocalDate() in updateDisplayedDates()
199 .toLocalDate() in getDisplayedStartDate()
205 selectedDate.atZone(ZoneId.systemDefault()).toLocalDate().dayOfWeek in getDisplayedStartDate()
210 .toLocalDate() in getDisplayedStartDate()
216 selectedDate.atZone(ZoneId.systemDefault()).toLocalDate().dayOfMonth in getDisplayedStartDate()
221 .toLocalDate() in getDisplayedStartDate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DMenstruationPeriodFormatter.kt28 import com.android.healthconnect.controller.utils.toLocalDate
65 return (Period.between(record.startTime.toLocalDate(), day.toLocalDate()).days + in dayOfPeriod()
70 return (DAYS.between(record.startTime.toLocalDate(), record.endTime.toLocalDate()).toInt() + in totalDaysOfPeriod()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/system/
DCobaltClock.java36 return (int) mCurrentInstant.atZone(ZoneOffset.UTC).toLocalDate().toEpochDay(); in dayIndexUtc()
41 return (int) mCurrentInstant.atZone(ZoneId.systemDefault()).toLocalDate().toEpochDay(); in dayIndexLocal()
46 return (int) mCurrentInstant.atZone(ZoneId.of(timeZone)).toLocalDate().toEpochDay(); in dayIndex()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/api/
DLoadEntriesHelper.kt38 import com.android.healthconnect.controller.utils.toLocalDate in <lambda>()
152 .toLocalDate() in <lambda>()
157 .toLocalDate() in <lambda>()
172 val localDate1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate() in <lambda>()
173 val localDate2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate() in <lambda>()
212 .toLocalDate() in <lambda>()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DDateUtils.java38 LocalDate localDate1 = Instant.ofEpochMilli(date1).atZone(timeZone).toLocalDate(); in getDayDifference()
39 LocalDate localDate2 = Instant.ofEpochMilli(date2).atZone(timeZone).toLocalDate(); in getDayDifference()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DLoadLastDateWithPriorityDataUseCase.kt29 import com.android.healthconnect.controller.utils.toLocalDate in <lambda>()
105 val today = timeSource.currentLocalDateTime().toLocalDate() in <lambda>()
135 return loadEntriesHelper.getStartTime(entryRecords[0]).toLocalDate() in <lambda>()
DSleepSessionHelper.kt13 import com.android.healthconnect.controller.utils.toLocalDate in <lambda>()
116 .toLocalDate() in <lambda>()
162 .toLocalDate() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DDateNavigationView.kt37 import com.android.healthconnect.controller.utils.toLocalDate in <lambda>()
151 val curDate = selectedDate.toLocalDate().atStartOfDay() in <lambda>()
154 curDate.isBefore(maxDate?.toLocalDate()?.atStartOfDay()) in <lambda>()
DLoadMenstruationDataUseCase.kt70 .toLocalDate() in <lambda>()
105 .toLocalDate() in <lambda>()
DLoadDataEntriesUseCase.kt65 .toLocalDate() in <lambda>()
DLoadDataAggregationsUseCase.kt179 .toLocalDate() in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DDatePickerFactoryTest.kt25 import com.android.healthconnect.controller.utils.toLocalDate
52 val localSelectedDate = selectedDate.toLocalDate() in create_respectSelectedDate()
DTimeExtensionsTest.kt27 import com.android.healthconnect.controller.utils.toLocalDate
63 val actual = instant.toLocalDate() in instantToLocalDate_returnsCorrectLocalDate()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DLoadMostRecentAggregationsUseCaseTest.kt17 import com.android.healthconnect.controller.utils.toLocalDate
228 HealthPermissionType.SLEEP, startDate.toLocalDate()) in loadMostRecentAggregations_forSleep_sessionsSpanOneDay_returnsAggregationInfoForOneDay()
252 HealthPermissionType.SLEEP, startDate.toLocalDate()) in loadMostRecentAggregations_forSleep_sessionsSpanTwoDays_returnsAggregationInfoWithStartAndEndTime()
DLoadLastDateWithPriorityDataUseCaseTest.kt117 queryDate = timeSource.currentLocalDateTime().toLocalDate().minusMonths(1), in <lambda>()
130 val queryDate = timeSource.currentLocalDateTime().toLocalDate().minusMonths(1) in <lambda>()
179 queryDate = timeSource.currentLocalDateTime().toLocalDate().minusMonths(1), in <lambda>()
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DBootNotificationCreator.java113 LocalDateTime postTime = now.toLocalDate().atTime(REBOOT_HOUR, REBOOT_MINUTE); in onPropertiesChanged()
200 currentTime.toLocalDate().atTime(REBOOT_HOUR, REBOOT_MINUTE).plusDays(1); in tryAgainIn24Hours()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/autodelete/
DAutoDeleteRange.kt64 .toLocalDate() in autoDeleteRangeEnd()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/
DDateTimeUtils.java90 zoneId).toLocalDate(); in getDateHeaderString()
/packages/modules/Bluetooth/service/src/
DAutoOnFeatureTest.kt64 private val timerTarget = LocalDateTime.of(now.toLocalDate(), LocalTime.of(5, 0)).plusDays(1) in <lambda>()
350 val alarmTime = LocalDateTime.of(now.toLocalDate(), LocalTime.of(5, 0)).plusDays(1) in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DPlannedExerciseSessionRecordInternal.java163 getStartTime().atOffset(getStartZoneOffset()).toLocalDate(), in toExternalRecord()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/recentaccess/
DRecentAccessViewModel.kt197 .toLocalDate() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/preference/
DAggregationDataCard.kt136 .toLocalDate() in isLessThanOneYearAgo()

12