Home
last modified time | relevance | path

Searched refs:distance (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestDistance.rscript26 return distance(inLeftVector, inRightVector);
31 return distance(inLeftVector, inRightVector);
36 return distance(inLeftVector, inRightVector);
41 return distance(inLeftVector, inRightVector);
46 return distance(inLeftVector, inRightVector);
51 return distance(inLeftVector, inRightVector);
56 return distance(inLeftVector, inRightVector);
61 return distance(inLeftVector, inRightVector);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/
DReferencePath.java74 float distance, pathRemaining = 0; in calculatePathRemaining() local
79 distance = MathsUtils.distanceCalculationOnXYPlane( in calculatePathRemaining()
82 pathRemaining += distance; in calculatePathRemaining()
159 float distance = MathsUtils.distanceCalculationInXYZSpace( in validateBackToStart() local
166 if (distance > maximumDistanceFromFirstWaypoint) { in validateBackToStart()
DPath.java65 float distance = MathsUtils.distanceCalculationOnXYPlane( in getLengthOfCurrentPath() local
68 length += Math.abs(distance); in getLengthOfCurrentPath()
DComplexMovementPath.java134 for (Float distance : referencePathDistances) { in calculateSectionDistance()
135 arrayToReturn.add(distance / (RINGS_PER_PATH + 1f)); in calculateSectionDistance()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/TestPhase/
DTest.java130 float distance; in markerTest() local
132 distance = MathsUtils.distanceCalculationInXYZSpace( in markerTest()
135 mMarkerAccuracy.add(distance); in markerTest()
196 float totalDistance, distance; in calculatePathDistance() local
202 distance = MathsUtils.distanceCalculationOnXYPlane( in calculatePathDistance()
205 totalDistance += distance; in calculatePathDistance()
DRobustnessTest.java54 for (float distance : mReferencePathDistances) { in RobustnessTest()
55 mPathTotalDistance += distance; in RobustnessTest()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPathMeasureTest.java61 float distance = 1f; in testGetPosTanArraysTooSmall() local
65 mPathMeasure.getPosTan(distance, pos, tan); in testGetPosTanArraysTooSmall()
70 float distance = 1f; in testGetPosTan() local
73 assertFalse(mPathMeasure.getPosTan(distance, pos2, tan2)); in testGetPosTan()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_d1new_helper.rsh33 // active pixel to (x,y). Sets the closest distance to sharp->matte and sets the
48 // Initializes the minimum distance from this pixel to the active pixels on
51 min_dist *= min_dist; // Prepares for L2 distance.
62 // L_2 distance:
64 // Whether or not this is an active pixel with a smaller distance.
89 // Initializes the minimum distance from this pixel to the active pixels on
92 min_dist *= min_dist; // Prepares for L2 distance.
103 // L_2 distance:
105 // Whether or not this is an active pixel with a smaller distance.
Dlayered_filter_f32_helper.rsh16 // active pixel to (x,y). Sets the closest distance to sharp->matte and sets the
29 // Initializes the minimum distance from this pixel to the active pixels on
32 min_dist *= min_dist; // Prepares for L2 distance.
42 // L_2 distance:
44 // Whether or not this is an active pixel with a smaller distance.
Dlayer_info.rsh19 // distance transform result to be a matte value within [0,1].
Dlayer_info_fast.rsh19 // distance transform result to be a matte value within [0,1].
Dlayered_filter_fast_d1new.rscript168 // The dilated_depth will then be updated in distance transform later.
169 // A valid, non-zero dilated_depth indicates distance transform is
170 // needed for the pixel. Otherwise, the distance transform will be
228 // The dilated_depth will then be updated in distance transform later.
229 // A valid, non-zero dilated_depth indicates distance transform is
230 // needed for the pixel. Otherwise, the distance transform will be
481 // For such a pixel, its matte value can still be zero if its distance
535 // For such a pixel, its matte value can still be zero if its distance
598 // For such a pixel, its matte value can still be zero if its distance
645 // For such a pixel, its matte value can still be zero if its distance
Dpixel_format_f32.rsh13 // computed for blending color between layers. "Close enough" means L1 distance
/cts/apps/CameraITS/tests/scene6/
Dtest_zoom.py103 def distance(x, y): function
180 circles.sort(key=lambda x: distance(x[0] - img_ctr[0], x[1] - img_ctr[1]))
310 offset_rel = (distance(offset_abs[0], offset_abs[1]) / z_ratio /
311 distance(offset_init[0], offset_init[1]))
/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt87 return edgeEffect.distance > 0 in dragStretches()
167 startDistance = edgeEffect.distance in dragAndHoldKeepsStretch()
170 nextFrameDistance = edgeEffect.distance in dragAndHoldKeepsStretch()
/cts/tests/openglperf2/jni/graphics/
DVector2D.h29 float distance(const Vector2D& v);
DVector2D.cpp46 float Vector2D::distance(const Vector2D& v) { in distance() function in Vector2D
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationTest.java257 float distance; in testDistanceTo() local
266 distance = zeroLocation.distanceTo(zeroLocation); in testDistanceTo()
267 assertEquals(0, distance, DELTA); in testDistanceTo()
269 distance = zeroLocation.distanceTo(testLocation); in testDistanceTo()
270 assertEquals(6244139.0, distance, 1); in testDistanceTo()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCbGeoUtilsTest.java56 assertEquals(DIST, p1.distance(p2), DELTA); in testLatLong()
/cts/tests/openglperf2/jni/reference/scene/flocking/
DBoid.cpp33 float dist = mPosition.distance(b->mPosition); in flock()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DManager.java133 String distance = String.valueOf( in addPoseDataToPath()
138 + distance in addPoseDataToPath()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBitmapUtils.java213 mse += distance(expColors[idx], actualColors[idx], isPremultiplied); in compareBitmapsMse()
246 private static double distance(int expect, int actual, boolean isPremultiplied) { in distance() method in BitmapUtils
/cts/tests/tests/animation/src/android/animation/cts/
DObjectAnimatorTest.java700 public void setDistance(float distance) { in testOfObject_Converter()
746 float distance = (Float) anim1.getAnimatedValue(); in testOfObject_Converter()
754 assertEquals(distance, distanceFromPosition, 0.0001f); in testOfObject_Converter()
758 assertTrue(distance >= mLastDistance); in testOfObject_Converter()
760 assertTrue(distance <= mLastDistance); in testOfObject_Converter()
762 mLastDistance = distance; in testOfObject_Converter()
DPropertyValuesHolderTest.java594 float distance = (Float) anim1.getAnimatedValue(); in testOfObject_Converter()
605 assertEquals(distance, distanceFromPosition, 0.0001f); in testOfObject_Converter()
609 assertTrue(distance >= mLastDistance); in testOfObject_Converter()
611 assertTrue(distance <= mLastDistance); in testOfObject_Converter()
613 mLastDistance = distance; in testOfObject_Converter()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DFullScreenMagnificationGestureHandlerTest.java24 import static android.accessibilityservice.cts.utils.GestureUtils.distance;
250 waitOn(mZoomLock, () -> distance(mCurrentZoomCenter, oldCenter) >= mPan / 5); in tripleTapAndDragViewport()

12