Home
last modified time | relevance | path

Searched refs:isNaN (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/os/src/android/os/cts/
DPowerManager_ThermalTest.java152 if (Float.isNaN(headroom)) { in testGetThermalHeadroom()
161 assertFalse("Expected data to still be available", Float.isNaN(headroom)); in testGetThermalHeadroom()
169 assertTrue("Abusive calls get rate limited", Float.isNaN(headroom)); in testGetThermalHeadroom()
178 if (Float.isNaN(headroom)) { in testGetThermalHeadroomThresholds()
197 assertFalse(Float.isNaN(thresholds.get(status))); in testGetThermalHeadroomThresholds()
/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java220 public void isNaN() { in isNaN() method in HalfTest
221 assertFalse(Half.isNaN(POSITIVE_INFINITY)); in isNaN()
222 assertFalse(Half.isNaN(NEGATIVE_INFINITY)); in isNaN()
223 assertFalse(Half.isNaN(POSITIVE_ZERO)); in isNaN()
224 assertFalse(Half.isNaN(NEGATIVE_ZERO)); in isNaN()
225 assertTrue(Half.isNaN(NaN)); in isNaN()
226 assertTrue(Half.isNaN((short) 0x7c01)); in isNaN()
227 assertTrue(Half.isNaN((short) 0x7c18)); in isNaN()
228 assertTrue(Half.isNaN((short) 0xfc01)); in isNaN()
229 assertTrue(Half.isNaN((short) 0xfc98)); in isNaN()
[all …]
DJsonReaderTest.java251 assertTrue(Double.isNaN(reader.nextDouble())); in testDoubles()
272 assertTrue(Double.isNaN(reader.nextDouble())); in testLenientDoubles()
DRationalTest.java447 verifyAction("NaN", object, expected, object.isNaN()); in verifyNaN()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFloat16Utils.java134 if (Double.isNaN(value) || Double.isInfinite(value)) { in roundToFloat16()
293 } else if (Double.isNaN(value)) { in convertDoubleToFloat16()
DFloatyUnitTest.java395 if (Double.isNaN(absoluteValue)) { in validateFloat16Ulp()
396 assertTrue("Ulp for NaN is not NaN", Double.isNaN(ulp)); in validateFloat16Ulp()
480 if (Double.isNaN(result[i]) && Double.isNaN(expected[i])) in validateRoundToFloat16()
DTarget.java344 if (Double.isNaN(f)) { in Floaty()
576 if (Double.isNaN(a)) { in couldBe()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_float/
DTest_double_to_float.java78 assertTrue(Float.isNaN(t.run(Double.NaN))); in testB4()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/float_to_double/
DTest_float_to_double.java80 assertTrue(Double.isNaN(t.run(Float.NaN))); in testB4()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_float_2addr/
DTest_add_float_2addr.java63 assertTrue(Float.isNaN(t.run(Float.POSITIVE_INFINITY, in testB2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_float/
DTest_add_float.java63 assertTrue(Float.isNaN(t.run(Float.POSITIVE_INFINITY, in testB2()
/cts/tests/camera/src/android/hardware/camera2/cts/
DZoomCaptureTest.java273 if ((!Float.isNaN(lastZoomRatio)) && (zoomRatio > lastZoomRatio)) { in bufferFormatZoomTestByCamera()
277 if (!Float.isNaN(lastFocalLength)) { in bufferFormatZoomTestByCamera()
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamDoubleTest.java34 if (Double.isNaN(expected)) { in assertEquals()
35 if (!Double.isNaN(actual)) { in assertEquals()
DProtoOutputStreamFloatTest.java35 if (Float.isNaN(expected)) { in assertEquals()
36 if (!Float.isNaN(actual)) { in assertEquals()
/cts/libs/json/src/com/android/json/stream/
DJsonWriter.java314 if (Double.isNaN(value) || Double.isInfinite(value)) { in value()
/cts/tests/vibrator/src/android/os/cts/
DVibratorTest.java352 float sustainFrequency = Float.isNaN(resonantFrequency) in testVibrateWaveformWithFrequencyStartsAndFinishesVibration()
503 if (!Float.isNaN(resonantFrequency)) { in testVibratorResonantFrequency()
547 if (!Float.isNaN(resonantFrequency)) { in testVibratorFrequencyProfileSupportedFrequencyRange()
DVibratorManagerTest.java230 float sustainFrequency = Float.isNaN(resonantFrequency) in testCombinedVibrationWaveformWithFrequencyStartsAndFinishesVibration()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssPseudorangeVerificationTest.java320 if (Double.isNaN(calculatedLatLngAlt[0])) { in testPseudoPosition()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DWavAnalyzer.java102 if (Double.isNaN(dB[i])) { in responsePassesHifiTest()
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java504 assertFalse(Float.isNaN(event.luxValues[i])); in assertValidLuxData()
613 assertFalse(Float.isNaN(values[i])); in assertInRange()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java109 if (!Float.isNaN(sTransitionScaleBefore)) { in tearDownClass()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraMetadataGetter.java469 if (((Float) keyValue).isInfinite() || ((Float) keyValue).isNaN()) { in serializeEntry()
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DLineBreakerTest.java821 assertFalse(Float.isNaN(lw)); in testLineBreak_ZeroWidthTab()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java2177 if (!Double.isNaN(zoomRatio)) {
2277 if (!Double.isNaN(zoomRatio)) {
3067 zoomRatio = (Double.isNaN(zoomRatio)) ? cmdObj.optDouble("zoomStart") : zoomRatio;
3570 if (!Double.isNaN(zoomRatio)) {
3725 if (!Double.isNaN(zoomRatio)) {
DItsSerializer.java335 if (((Float)keyValue).isInfinite() || ((Float)keyValue).isNaN()) { in serializeEntry()

12