/external/apache-xml/src/main/java/org/apache/xpath/objects/ |
XNumber.java | 118 return (Double.isNaN(m_val) || (m_val == 0.0)) ? false : true; 131 // if (Double.isNaN(m_val)) 280 if (Double.isNaN(m_val))
|
/external/chromium_org/third_party/WebKit/Tools/GardeningServer/scripts/ |
svn-log.js | 56 return isNaN(parsedID) ? 0 : parsedID; 67 return isNaN(svnRevision) ? null : svnRevision;
|
/external/chromium_org/v8/test/mjsunit/es6/ |
math-fround.js | 10 assertTrue(isNaN(Math.fround(NaN))); 11 assertTrue(isNaN(Math.fround(function() {}))); 12 assertTrue(isNaN(Math.fround({ toString: function() { return NaN; } }))); 13 assertTrue(isNaN(Math.fround({ valueOf: function() { return "abc"; } })));
|
/external/chromium_org/v8/test/mjsunit/ |
string-charat.js | 74 assertTrue(isNaN(s().charCodeAt(-1))); 75 assertTrue(isNaN(s().charCodeAt(len))); 76 assertTrue(isNaN(s().charCodeAt(slowIndexOutOfRange))); 77 assertTrue(isNaN(s().charCodeAt(1/0))); 78 assertTrue(isNaN(s().charCodeAt(-1/0))); 122 assertTrue(isNaN(o.charCodeAt(-1))); 123 assertTrue(isNaN(o.charCodeAt(-1.4))); 124 assertTrue(isNaN(o.charCodeAt(10))); 125 assertTrue(isNaN(o.charCodeAt(slowIndexOutOfRange)));
|
sum-0-plus-undefined-is-NaN.js | 38 assertEquals(expectNaN, isNaN(sum(x, y))); 41 assertEquals(expectNaN, isNaN(sum(x, y)));
|
unicode-string-to-number.js | 31 assertTrue(isNaN(Number('2\u11372')), "short-string"); 45 assertTrue(isNaN(Number(s)), "long-string");
|
sin-cos.js | 158 assertTrue(isNaN(Math.sin(Infinity))); 159 assertTrue(isNaN(Math.cos("-Infinity"))); 182 assertFalse(isNaN(Math.sin(Math.pow(2, i)))); 185 assertFalse(isNaN(Math.cos(1.57079632679489700))); 186 assertFalse(isNaN(Math.cos(-1e-100))); 187 assertFalse(isNaN(Math.cos(-1e-323)));
|
/external/smali/util/src/main/java/org/jf/util/ |
NumberUtils.java | 75 if (Float.isNaN(floatValue)) { 117 if (Double.isNaN(doubleValue)) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
NoisyVelocityTracker.java | 118 if (Float.isNaN(mVX) || Float.isInfinite(mVX)) { 125 if (Float.isNaN(mVY) || Float.isInfinite(mVX)) {
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldAndroidMathTest.java | 115 assertTrue("Should return Double.NaN", Double.isNaN(Math 161 assertTrue(Double.isNaN(Math.cosh(Double.NaN))); 196 assertTrue("Should return NaN", Double.isNaN(Math.expm1(Double.NaN))); 249 assertTrue("Should be NaN", Double.isNaN(Math.hypot(Double.NaN, 251 assertTrue("Should be NaN", Double.isNaN(Math.hypot(-345.2680, 286 assertTrue(Double.isNaN(Math.log10(Double.NaN))); 287 assertTrue(Double.isNaN(Math.log10(-2541.05745687234187532))); 288 assertTrue(Double.isNaN(Math.log10(-0.1))); 305 assertTrue("Should return NaN", Double.isNaN(Math.log1p(Double.NaN))); 306 assertTrue("Should return NaN", Double.isNaN(Math.log1p(-32.0482175))) [all...] |
OldAndroidStrictMathTest.java | 95 assertTrue("Should return Double.NaN", Double.isNaN(StrictMath 150 assertTrue("Should return NaN", Double.isNaN(StrictMath 190 assertTrue("Should return NaN", Double.isNaN(StrictMath.expm1(Double.NaN))); 245 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(Double.NaN, 247 assertTrue("Should return NaN", Double.isNaN(StrictMath.hypot(-345.2680, 286 assertTrue("Should return NaN", Double.isNaN(StrictMath 288 assertTrue("Should return NaN", Double.isNaN(StrictMath 317 assertTrue("Should return NaN", Double.isNaN(StrictMath 319 assertTrue("Should return NaN", Double.isNaN(StrictMath 437 assertTrue("Failed to round properly - NaN", Double.isNaN(StrictMat [all...] |
OldDoubleTest.java | 66 assertFalse("Doesn't return false value", Double.isNaN(new Double(Double.MAX_VALUE)));
|
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
FuncSubstring.java | 60 if (Double.isNaN(start))
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/source_frame/ |
GoToLineDialog.js | 105 if (!isNaN(lineNumber) && lineNumber >= 0)
|
/packages/apps/Calculator/src/com/android/calculator2/ |
CalculatorExpressionEvaluator.java | 59 if (Double.isNaN(result)) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
MathTest.java | 123 assertTrue(Double.isNaN(Math.cbrt(Double.NaN))); 179 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( 201 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( 251 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( 272 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( 309 assertTrue(Double.isNaN(Math.cosh(Double.NaN))); 350 assertTrue("Should return NaN", Double.isNaN(Math.expm1(Double.NaN))); 515 assertTrue("Should be NaN", Double.isNaN(Math.hypot(Double.NaN, 517 assertTrue("Should be NaN", Double.isNaN(Math.hypot(-345.2680, 561 assertTrue(Double.isNaN(Math.log10(Double.NaN))) [all...] |
/external/chromium_org/v8/test/webkit/ |
date-set-to-nan.js | 88 if (!isNaN(setResult)) { 94 if (!isNaN(getResult)) { 282 if (!isNaN(setResult)) { 289 if (!isNaN(getResult)) { 304 if (!isNaN(setResult)) { 311 if (!isNaN(getResult)) { 335 if (!isNaN(setResult)) { 343 if (!isNaN(getResult)) { 366 if (!isNaN(setResult)) { 375 if (!isNaN(getResult)) [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/double_to_float/ |
Test_double_to_float.java | 78 assertTrue(Float.isNaN(t.run(Double.NaN)));
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/float_to_double/ |
Test_float_to_double.java | 80 assertTrue(Double.isNaN(t.run(Float.NaN)));
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sources/ |
StyleSheetOutlineDialog.js | 110 if (!isNaN(lineNumber) && lineNumber >= 0)
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-put-prototype-transition.js | 7 function deepEquals(a, b) { if (a === b) { if (a === 0) return (1 / a) === (1 / b); return true; } if (typeof a != typeof b) return false; if (typeof a == "number") return isNaN(a) && isNaN(b); if (typeof a !== "object" && typeof a !== "function") return false; var objectClass = classOf(a); if (objectClass !== classOf(b)) return false; if (objectClass === "RegExp") { return (a.toString() === b.toString()); } if (objectClass === "Function") return false; if (objectClass === "Array") { var elementCount = 0; if (a.length != b.length) { return false; } for (var i = 0; i < a.length; i++) { if (!deepEquals(a[i], b[i])) return false; } return true; } if (objectClass == "String" || objectClass == "Number" || objectClass == "Boolean" || objectClass == "Date") { if (a.valueOf() !== b.valueOf()) return false; } return deepObjectEquals(a, b); }
|
/libcore/json/src/main/java/org/json/ |
JSON.java | 24 if (Double.isInfinite(d) || Double.isNaN(d)) {
|
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
NodeSorter.java | 167 //n1Num = Double.isNaN(d) ? 0.0 : d; 169 //n2Num = Double.isNaN(d) ? 0.0 : d; 179 if (Double.isNaN(n1Num)) 181 if (Double.isNaN(n2Num)) 186 else if (Double.isNaN(n2Num))
|
/frameworks/base/core/java/android/view/ |
ScaleGestureDetector.java | 229 final boolean hasLastAccepted = !Float.isNaN(mTouchHistoryLastAccepted); 242 if (Float.isNaN(mTouchUpper) || major > mTouchUpper) { 245 if (Float.isNaN(mTouchLower) || major < mTouchLower) {
|
/art/test/082-inline-execute/src/ |
Main.java | 334 Assert.assertTrue(Float.isNaN(Math.min(1.0f, Float.NaN))); 335 Assert.assertTrue(Float.isNaN(Math.min(Float.NaN, 1.0f))); 348 Assert.assertTrue(Float.isNaN(Math.max(1.0f, Float.NaN))); 349 Assert.assertTrue(Float.isNaN(Math.max(Float.NaN, 1.0f))); 362 Assert.assertTrue(Double.isNaN(Math.min(1.0d, Double.NaN))); 363 Assert.assertTrue(Double.isNaN(Math.min(Double.NaN, 1.0d))); 376 Assert.assertTrue(Double.isNaN(Math.max(1.0d, Double.NaN))); 377 Assert.assertTrue(Double.isNaN(Math.max(Double.NaN, 1.0d))); 543 Assert.assertTrue(Float.isNaN(StrictMath.min(1.0f, Float.NaN))); 544 Assert.assertTrue(Float.isNaN(StrictMath.min(Float.NaN, 1.0f))) [all...] |