/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_double/ |
D | Test_add_double.java | 57 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB2() 67 Double.NEGATIVE_INFINITY)); in testB2() 76 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB3() 77 Double.POSITIVE_INFINITY)); in testB3() 85 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB4() 118 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.MAX_VALUE, in testB8() 119 Double.MAX_VALUE)); in testB8() 127 assertEquals(0d, t.run(Double.MIN_VALUE, -4.9E-324)); in testB9()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_double_2addr/ |
D | Test_add_double_2addr.java | 54 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 63 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB2() 64 Double.NEGATIVE_INFINITY)); in testB2() 73 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB3() 74 Double.POSITIVE_INFINITY)); in testB3() 82 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB4() 115 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.MAX_VALUE, in testB8() 116 Double.MAX_VALUE)); in testB8() 124 assertEquals(0d, t.run(Double.MIN_VALUE, -4.9E-324)); in testB9()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_double/ |
D | Test_mul_double.java | 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 63 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); in testB2() 71 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB3() 81 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB4() 82 Double.NEGATIVE_INFINITY)); in testB4() 106 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.MAX_VALUE, in testB7() 107 Double.MAX_VALUE)); in testB7() 115 assertEquals(-0d, t.run(Double.MIN_VALUE, -1.4E-45f)); in testB8()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_double_2addr/ |
D | Test_mul_double_2addr.java | 56 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, 0)); in testB2() 72 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB3() 82 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB4() 83 Double.NEGATIVE_INFINITY)); in testB4() 107 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.MAX_VALUE, in testB7() 108 Double.MAX_VALUE)); in testB7() 116 assertEquals(-0d, t.run(Double.MIN_VALUE, -1.4E-45f)); in testB8()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_double_2addr/ |
D | Test_sub_double_2addr.java | 54 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 63 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB2() 64 Double.NEGATIVE_INFINITY)); in testB2() 73 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB3() 74 Double.POSITIVE_INFINITY)); in testB3() 82 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB4() 123 assertEquals(0d, t.run(Double.MAX_VALUE, Double.MAX_VALUE)); in testB9() 131 assertEquals(0d, t.run(Double.MIN_VALUE, 4.9E-324)); in testB10()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_double/ |
D | Test_sub_double.java | 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 64 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB2() 65 Double.NEGATIVE_INFINITY)); in testB2() 74 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB3() 75 Double.POSITIVE_INFINITY)); in testB3() 83 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB4() 124 assertEquals(0d, t.run(Double.MAX_VALUE, Double.MAX_VALUE)); in testB9() 132 assertEquals(0d, t.run(Double.MIN_VALUE, 4.9E-324)); in testB10()
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamDoubleTest.java | 34 if (Double.isNaN(expected)) { in assertEquals() 35 if (!Double.isNaN(actual)) { in assertEquals() 69 po.writeDouble(ProtoOutputStream.makeFieldId(5, fieldFlags), Double.MIN_NORMAL); in testWrite() 70 po.writeDouble(ProtoOutputStream.makeFieldId(6, fieldFlags), Double.MIN_VALUE); in testWrite() 71 po.writeDouble(ProtoOutputStream.makeFieldId(7, fieldFlags), Double.NEGATIVE_INFINITY); in testWrite() 72 po.writeDouble(ProtoOutputStream.makeFieldId(8, fieldFlags), Double.NaN); in testWrite() 73 po.writeDouble(ProtoOutputStream.makeFieldId(9, fieldFlags), Double.POSITIVE_INFINITY); in testWrite() 121 testWriteCompat(Double.MIN_NORMAL); in testWriteCompat() 122 testWriteCompat(Double.MIN_VALUE); in testWriteCompat() 123 testWriteCompat(Double.NEGATIVE_INFINITY); in testWriteCompat() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_double/ |
D | Test_rem_double.java | 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB2() 65 Double.NEGATIVE_INFINITY)); in testB2() 73 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, -2.7d)); in testB3() 81 assertEquals(-2.7d, t.run(-2.7d, Double.NEGATIVE_INFINITY)); in testB4() 89 assertEquals(Double.NaN, t.run(0, 0)); in testB5() 105 assertEquals(Double.NaN, t.run(-2.7d, 0)); in testB7() 113 assertEquals(0d, t.run(1, Double.MIN_VALUE)); in testB8() 122 assertEquals(1.543905285031139E-10d, t.run(Double.MAX_VALUE, -1E-9d)); in testB9()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_double_2addr/ |
D | Test_rem_double_2addr.java | 55 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1() 64 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB2() 65 Double.NEGATIVE_INFINITY)); in testB2() 73 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, -2.7d)); in testB3() 81 assertEquals(-2.7d, t.run(-2.7d, Double.NEGATIVE_INFINITY)); in testB4() 89 assertEquals(Double.NaN, t.run(0, 0)); in testB5() 105 assertEquals(Double.NaN, t.run(-2.7d, 0)); in testB7() 113 assertEquals(0d, t.run(1, Double.MIN_VALUE)); in testB8() 122 assertEquals(1.543905285031139E-10d, t.run(Double.MAX_VALUE, -1E-9d)); in testB9()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double/ |
D | Test_div_double.java | 66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB2() 67 Double.NEGATIVE_INFINITY)); in testB2() 75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB3() 84 assertEquals(0d, t.run(-2.7d, Double.NEGATIVE_INFINITY)); in testB4() 92 assertEquals(Double.NaN, t.run(0, 0)); in testB5() 108 assertEquals(Double.NEGATIVE_INFINITY, t.run(-2.7d, 0)); in testB7() 116 assertEquals(Double.POSITIVE_INFINITY, t.run(1, Double.MIN_VALUE)); in testB8() 124 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.MAX_VALUE, -1E-9f)); in testB9()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_double_2addr/ |
D | Test_div_double_2addr.java | 66 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB2() 67 Double.NEGATIVE_INFINITY)); in testB2() 75 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB3() 84 assertEquals(0d, t.run(-2.7d, Double.NEGATIVE_INFINITY)); in testB4() 92 assertEquals(Double.NaN, t.run(0, 0)); in testB5() 108 assertEquals(Double.NEGATIVE_INFINITY, t.run(-2.7d, 0)); in testB7() 116 assertEquals(Double.POSITIVE_INFINITY, t.run(1, Double.MIN_VALUE)); in testB8() 124 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.MAX_VALUE, -1E-9f)); in testB9()
|
/cts/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 56 private static ArrayList<Double> appResultsWithMode = new ArrayList<Double>(); 57 private static ArrayList<Double> appResultsWithoutMode = new ArrayList<Double>(); 58 private static ArrayList<Double> dhrystoneResultsWithMode = new ArrayList<Double>(); 59 private static ArrayList<Double> dhrystoneResultsWithoutMode = new ArrayList<Double>(); 60 private double dhryMin = Double.MAX_VALUE, dhryMax = Double.MIN_VALUE; 88 double dmips = Double.parseDouble(result); in run() 116 Double[] testSet = new Double[10]; in analyzeResults() 118 double min = Double.MAX_VALUE, max = Double.MIN_VALUE; in analyzeResults() 125 Double time = Double.parseDouble(line.split(":")[1]); in analyzeResults() 163 dhryMin = Double.MAX_VALUE; in setUpEnvironment() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpg_double/ |
D | Test_cmpg_double.java | 54 assertEquals(1, t.run(Double.NaN, Double.MAX_VALUE)); in testB1() 70 assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); in testB3() 78 assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.MAX_VALUE)); in testB4() 86 assertEquals(1, t.run(Double.POSITIVE_INFINITY, in testB5() 87 Double.NEGATIVE_INFINITY)); in testB5()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmpl_double/ |
D | Test_cmpl_double.java | 54 assertEquals(-1, t.run(Double.NaN, Double.MAX_VALUE)); in testB1() 70 assertEquals(-1, t.run(Double.NEGATIVE_INFINITY, Double.MIN_VALUE)); in testB3() 78 assertEquals(1, t.run(Double.POSITIVE_INFINITY, Double.MAX_VALUE)); in testB4() 87 assertEquals(1, t.run(Double.POSITIVE_INFINITY, in testB5() 88 Double.NEGATIVE_INFINITY)); in testB5()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/neg_double/ |
D | Test_neg_double.java | 64 assertEquals(Double.NaN, t.run(Double.NaN)); in testB1() 72 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.NEGATIVE_INFINITY)); in testB2() 80 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY)); in testB3() 88 assertEquals(-1.7976931348623157E308d, t.run(Double.MAX_VALUE)); in testB4() 96 assertEquals(-4.9E-324d, t.run(Double.MIN_VALUE)); in testB5()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | Float16Utils.java | 114 return Double.longBitsToDouble(bits); in constructDouble() 127 long valueBits = Double.doubleToLongBits(value); in roundToFloat16() 134 if (Double.isNaN(value) || Double.isInfinite(value)) { in roundToFloat16() 211 result[0] = Double.POSITIVE_INFINITY; in roundToFloat16() 212 result[1] = Double.POSITIVE_INFINITY; in roundToFloat16() 230 long valueBits = Double.doubleToLongBits(value); in float16Ulp() 237 return Double.POSITIVE_INFINITY; // ulp of +/- infinity is +infinity in float16Ulp() 239 return Double.NaN; // ulp for NaN is NaN in float16Ulp() 289 if (Double.doubleToLongBits(value) == 0) in convertDoubleToFloat16() 293 } else if (Double.isNaN(value)) { in convertDoubleToFloat16() [all …]
|
D | FloatyUnitTest.java | 29 static double subnormalDouble = 10000 * Double.MIN_VALUE; 36 static double[] preciseFloat16Values = {Double.NaN, 37 Double.POSITIVE_INFINITY, 38 Double.NEGATIVE_INFINITY, 357 floaty = t.new64(Double.MIN_VALUE); in testRangeDoesNotAcrossZero() 358 shouldAccept(floaty, Double.MIN_VALUE); in testRangeDoesNotAcrossZero() 359 shouldAccept(floaty, Double.MIN_VALUE + 4 * Double.MIN_VALUE); in testRangeDoesNotAcrossZero() 361 shouldNotAccept(floaty, 0. - Double.MIN_VALUE); in testRangeDoesNotAcrossZero() 363 floaty = t.new64(-Double.MIN_VALUE); in testRangeDoesNotAcrossZero() 364 shouldAccept(floaty, -Double.MIN_VALUE); in testRangeDoesNotAcrossZero() [all …]
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/ |
D | PseudorangePositionVelocityFromRealTimeEvents.java | 61 private final double[] mPositionSolutionLatLngDeg = {Double.NaN, Double.NaN, Double.NaN}; 62 private final double[] mVelocitySolutionEnuMps = {Double.NaN, Double.NaN, Double.NaN}; 64 Double.NaN, Double.NaN, Double.NaN, Double.NaN, Double.NaN, Double.NaN 263 mPositionSolutionLatLngDeg[0] = Double.NaN; in computePositionVelocitySolutionsFromRawMeas() 264 mPositionSolutionLatLngDeg[1] = Double.NaN; in computePositionVelocitySolutionsFromRawMeas() 265 mPositionSolutionLatLngDeg[2] = Double.NaN; in computePositionVelocitySolutionsFromRawMeas() 266 mVelocitySolutionEnuMps[0] = Double.NaN; in computePositionVelocitySolutionsFromRawMeas() 267 mVelocitySolutionEnuMps[1] = Double.NaN; in computePositionVelocitySolutionsFromRawMeas() 268 mVelocitySolutionEnuMps[2] = Double.NaN; in computePositionVelocitySolutionsFromRawMeas()
|
/cts/tests/mediapc/common/src/android/mediapc/cts/common/ |
D | PerformanceClassEvaluator.java | 81 RequiredMeasurement<Double> apiNativeLatency = RequiredMeasurement in createR5_6__H_1_1() 82 .<Double>builder() in createR5_6__H_1_1() 91 RequiredMeasurement<Double> apiJavaLatency = RequiredMeasurement in createR5_6__H_1_1() 92 .<Double>builder() in createR5_6__H_1_1() 403 RequiredMeasurement<Double> reqConcurrentFps = RequiredMeasurement.<Double>builder() in createR5_1__H_1_2_720p() 423 RequiredMeasurement<Double> reqConcurrentFps = RequiredMeasurement.<Double>builder() in createR5_1__H_1_2_1080p() 438 RequiredMeasurement<Double> reqConcurrentFps = RequiredMeasurement.<Double>builder() in createR5_1__H_1_2_4k() 446 RequiredMeasurement<Double> frameDropsPerSec = RequiredMeasurement.<Double>builder() in createR5_1__H_1_2_4k() 449 .addRequiredValue(Build.VERSION_CODES.UPSIDE_DOWN_CAKE, Double.MAX_VALUE) in createR5_1__H_1_2_4k() 517 RequiredMeasurement<Double> reqConcurrentFps = RequiredMeasurement.<Double>builder() in createR5_1__H_1_4_720p() [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_long/ |
D | Test_double_to_long.java | 54 assertEquals(Long.MAX_VALUE, t.run(Double.MAX_VALUE)); in testB1() 62 assertEquals(0, t.run(Double.MIN_VALUE)); in testB2() 78 assertEquals(0l, t.run(Double.NaN)); in testB4() 86 assertEquals(Long.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); in testB5() 94 assertEquals(Long.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY)); in testB6()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_int/ |
D | Test_double_to_int.java | 63 assertEquals(Integer.MAX_VALUE, t.run(Double.MAX_VALUE)); in testB2() 71 assertEquals(0, t.run(Double.MIN_VALUE)); in testB3() 79 assertEquals(0, t.run(Double.NaN)); in testB4() 87 assertEquals(Integer.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); in testB5() 95 assertEquals(Integer.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY)); in testB6()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_float/ |
D | Test_double_to_float.java | 54 assertEquals(Float.POSITIVE_INFINITY, t.run(Double.MAX_VALUE)); in testB1() 62 assertEquals(0f, t.run(Double.MIN_VALUE)); in testB2() 78 assertTrue(Float.isNaN(t.run(Double.NaN))); in testB4() 86 assertTrue(Float.isInfinite(t.run(Double.POSITIVE_INFINITY))); in testB5() 94 assertTrue(Float.isInfinite(t.run(Double.NEGATIVE_INFINITY))); in testB6()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | HifiUltrasoundTestActivity.java | 172 Double recordingDuration_millis = new Double(1000 * (2.5 in onCreate() 233 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse() 235 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse() 243 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse() 245 powerWrap[j] = new Double(10 * Math.log10(power[j][i])); in plotResponse() 259 Double[] noiseDBWrap = new Double[Common.PIP_NUM]; in plotResponse() 261 noiseDBWrap[i] = new Double(noiseDB[i]); in plotResponse() 275 Double[] dBWrap = new Double[Common.PIP_NUM]; in plotResponse() 277 dBWrap[i] = new Double(dB[i]); in plotResponse() 290 Double[] passX = new Double[] {Common.MIN_FREQUENCY_HZ, Common.MAX_FREQUENCY_HZ}; in plotResponse() [all …]
|
D | HifiUltrasoundSpeakerTestActivity.java | 192 Double recordingDuration_millis = new Double(1000 * (2.5 in onCreate() 274 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse() 276 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse() 283 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse() 285 powerWrap[j] = new Double(10 * Math.log10(power[j][i])); in plotResponse() 299 Double[] noiseDBWrap = new Double[Common.PIP_NUM]; in plotResponse() 301 noiseDBWrap[i] = new Double(noiseDB[i]); in plotResponse() 315 Double[] dBWrap = new Double[Common.PIP_NUM]; in plotResponse() 317 dBWrap[i] = new Double(dB[i]); in plotResponse() 330 Double[] passX = new Double[] {Common.MIN_FREQUENCY_HZ, Common.MAX_FREQUENCY_HZ}; in plotResponse() [all …]
|
/cts/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/ |
D | VeqTestResult.java | 38 ArrayList<Double> bitrates = new ArrayList<>(); in parseFromTestResult() 39 ArrayList<Double> vmafs = new ArrayList<>(); in parseFromTestResult() 61 bitrates.add(Double.parseDouble(value)); in parseFromTestResult() 64 vmafs.add(Double.parseDouble(value)); in parseFromTestResult()
|