Home
last modified time | relevance | path

Searched refs:getDistance (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseCompletionGoalInternalTest.java49 assertThat(restored.getDistance()).isEqualTo(original.getDistance()); in distanceGoal_writeToParcelThenRestore_objectsAreIdentical()
61 .getDistance()) in distanceGoal_convertToExternalAndBack_objectsAreIdentical()
62 .isEqualTo(original.getDistance()); in distanceGoal_convertToExternalAndBack_objectsAreIdentical()
207 assertThat(restored.getDistance()).isEqualTo(original.getDistance()); in distanceWithVariableRestGoal_writeToParcelThenRestore_objectsAreIdentical()
222 assertThat(roundTripConverted.getDistance()).isEqualTo(original.getDistance()); in distanceWithVariableRestGoal_convertToExternalAndBack_objectsAreIdentical()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseCompletionGoal.java46 public Length getDistance() { in getDistance() method in ExerciseCompletionGoal.DistanceGoal
55 return this.getDistance().equals(that.getDistance()); in equals()
91 public Length getDistance() { in getDistance() method in ExerciseCompletionGoal.DistanceWithVariableRestGoal
106 return this.getDistance().equals(that.getDistance()) in equals()
DDistanceRecord.java188 public Length getDistance() { in getDistance() method in DistanceRecord
204 return getDistance().equals(that.getDistance()); in equals()
212 return Objects.hash(super.hashCode(), getDistance()); in hashCode()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java162 final int deltaDistance = getDistance( in isStartOfAGesture()
237 final int dist = getDistance(lastX, lastY, x, y); in detectFastMove()
240 final int pixels = getDistance(lastX, lastY, x, y); in detectFastMove()
297 final int pixels = getDistance(mLastMajorEventX, mLastMajorEventY, x, y); in updateIncrementalRecognitionSize()
331 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { in getDistance() method in GestureStrokeRecognitionPoints
DBogusMoveEventDetector.java104 return getDistance(x, y, mActualDownX, mActualDownY); in getDistanceFromDownEvent()
107 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { in getDistance() method in BogusMoveEventDetector
/packages/apps/Launcher3/src/com/android/launcher3/util/
DEdgeEffectCompat.java34 public float getDistance() { in getDistance() method in EdgeEffectCompat
35 return Utilities.ATLEAST_S ? super.getDistance() : 0; in getDistance()
DTranslateEdgeEffect.java47 out[0] = getDistance(); in getTranslationShift()
DOverlayEdgeEffect.java45 public float getDistance() { in getDistance() method in OverlayEdgeEffect
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DDistanceRecordInternal.java33 public double getDistance() { in getDistance() method in DistanceRecordInternal
51 Length.fromMeters(getDistance())) in toExternalRecord()
DExerciseCompletionGoalInternal.java49 return new DistanceGoalInternal(goal.getDistance()); in fromExternalObject()
53 return new DistanceWithVariableRestGoalInternal(goal.getDistance(), goal.getDuration()); in fromExternalObject()
137 public Length getDistance() { in getDistance() method in ExerciseCompletionGoalInternal.DistanceGoalInternal
367 public Length getDistance() { in getDistance() method in ExerciseCompletionGoalInternal.DistanceWithVariableRestGoalInternal
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/calmmode/
DNavigationStateViewModel.java104 nextDestination.getDistance().getDisplayValue()) in onNavigationStateChanged()
105 .setDistanceUnit(nextDestination.getDistance().getDisplayUnits()); in onNavigationStateChanged()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/
DStringUtils.java37 int newD = getDistance(source, t); in getMinDistance()
48 private static int getDistance(String s, String t) { in getDistance() method in StringUtils
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DExerciseCompletionGoalTest.java104 assertThat(goal.getDistance()).isEqualTo(Length.fromMeters(500)); in distanceGoal_getterMethods()
326 assertThat(goal.getDistance()).isEqualTo(Length.fromMeters(100)); in distanceWithVariableRestGoal_insertionAndRead()
336 assertThat(goal.getDistance()).isEqualTo(Length.fromMeters(100)); in distnaceWithVariableRestGoal_getterMethods()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
DNameDistanceTest.java73 float actual = mNameDistance.getDistance(s1, s2); in assertFloat()
/packages/modules/Connectivity/remoteauth/service/java/com/android/server/remoteauth/ranging/
DUwbRangingSession.java189 float distanceM = position.getDistance().getValue(); in convertCallback()
195 position.getDistance().getValue(); in convertCallback()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/
DUwbClient.java144 distance.confidence = position.getDistance().getConfidence(); in convertCallback()
145 distance.value = position.getDistance().getValue(); in convertCallback()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DPointerTracker.java479 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { in getDistance() method in PointerTracker
484 mBogusMoveEventDetector.onMoveKey(getDistance(x, y, mLastX, mLastY)); in onMoveKeyInternal()
625 final int distance = getDistance(x, y, mLastX, mLastY); in onDownEvent()
798 getDistance(x, y, lastX, lastY), in processPhantomSuddenMoveHack()
847 && getDistance(x, y, lastX, lastY) >= mPhantomSuddenMoveThreshold) { in dragFingerFromOldKeyToNewKey()
/packages/modules/Uwb/androidx_backend/src/androidx/core/uwb/backend/impl/internal/
DRangingPosition.java66 public RangingMeasurement getDistance() { in getDistance() method in RangingPosition
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDistanceRecordHelper.java79 contentValues.put(DISTANCE_COLUMN_NAME, distanceRecord.getDistance()); in populateSpecificContentValues()
DPlannedExerciseSessionRecordHelper.java459 ((DistanceGoalInternal) completionGoal).getDistance().getInMeters())); in getCompletionGoalUpsert()
572 distanceWithVariableRestGoalInternal.getDistance().getInMeters()); in populateContentValuesForDistanceWithVariableRestGoal()
/packages/modules/Uwb/service/java/com/android/server/uwb/data/
DUwbTwoWayMeasurement.java79 public int getDistance() { in getDistance() method in UwbTwoWayMeasurement
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DNameDistance.java64 public float getDistance(byte bytes1[], byte bytes2[]) { in getDistance() method in NameDistance
DContactMatcher.java227 float distance = nameDistance.getDistance(decodedCandidateName, decodedName); in matchName()
DRawContactMatcher.java225 float distance = nameDistance.getDistance(decodedCandidateName, decodedName); in matchName()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbMetricsTest.java177 when(mTwoWayMeasurement.getDistance()).thenReturn(DISTANCE_DEFAULT_CM); in setUp()
373 when(mTwoWayMeasurement.getDistance()).thenReturn(UwbMetrics.INVALID_DISTANCE); in testLoggingRangingResultInvalidDistance()

12