Home
last modified time | relevance | path

Searched refs:getZoneOffset (Results 1 – 25 of 103) sorted by relevance

12345

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DInstantRecord.java68 public ZoneOffset getZoneOffset() { in getZoneOffset() method in InstantRecord
84 && this.getZoneOffset().equals(other.getZoneOffset()); in equals()
92 return Objects.hash(super.hashCode(), this.getTime(), this.getZoneOffset()); in hashCode()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregationApisTest.java196 assertThat(responses.get(0).getZoneOffset(ACTIVE_CALORIES_TOTAL)).isNull(); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
201 assertThat(responses.get(1).getZoneOffset(ACTIVE_CALORIES_TOTAL)).isEqualTo(mCurrentZone); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
206 assertThat(responses.get(2).getZoneOffset(ACTIVE_CALORIES_TOTAL)).isEqualTo(mCurrentZone); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
237 assertThat(responses.get(0).getZoneOffset(DISTANCE_TOTAL)).isNull(); in groupByDurationWithLocalFilter_distanceTotal()
242 assertThat(responses.get(1).getZoneOffset(DISTANCE_TOTAL)).isEqualTo(dataZone); in groupByDurationWithLocalFilter_distanceTotal()
247 assertThat(responses.get(2).getZoneOffset(DISTANCE_TOTAL)).isEqualTo(dataZone); in groupByDurationWithLocalFilter_distanceTotal()
275 assertThat(responses.get(0).getZoneOffset(WEIGHT_AVG)).isEqualTo(dataZone); in groupByPeriod_weightAvg()
281 assertThat(responses.get(1).getZoneOffset(WEIGHT_AVG)).isEqualTo(dataZone); in groupByPeriod_weightAvg()
287 assertThat(responses.get(2).getZoneOffset(WEIGHT_AVG)).isNull(); in groupByPeriod_weightAvg()
330 assertThat(responses.get(0).getZoneOffset(WEIGHT_MIN)).isEqualTo(record1.getZoneOffset()); in groupByDurationWithInstantFilter_weightMin()
[all …]
DExerciseDurationAggregationTest.java118 assertThat(response.getZoneOffset(EXERCISE_DURATION_TOTAL)) in testSimpleAggregation_oneSession_returnsItsDuration()
140 assertThat(response.getZoneOffset(EXERCISE_DURATION_TOTAL)) in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration()
163 assertThat(response.getZoneOffset(EXERCISE_DURATION_TOTAL)) in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DHeartRateRecordTest.java579 assertThat(response.getZoneOffset(BPM_MAX)) in testBpmAggregation_timeRange_all()
583 assertThat(response.getZoneOffset(BPM_MIN)) in testBpmAggregation_timeRange_all()
587 assertThat(response.getZoneOffset(BPM_AVG)) in testBpmAggregation_timeRange_all()
622 assertThat(response.getZoneOffset(BPM_MAX)).isNull(); in testBpmAggregation_timeRange_not_present()
624 assertThat(response.getZoneOffset(BPM_MIN)).isNull(); in testBpmAggregation_timeRange_not_present()
626 assertThat(response.getZoneOffset(BPM_AVG)).isNull(); in testBpmAggregation_timeRange_not_present()
656 assertThat(response.getZoneOffset(BPM_MAX)) in testBpmAggregation_withDataOrigin_correct()
660 assertThat(response.getZoneOffset(BPM_MIN)) in testBpmAggregation_withDataOrigin_correct()
664 assertThat(response.getZoneOffset(BPM_AVG)) in testBpmAggregation_withDataOrigin_correct()
689 assertThat(response.getZoneOffset(BPM_MAX)).isNull(); in testBpmAggregation_withDataOrigin_incorrect()
[all …]
DRestingHeartRateRecordTest.java374 assertThat(response.getZoneOffset(RestingHeartRateRecord.BPM_MAX)) in testBpmAggregation_timeRange_all()
378 assertThat(response.getZoneOffset(RestingHeartRateRecord.BPM_MIN)) in testBpmAggregation_timeRange_all()
382 assertThat(response.getZoneOffset(RestingHeartRateRecord.BPM_AVG)) in testBpmAggregation_timeRange_all()
399 assertThat(builder.setZoneOffset(zoneOffset).build().getZoneOffset()).isEqualTo(zoneOffset); in testZoneOffsets()
400 assertThat(builder.clearZoneOffset().build().getZoneOffset()).isEqualTo(defaultZoneOffset); in testZoneOffsets()
DStepsRecordTest.java832 assertThat(response.getZoneOffset(STEPS_COUNT_TOTAL)) in testAggregation_recordStartsBeforeAggWindow_returnsRescaledStepsCountInResult()
883 assertThat(response.getZoneOffset(STEPS_COUNT_TOTAL)) in testStepsCountAggregation_groupByDuration()
1273 assertThat(responses.get(i).getZoneOffset(STEPS_COUNT_TOTAL)).isEqualTo(offset); in testAggregationLocalTimeOffset()
1376 assertThat(oldResponse.getZoneOffset(STEPS_COUNT_TOTAL)).isEqualTo(ZoneOffset.ofHours(2)); in testAggregate_withDifferentTimeZone()
1392 assertThat(newResponse.getZoneOffset(STEPS_COUNT_TOTAL)).isEqualTo(ZoneOffset.UTC); in testAggregate_withDifferentTimeZone()
1422 assertThat(responses.get(0).getZoneOffset(STEPS_COUNT_TOTAL)) in testAggregateGroup_withDifferentTimeZone()
1424 assertThat(responses.get(1).getZoneOffset(STEPS_COUNT_TOTAL)) in testAggregateGroup_withDifferentTimeZone()
1426 assertThat(responses.get(2).getZoneOffset(STEPS_COUNT_TOTAL)) in testAggregateGroup_withDifferentTimeZone()
1428 assertThat(responses.get(3).getZoneOffset(STEPS_COUNT_TOTAL)) in testAggregateGroup_withDifferentTimeZone()
1430 assertThat(responses.get(4).getZoneOffset(STEPS_COUNT_TOTAL)).isEqualTo(ZoneOffset.UTC); in testAggregateGroup_withDifferentTimeZone()
[all …]
DWeightRecordTest.java368 assertThat(builder.setZoneOffset(zoneOffset).build().getZoneOffset()).isEqualTo(zoneOffset); in testZoneOffsets()
369 assertThat(builder.clearZoneOffset().build().getZoneOffset()).isEqualTo(defaultZoneOffset); in testZoneOffsets()
561 assertThat(responses.get(i).getZoneOffset(WEIGHT_MIN)).isEqualTo(offset); in testAggregatePeriodForZoneOffset()
632 assertThat(response0.getZoneOffset(WEIGHT_AVG)).isEqualTo(zonePlusFive); in testAggregateDuration_differentTimeZones_correctBucketTimes()
641 assertThat(response2.getZoneOffset(WEIGHT_AVG)).isEqualTo(zonePlusSix); in testAggregateDuration_differentTimeZones_correctBucketTimes()
676 assertThat(responses.get(i).getZoneOffset(WEIGHT_MAX)).isEqualTo(offset); in testDurationLocalTimeAggregationZoneOffset()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DAggregateRecordsResponse.java68 return result.getZoneOffset(); in getZoneOffsetInternal()
131 public ZoneOffset getZoneOffset(@NonNull AggregationType<T> aggregationType) { in getZoneOffset() method in AggregateRecordsResponse
143 return firstAggregationType != null ? getZoneOffset(firstAggregationType) : null; in getFirstZoneOffset()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DInstantRecordInternal.java51 return LocalDate.ofInstant(this.getTime(), this.getZoneOffset()); in getLocalDate()
84 ZoneOffset getZoneOffset() { in getZoneOffset() method in InstantRecordInternal
DIntermenstrualBleedingRecordInternal.java40 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DHeartRateVariabilityRmssdRecordInternal.java54 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DRespiratoryRateRecordInternal.java48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DRestingHeartRateRecordInternal.java48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DBodyFatRecordInternal.java49 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DHeightRecordInternal.java48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DBodyWaterMassRecordInternal.java54 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DSexualActivityRecordInternal.java50 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DOxygenSaturationRecordInternal.java50 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DLeanBodyMassRecordInternal.java48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DOvulationTestRecordInternal.java49 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DBasalMetabolicRateRecordInternal.java51 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DMenstruationFlowRecordInternal.java50 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DWeightRecordInternal.java48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DBoneMassRecordInternal.java48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
DVo2MaxRecordInternal.java66 .setZoneOffset(getZoneOffset()) in toExternalRecord()

12345