Home
last modified time | relevance | path

Searched refs:toLocalDateTime (Results 1 – 12 of 12) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregateWithFiltersTest.java153 LocalDateTime localTime = startTime.atOffset(mCurrentZone).toLocalDateTime(); in dataOriginFilter_invalidApp_noDataReturned()
201 LocalDateTime localTime = startTime.atOffset(mCurrentZone).toLocalDateTime(); in dataOriginFilter_appNotInPriorityList_noDataReturned()
246 LocalDateTime localTime = startTime.atOffset(mCurrentZone).toLocalDateTime(); in dataOriginFilter_noDataFromFilteredApps_noDataReturned()
287 LocalDateTime localTime = startTime.atOffset(mCurrentZone).toLocalDateTime(); in timeRangeFilter_noDataWithinTimeInterval_noDataReturned()
327 LocalDateTime startLocalTime = startTime.atOffset(dataZone).toLocalDateTime(); in timeRangeFilter_priorityType_outOfRangePriorityDataTrimmed()
328 LocalDateTime endLocalTime = endTime.atOffset(dataZone).toLocalDateTime(); in timeRangeFilter_priorityType_outOfRangePriorityDataTrimmed()
365 LocalDateTime startLocalTime = startTime.atOffset(dataZone).toLocalDateTime(); in timeRangeFilter_nonPriorityType_outOfRangeNonPriorityDataExcluded()
366 LocalDateTime endLocalTime = endTime.atOffset(dataZone).toLocalDateTime(); in timeRangeFilter_nonPriorityType_outOfRangeNonPriorityDataExcluded()
398 LocalDateTime endLocalTime = filterEndTime.atOffset(dataZone).toLocalDateTime(); in timeRangeFilter_openStartTime_aggregateDataFromEpoch()
431 LocalDateTime startLocalTime = filterStartTime.atOffset(dataZone).toLocalDateTime(); in timeRangeFilter_openEndTime_aggregateDataUntilFuture()
[all …]
DAggregationApisTest.java213 LocalDateTime localTime = time.atOffset(dataZone).toLocalDateTime(); in groupByDurationWithLocalFilter_distanceTotal()
254 LocalDateTime localTime = time.atOffset(dataZone).toLocalDateTime(); in groupByPeriod_weightAvg()
353 LocalDateTime localTime = time.atOffset(UTC).toLocalDateTime(); in groupByPeriod_stepsCadenceMax()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DTimeExtensions.kt52 fun Instant.toLocalDateTime(): LocalDateTime { in Instant() method
53 return atZone(ZoneId.systemDefault()).toLocalDateTime() in Instant()
DSystemTimeSource.kt42 .toLocalDateTime() in currentLocalDateTime()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DTimeExtensionsTest.kt28 import com.android.healthconnect.controller.utils.toLocalDateTime
197 assertThat(testInstant.toLocalDateTime()).isEqualTo(expectedLocalDateTime) in instantToLocalDateTime_returnsLocalizedDateTime()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/
DTimeTest.java58 return LocalDateTime.parse(text, FORMATTER).atOffset(ZoneOffset.UTC).toLocalDateTime(); in getUtcLocalDateTime()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestTimeSource.kt41 Instant.ofEpochMilli(currentTimeMillis()).atZone(deviceZoneOffset()).toLocalDateTime() in currentTimeMillis()
DTestConstants.kt59 import com.android.healthconnect.controller.utils.toLocalDateTime in <lambda>()
98 val endTime = startTime.toLocalDateTime().plusHours(8).toInstant() in getSleepSessionRecord()
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DBootNotificationCreator.java112 LocalDateTime currentTime = now.toLocalDateTime(); in onPropertiesChanged()
DUnattendedRebootManager.java369 .toLocalDateTime() in tryRebootOrSchedule()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/
DMapClientContent.java873 .toLocalDateTime()); in toDatetimeString()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java735 LocalDateTime localStart = t0100.atZone(utcPlusOne).toLocalDateTime(); in testAggregation_stepsCountTotal_acrossDST_works()