/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | FloatyUnitTest.java | 155 shouldAccept(subnormalFloaty, (double) Float.MIN_NORMAL + Float.MIN_NORMAL); in testFloat1UlpRelaxed() 156 shouldAccept(subnormalFloaty, (double) 0.f - Float.MIN_NORMAL); in testFloat1UlpRelaxed() 157 shouldNotAccept(subnormalFloaty, (double) Float.MIN_NORMAL + 2 * Float.MIN_NORMAL); in testFloat1UlpRelaxed() 158 shouldNotAccept(subnormalFloaty, (double) 0.f - 2 * Float.MIN_NORMAL); in testFloat1UlpRelaxed() 172 shouldAccept(subnormalFloaty, (double) Float.MIN_NORMAL + 8192 * Float.MIN_NORMAL); in testFloat8192UlpRelaxed() 173 shouldAccept(subnormalFloaty, (double) 0.f - 8192 * Float.MIN_NORMAL); in testFloat8192UlpRelaxed() 174 shouldNotAccept(subnormalFloaty, (double) Float.MIN_NORMAL + 8193 * Float.MIN_NORMAL); in testFloat8192UlpRelaxed() 175 shouldNotAccept(subnormalFloaty, (double) 0.f - 8193 * Float.MIN_NORMAL); in testFloat8192UlpRelaxed() 305 extraError = Float16Utils.MIN_NORMAL; in testExtraAllowedError() 324 extraError = Float16Utils.MIN_NORMAL; in testExtraAllowedError() [all …]
|
D | RSUtils.java | 109 array[r.nextInt(array.length)] = Double.MIN_NORMAL; in genRandomDoubles() 112 array[r.nextInt(array.length)] = -Double.MIN_NORMAL; in genRandomDoubles() 160 array[r.nextInt(array.length)] = Float.MIN_NORMAL; in genRandomFloats() 163 array[r.nextInt(array.length)] = -Float.MIN_NORMAL; in genRandomFloats()
|
D | Float16Utils.java | 37 static double MIN_NORMAL = Math.scalb(1.0, -14); // smallest Float16 normal is 2 ^ -14 field in Float16Utils 304 if (positiveValue < MIN_NORMAL) { in convertDoubleToFloat16()
|
D | Target.java | 520 answer = Float16Utils.MIN_NORMAL; in smallestNormal() 522 answer = Float.MIN_NORMAL; in smallestNormal() 524 answer = Double.MIN_NORMAL; in smallestNormal()
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamFloatTest.java | 70 po.writeFloat(ProtoOutputStream.makeFieldId(5, fieldFlags), Float.MIN_NORMAL); in testWrite() 115 testWriteCompat(Float.MIN_NORMAL); in testWriteCompat() 169 po.writeRepeatedFloat(ProtoOutputStream.makeFieldId(5, fieldFlags), Float.MIN_NORMAL); in testRepeated() 179 po.writeRepeatedFloat(ProtoOutputStream.makeFieldId(5, fieldFlags), Float.MIN_NORMAL); in testRepeated() 251 Float.MIN_NORMAL, Float.MIN_VALUE, Float.NEGATIVE_INFINITY, Float.NaN, in testRepeatedCompat() 319 writePackedFloat(po, 5, Float.MIN_NORMAL); in testPacked() 381 Float.MIN_NORMAL, Float.MIN_VALUE, Float.NEGATIVE_INFINITY, Float.NaN, in testPackedCompat()
|
D | ProtoOutputStreamDoubleTest.java | 69 po.writeDouble(ProtoOutputStream.makeFieldId(5, fieldFlags), Double.MIN_NORMAL); in testWrite() 121 testWriteCompat(Double.MIN_NORMAL); in testWriteCompat() 175 po.writeRepeatedDouble(ProtoOutputStream.makeFieldId(5, fieldFlags), Double.MIN_NORMAL); in testRepeated() 185 po.writeRepeatedDouble(ProtoOutputStream.makeFieldId(5, fieldFlags), Double.MIN_NORMAL); in testRepeated() 275 Double.MIN_NORMAL, Double.MIN_VALUE, Double.NEGATIVE_INFINITY, Double.NaN, in testRepeatedCompat() 341 writePackedDouble(po, 5, Double.MIN_NORMAL); in testPacked() 421 Double.MIN_NORMAL, Double.MIN_VALUE, Double.NEGATIVE_INFINITY, Double.NaN, in testPackedCompat()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | HalfTest.java | 121 assertEquals("0x1.0p-14", toHexString(MIN_NORMAL)); in hexString() 140 assertEquals("6.1035156E-5", Half.toString(MIN_NORMAL)); in string() 218 assertTrue(Half.isNormalized(MIN_NORMAL)); in isNormalized() 249 assertEquals(1.0f, toFloat(Half.ceil(MIN_NORMAL)), 1e-6f); in ceil() 318 assertShortEquals(POSITIVE_ZERO, Half.floor(MIN_NORMAL)); in floor() 398 assertTrue(Half.less(MIN_VALUE, MIN_NORMAL)); in less() 399 assertFalse(Half.less(MIN_NORMAL, MIN_VALUE)); in less() 418 assertTrue(Half.lessEquals(MIN_VALUE, MIN_NORMAL)); in lessEquals() 419 assertFalse(Half.lessEquals(MIN_NORMAL, MIN_VALUE)); in lessEquals() 442 assertTrue(Half.greater(MIN_NORMAL, MIN_VALUE)); in greater() [all …]
|
D | JsonWriterTest.java | 203 jsonWriter.value(Double.MIN_NORMAL); in testDoubles()
|
/cts/tests/tests/renderscriptlegacy/src/android/renderscriptlegacy/cts/ |
D | RSUtils.java | 87 array[r.nextInt(array.length)] = Double.MIN_NORMAL; in genRandomDoubles() 90 array[r.nextInt(array.length)] = -Double.MIN_NORMAL; in genRandomDoubles() 138 array[r.nextInt(array.length)] = Float.MIN_NORMAL; in genRandomFloats() 141 array[r.nextInt(array.length)] = -Float.MIN_NORMAL; in genRandomFloats()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentTest.java | 369 assertEquals(1.1f, mIntent.getFloatExtra("an_float", 0), Float.MIN_NORMAL); in testParseIntent() 370 assertEquals(2.2f, mIntent.getFloatExtra("another_float", 0), Float.MIN_NORMAL); in testParseIntent()
|