Home
last modified time | relevance | path

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

/cts/libs/view/src/com/android/view/
DPosition.java66 double difference = originToOtherAngle - originToThisAngle; in arcAngleTo() local
70 if (difference < -Math.PI) { in arcAngleTo()
71 difference += 2 * Math.PI; in arcAngleTo()
72 } else if (difference > Math.PI){ in arcAngleTo()
73 difference -= 2 * Math.PI; in arcAngleTo()
75 return difference; in arcAngleTo()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTest.java266 final BitmapCompare.Difference difference = BitmapCompare.computeMinimumDifference( in validateResult() local
269 if (difference.greatestPixelDifference > ALLOWED_GREATEST_PIXEL_DIFFERENCE) { in validateResult()
283 + difference.bestMatchBorderCrop.first + ", " in validateResult()
284 + difference.bestMatchBorderCrop.second + "), " in validateResult()
286 + difference.greatestPixelDifference in validateResult()
287 + (difference.greatestPixelDifferenceCoordinates != null in validateResult()
288 ? " at (" + difference.greatestPixelDifferenceCoordinates.first + ", " in validateResult()
289 + difference.greatestPixelDifferenceCoordinates.second + ")" : "") in validateResult()
291 difference.greatestPixelDifference <= ALLOWED_GREATEST_PIXEL_DIFFERENCE); in validateResult()
DDecodeAccuracyTestBase.java1792 final int difference = euclideanDistance(pixels1[i], pixels2[i]); in computeDifference() local
1793 if (difference > greatestDifference) { in computeDifference()
1794 greatestDifference = difference; in computeDifference()
/cts/apps/CtsVerifier/include/colorchecker/
Dvec2.h51 int difference = 0.f; in squareDistance() local
52 difference = (static_cast<float>(mX) - static_cast<float>(param.x())) * in squareDistance()
56 return difference; in squareDistance()
Dvec3.h81 float difference = 0.f; in squareDistance() local
82 difference = static_cast<float>(mRed - param.r()) * in squareDistance()
88 return difference; in squareDistance()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCbGeoUtilsTest.java52 CbGeoUtils.LatLng difference = new CbGeoUtils.LatLng(LAT1 - LAT2, LNG1 - LNG2); in testLatLong() local
53 assertEquals(difference.lat, p1.subtract(p2).lat, DELTA); in testLatLong()
54 assertEquals(difference.lng, p1.subtract(p2).lng, DELTA); in testLatLong()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/TestPhase/
DTest.java220 float difference; in calculatePathDifferences() local
224 difference = mReferencePathDistances.get(i) - mTestPathDistances.get(i); in calculatePathDifferences()
225 mPathAccuracy.add(Math.abs(difference)); in calculatePathDifferences()
254 private void recordPathTestResults(float difference) { in recordPathTestResults() argument
255 int pathNumber = mPathAccuracy.indexOf(difference); in recordPathTestResults()
260 " Difference: " + difference + in recordPathTestResults()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DDeviceConfigShellHelper.java150 MapDifference<String, String> difference = in restoreDeviceConfigStateForTest() local
151 Maps.difference(oldEntries.keyValues, currentEntries.keyValues); in restoreDeviceConfigStateForTest()
152 deleteAll(oldEntries.namespace, difference.entriesOnlyOnRight()); in restoreDeviceConfigStateForTest()
153 putAll(oldEntries.namespace, difference.entriesOnlyOnLeft()); in restoreDeviceConfigStateForTest()
155 subMap(oldEntries.keyValues, difference.entriesDiffering().keySet()); in restoreDeviceConfigStateForTest()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java25 import static com.google.common.collect.Sets.difference;
149 Set<String> factoryNotGranted = difference(factoryRequestedPrivPermissions, in privappPermissionsNeedToBeWhitelisted()
154 Set<String> removed = difference(factoryRequestedPrivPermissions, in privappPermissionsNeedToBeWhitelisted()
180 Set<String> grantedNotInWhitelist = difference(granted, whitelist); in privappPermissionsNeedToBeWhitelisted()
181 Set<String> factoryNotGrantedNotRemovedNotInDenylist = difference(difference( in privappPermissionsNeedToBeWhitelisted()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/
DBaseRenderer.java339 int difference = (currentOrientation - defaultOrientation) % ORIENTATION_COUNT; in getDeviceRotation() local
340 difference = difference * 90; in getDeviceRotation()
342 return difference; in getDeviceRotation()
/cts/tests/location/location_gnss/protos/
Dephemeris.proto79 // Mean motion difference from computed value.
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response_fast.rsh13 // The difference here is that we use a normalized model such
Dcamera_response.rsh13 // The difference here is that we use a normalized model such
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorCtsHelper.java109 double difference = mean - value.doubleValue(); in getVariance() local
110 squaredDiffs.add(Math.pow(difference, 2)); in getVariance()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DProcStateAtomTests.java289 private Set<Integer> difference(Set<Integer> a, Set<Integer> b) { in difference() method in ProcStateAtomTests
297 return difference(ALL_STATES, set); in complement()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java691 double difference = BitmapUtils.calcDifferenceMetric(yuvBmap, jpegBmap); in testAllOutputYUVResolutions() local
697 difference); in testAllOutputYUVResolutions()
698 if (difference > tolerance) { in testAllOutputYUVResolutions()
722 difference + ", tolerance is " + tolerance); in testAllOutputYUVResolutions()
DDngCreatorTest.java911 double difference = BitmapUtils.calcDifferenceMetric(jpegPatch, rawPatch); in validateRawJpegImagePair() local
912 if (difference > IMAGE_DIFFERENCE_TOLERANCE) { in validateRawJpegImagePair()
937 difference); in validateRawJpegImagePair()
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale250 difference in execution time to a Dhrystone version where all
327 feeling how much performance difference is due to compiler optimization