/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/ |
D | Length.java | 42 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/ |
D | ExerciseRoute.java | 185 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()
|
D | HeightRecord.java | 88 ValidationUtils.requireInRange(height.getInMeters(), 0.0, 3.0, "height"); in HeightRecord() 194 recordInternal.setHeight(mHeight.getInMeters()); in toRecordInternal()
|
D | ElevationGainedRecord.java | 173 elevation.getInMeters(), -1000000.0, 1000000.0, "elevation"); in ElevationGainedRecord() 229 recordInternal.setElevation(mElevation.getInMeters()); in toRecordInternal()
|
D | DistanceRecord.java | 179 distance.getInMeters(), 0.0, 1000000.0, "revolutionsPerMinute"); in DistanceRecord() 235 recordInternal.setDistance(mDistance.getInMeters()); in toRecordInternal()
|
D | ExerciseLap.java | 114 internalLap.setLength(getLength().getInMeters()); in toExerciseLapInternal()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | Utils.java | 33 assertThat(length.getInMeters()).isWithin(0.001).of(expected); in assertLengthWithTolerance()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/ |
D | LengthTest.java | 35 assertThat(Length.fromMeters(10.0).getInMeters()).isEqualTo(10.0); in testCreate()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExerciseCompletionGoalInternal.java | 121 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/ |
D | BundleHelper.java | 540 .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/ |
D | ExerciseSessionInternalTest.java | 124 assertThat(internalLap.getLength()).isEqualTo(externalLap.getLength().getInMeters()); in assertLapsAreEqual()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | HeightRecordTest.java | 360 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()
|
D | ElevationGainedRecordTest.java | 383 assertThat(newElevation.getInMeters() - oldElevation.getInMeters()).isEqualTo(100.5); in testAggregation_ElevationTotal()
|
D | DistanceRecordTest.java | 582 assertThat(response.get(DISTANCE_TOTAL).getInMeters()).isEqualTo(174.5); in testAggregation_DistanceTotal_AtOverlapStartAndEndTime()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | PlannedExerciseSessionRecordHelper.java | 459 ((DistanceGoalInternal) completionGoal).getDistance().getInMeters())); in getCompletionGoalUpsert() 572 distanceWithVariableRestGoalInternal.getDistance().getInMeters()); in populateContentValuesForDistanceWithVariableRestGoal()
|
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/ |
D | BackupRestoreApiTest.java | 146 assertThat(heights).contains(heightRecordRead.getHeight().getInMeters()); in testMergeStagedData_withEmptyHealthDb_mergesAllData()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/ |
D | DataMigrationTest.java | 244 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/ |
D | current.txt | 1729 method public double getInMeters();
|