/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/ |
D | TimeExtensions.kt | 44 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 …]
|
D | DatePickerFactory.kt | 31 val date = selectedDate.toLocalDate() in create()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/datenavigation/ |
D | DatePickerSpinnerAdapter.kt | 161 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()
|
D | DateNavigationView.kt | 36 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/ |
D | MenstruationPeriodFormatter.kt | 28 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/ |
D | CobaltClock.java | 36 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/ |
D | LoadEntriesHelper.kt | 38 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/ |
D | DateUtils.java | 38 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/ |
D | LoadLastDateWithPriorityDataUseCase.kt | 29 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>()
|
D | SleepSessionHelper.kt | 13 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/ |
D | DateNavigationView.kt | 37 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>()
|
D | LoadMenstruationDataUseCase.kt | 70 .toLocalDate() in <lambda>() 105 .toLocalDate() in <lambda>()
|
D | LoadDataEntriesUseCase.kt | 65 .toLocalDate() in <lambda>()
|
D | LoadDataAggregationsUseCase.kt | 179 .toLocalDate() in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/ |
D | DatePickerFactoryTest.kt | 25 import com.android.healthconnect.controller.utils.toLocalDate 52 val localSelectedDate = selectedDate.toLocalDate() in create_respectSelectedDate()
|
D | TimeExtensionsTest.kt | 27 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/ |
D | LoadMostRecentAggregationsUseCaseTest.kt | 17 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()
|
D | LoadLastDateWithPriorityDataUseCaseTest.kt | 117 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/ |
D | BootNotificationCreator.java | 113 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/ |
D | AutoDeleteRange.kt | 64 .toLocalDate() in autoDeleteRangeEnd()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/ |
D | DateTimeUtils.java | 90 zoneId).toLocalDate(); in getDateHeaderString()
|
/packages/modules/Bluetooth/service/src/ |
D | AutoOnFeatureTest.kt | 64 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/ |
D | PlannedExerciseSessionRecordInternal.java | 163 getStartTime().atOffset(getStartZoneOffset()).toLocalDate(), in toExternalRecord()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/recentaccess/ |
D | RecentAccessViewModel.kt | 197 .toLocalDate() in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/preference/ |
D | AggregationDataCard.kt | 136 .toLocalDate() in isLessThanOneYearAgo()
|