Home
last modified time | relevance | path

Searched refs:getInMeters (Results 1 – 18 of 18) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/
DLength.java42 public double getInMeters() { in getInMeters() method in Length
75 return this.getInMeters() == other.getInMeters(); in equals()
87 return Objects.hash(this.getInMeters()); in hashCode()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseRoute.java185 horizontalAccuracy.getInMeters(), "Horizontal accuracy"); in Location()
188 if (verticalAccuracy != null && verticalAccuracy.getInMeters() < 0) { in Location()
190 verticalAccuracy.getInMeters(), "Vertical accuracy"); in Location()
255 locationInternal.setHorizontalAccuracy(getHorizontalAccuracy().getInMeters()); in toExerciseRouteLocationInternal()
259 locationInternal.setVerticalAccuracy(getVerticalAccuracy().getInMeters()); in toExerciseRouteLocationInternal()
263 locationInternal.setAltitude(getAltitude().getInMeters()); in toExerciseRouteLocationInternal()
304 dest.writeDouble(mHorizontalAccuracy.getInMeters()); in writeToParcel()
308 dest.writeDouble(mVerticalAccuracy.getInMeters()); in writeToParcel()
312 dest.writeDouble(mAltitude.getInMeters()); in writeToParcel()
DHeightRecord.java88 ValidationUtils.requireInRange(height.getInMeters(), 0.0, 3.0, "height"); in HeightRecord()
194 recordInternal.setHeight(mHeight.getInMeters()); in toRecordInternal()
DElevationGainedRecord.java173 elevation.getInMeters(), -1000000.0, 1000000.0, "elevation"); in ElevationGainedRecord()
229 recordInternal.setElevation(mElevation.getInMeters()); in toRecordInternal()
DDistanceRecord.java179 distance.getInMeters(), 0.0, 1000000.0, "revolutionsPerMinute"); in DistanceRecord()
235 recordInternal.setDistance(mDistance.getInMeters()); in toRecordInternal()
DExerciseLap.java114 internalLap.setLength(getLength().getInMeters()); in toExerciseLapInternal()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DUtils.java33 assertThat(length.getInMeters()).isWithin(0.001).of(expected); in assertLengthWithTolerance()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/
DLengthTest.java35 assertThat(Length.fromMeters(10.0).getInMeters()).isEqualTo(10.0); in testCreate()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseCompletionGoalInternal.java121 parcel.writeDouble(this.mDistance.getInMeters()); in writeFieldsToParcel()
344 parcel.writeDouble(this.mDistance.getInMeters()); in writeFieldsToParcel()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java540 .map(alt -> transformOrNull(alt, Length::getInMeters)) in getExerciseSessionRecordValues()
545 .map(hAcc -> transformOrNull(hAcc, Length::getInMeters)) in getExerciseSessionRecordValues()
550 .map(vAcc -> transformOrNull(vAcc, Length::getInMeters)) in getExerciseSessionRecordValues()
604 .map(length -> length == null ? -1 : length.getInMeters()) in getExerciseSessionRecordValues()
771 values.putDouble(LENGTH_IN_METERS, record.getDistance().getInMeters()); in getDistanceRecordValues()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseSessionInternalTest.java124 assertThat(internalLap.getLength()).isEqualTo(externalLap.getLength().getInMeters()); in assertLapsAreEqual()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DHeightRecordTest.java360 assertThat(maxHeight.getInMeters()).isEqualTo(1.5); in testAggregation_Height()
362 assertThat(minHeight.getInMeters()).isEqualTo(0.5); in testAggregation_Height()
364 assertThat(avgHeight.getInMeters()).isEqualTo(1.0); in testAggregation_Height()
DElevationGainedRecordTest.java383 assertThat(newElevation.getInMeters() - oldElevation.getInMeters()).isEqualTo(100.5); in testAggregation_ElevationTotal()
DDistanceRecordTest.java582 assertThat(response.get(DISTANCE_TOTAL).getInMeters()).isEqualTo(174.5); in testAggregation_DistanceTotal_AtOverlapStartAndEndTime()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java459 ((DistanceGoalInternal) completionGoal).getDistance().getInMeters())); in getCompletionGoalUpsert()
572 distanceWithVariableRestGoalInternal.getDistance().getInMeters()); in populateContentValuesForDistanceWithVariableRestGoal()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreApiTest.java146 assertThat(heights).contains(heightRecordRead.getHeight().getInMeters()); in testMergeStagedData_withEmptyHealthDb_mergesAllData()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java244 mExpect.that(record.getHeight().getInMeters()).isEqualTo(3D); in migrateHeight_clientRecordId_heightSaved()
264 mExpect.that(record.getHeight().getInMeters()).isEqualTo(3D); in migrateHeight_uuid_heightSaved()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1729 method public double getInMeters();