/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/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/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/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/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/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/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_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/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/hostsidetests/sustainedperf/src/android/SustainedPerformance/cts/ |
D | SustainedPerformanceHostTest.java | 55 private static ArrayList<Double> appResultsWithMode = new ArrayList<Double>(); 56 private static ArrayList<Double> appResultsWithoutMode = new ArrayList<Double>(); 57 private static ArrayList<Double> dhrystoneResultsWithMode = new ArrayList<Double>(); 58 private static ArrayList<Double> dhrystoneResultsWithoutMode = new ArrayList<Double>(); 59 private double dhryMin = Double.MAX_VALUE, dhryMax = Double.MIN_VALUE; 87 double dmips = Double.parseDouble(result); in run() 115 Double[] testSet = new Double[10]; in analyzeResults() 117 double min = Double.MAX_VALUE, max = Double.MIN_VALUE; in analyzeResults() 124 Double time = Double.parseDouble(line.split(":")[1]); in analyzeResults() 162 dhryMin = Double.MAX_VALUE; in setUpEnvironment() [all …]
|
/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/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/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 …]
|
D | RSUtils.java | 105 array[r.nextInt(array.length)] = Double.NaN; in genRandomDoubles() 106 array[r.nextInt(array.length)] = Double.POSITIVE_INFINITY; in genRandomDoubles() 107 array[r.nextInt(array.length)] = Double.NEGATIVE_INFINITY; in genRandomDoubles() 108 array[r.nextInt(array.length)] = Double.MIN_VALUE; in genRandomDoubles() 109 array[r.nextInt(array.length)] = Double.MIN_NORMAL; in genRandomDoubles() 110 array[r.nextInt(array.length)] = Double.MAX_VALUE; in genRandomDoubles() 111 array[r.nextInt(array.length)] = -Double.MIN_VALUE; in genRandomDoubles() 112 array[r.nextInt(array.length)] = -Double.MIN_NORMAL; in genRandomDoubles() 113 array[r.nextInt(array.length)] = -Double.MAX_VALUE; in genRandomDoubles() 184 if (Double.isInfinite(minValueInHalf)) { in genRandomFloat16s() [all …]
|
D | Target.java | 187 return new Floaty(numberOfBits, new double [] { Double.NaN }); in newNan() 344 if (Double.isNaN(f)) { in Floaty() 428 if (mMinValue == Double.NEGATIVE_INFINITY || in ExpandMin() 429 mMinValue == Double.POSITIVE_INFINITY) { in ExpandMin() 469 if (mMaxValue == Double.NEGATIVE_INFINITY || in ExpandMax() 470 mMaxValue == Double.POSITIVE_INFINITY) { in ExpandMax() 524 answer = Double.MIN_NORMAL; in smallestNormal() 576 if (Double.isNaN(a)) { in couldBe() 591 if (mMinValue == Double.NEGATIVE_INFINITY && in couldBe() 592 mMaxValue == Double.NEGATIVE_INFINITY) { in couldBe() [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/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_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_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 | 163 Double recordingDuration_millis = new Double(1000 * (2.5 in onCreate() 224 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse() 226 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse() 234 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse() 236 powerWrap[j] = new Double(10 * Math.log10(power[j][i])); in plotResponse() 250 Double[] noiseDBWrap = new Double[Common.PIP_NUM]; in plotResponse() 252 noiseDBWrap[i] = new Double(noiseDB[i]); in plotResponse() 266 Double[] dBWrap = new Double[Common.PIP_NUM]; in plotResponse() 268 dBWrap[i] = new Double(dB[i]); in plotResponse() 281 Double[] passX = new Double[] {Common.MIN_FREQUENCY_HZ, Common.MAX_FREQUENCY_HZ}; in plotResponse() [all …]
|
D | HifiUltrasoundSpeakerTestActivity.java | 183 Double recordingDuration_millis = new Double(1000 * (2.5 in onCreate() 265 Double[] frequencies = new Double[Common.PIP_NUM]; in plotResponse() 267 frequencies[i] = new Double(Common.FREQUENCIES_ORIGINAL[i]); in plotResponse() 274 Double[] powerWrap = new Double[Common.PIP_NUM]; in plotResponse() 276 powerWrap[j] = new Double(10 * Math.log10(power[j][i])); in plotResponse() 290 Double[] noiseDBWrap = new Double[Common.PIP_NUM]; in plotResponse() 292 noiseDBWrap[i] = new Double(noiseDB[i]); in plotResponse() 306 Double[] dBWrap = new Double[Common.PIP_NUM]; in plotResponse() 308 dBWrap[i] = new Double(dB[i]); in plotResponse() 321 Double[] passX = new Double[] {Common.MIN_FREQUENCY_HZ, Common.MAX_FREQUENCY_HZ}; in plotResponse() [all …]
|