/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | InstantRecord.java | 68 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/ |
D | AggregationApisTest.java | 196 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 …]
|
D | ExerciseDurationAggregationTest.java | 118 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/ |
D | HeartRateRecordTest.java | 579 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 …]
|
D | RestingHeartRateRecordTest.java | 374 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()
|
D | StepsRecordTest.java | 832 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 …]
|
D | WeightRecordTest.java | 368 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/ |
D | AggregateRecordsResponse.java | 68 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/ |
D | InstantRecordInternal.java | 51 return LocalDate.ofInstant(this.getTime(), this.getZoneOffset()); in getLocalDate() 84 ZoneOffset getZoneOffset() { in getZoneOffset() method in InstantRecordInternal
|
D | IntermenstrualBleedingRecordInternal.java | 40 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | HeartRateVariabilityRmssdRecordInternal.java | 54 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | RespiratoryRateRecordInternal.java | 48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | RestingHeartRateRecordInternal.java | 48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | BodyFatRecordInternal.java | 49 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | HeightRecordInternal.java | 48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | BodyWaterMassRecordInternal.java | 54 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | SexualActivityRecordInternal.java | 50 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | OxygenSaturationRecordInternal.java | 50 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | LeanBodyMassRecordInternal.java | 48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | OvulationTestRecordInternal.java | 49 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | BasalMetabolicRateRecordInternal.java | 51 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | MenstruationFlowRecordInternal.java | 50 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | WeightRecordInternal.java | 48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | BoneMassRecordInternal.java | 48 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|
D | Vo2MaxRecordInternal.java | 66 .setZoneOffset(getZoneOffset()) in toExternalRecord()
|