/libcore/ojluni/src/main/java/java/lang/ |
D | Double.java | 292 StringBuilder answer = new StringBuilder(24); in toHexString() local 295 answer.append("-"); // so append sign info in toHexString() 297 answer.append("0x"); in toHexString() 302 answer.append("0.0p0"); in toHexString() 315 answer.append(subnormal ? "0." : "1."); in toHexString() 322 answer.append(signif.equals("0000000000000") ? // 13 zeros in toHexString() 326 answer.append('p'); in toHexString() 331 answer.append(subnormal ? in toHexString() 335 return answer.toString(); in toHexString()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | FloatTest.java | 853 String answer; in test_toStringF() local 856 answer = "12.90898"; in test_toStringF() 857 assertTrue("Incorrect String representation want " + answer + ", got " in test_toStringF() 858 + Float.toString(ff), Float.toString(ff).equals(answer)); in test_toStringF() 861 answer = "3.4028235E38"; in test_toStringF() 862 assertTrue("Incorrect String representation want " + answer + ", got " in test_toStringF() 863 + Float.toString(ff), Float.toString(ff).equals(answer)); in test_toStringF() 936 private void test_toString(float ff, String answer) { in test_toString() argument 938 assertTrue("Incorrect String representation want " + answer + ", got (" in test_toString() 939 + Float.toString(ff) + ")", Float.toString(ff).equals(answer)); in test_toString() [all …]
|
D | StrictMathTest.java | 109 double answer = StrictMath.tan(StrictMath.atan(1.0)); in test_atanD() local 110 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atanD() 111 && answer >= 9.9999999999999983E-1); in test_atanD() 119 double answer = StrictMath.atan(StrictMath.tan(1.0)); in test_atan2DD() local 120 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atan2DD() 121 && answer >= 9.9999999999999983E-1); in test_atan2DD() 507 double answer = StrictMath.log(StrictMath.exp(d)); in test_logD() local 509 + " answer = " + answer, in test_logD() 510 StrictMath.abs(answer - d) <= StrictMath in test_logD()
|
D | MathTest.java | 103 double answer = Math.tan(Math.atan(1.0)); in test_atanD() local 104 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atanD() 105 && answer >= 9.9999999999999983E-1); in test_atanD() 113 double answer = Math.atan(Math.tan(1.0)); in test_atan2DD() local 114 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in test_atan2DD() 115 && answer >= 9.9999999999999983E-1); in test_atan2DD() 548 double answer = Math.log(Math.exp(d)); in test_logD() local 550 + " answer = " + answer, Math.abs(answer - d) <= Math in test_logD() 1172 double answer = dval == 1.0d ? 1.0d : Double.NaN; in test_powDD() local 1174 + ")=" + answer, answer, Math.pow(dval, Double.NaN)); in test_powDD()
|
D | DoubleTest.java | 198 private void test_toString(double dd, String answer) { in test_toString() argument 199 assertEquals(answer, Double.toString(dd)); in test_toString() 201 assertEquals(answer, Double.toString(d.doubleValue())); in test_toString() 202 assertEquals(answer, d.toString()); in test_toString()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | AbstractShortCircuitTask.java | 186 R answer = sharedResult.get(); in getLocalResult() local 187 return (answer == null) ? getEmptyResult() : answer; in getLocalResult()
|
D | FindOps.java | 276 private void foundResult(O answer) { in foundResult() argument 278 shortCircuit(answer); in foundResult()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidStrictMathTest.java | 80 double answer = StrictMath.tan(StrictMath.atan(1.0)); in testAtanD() local 81 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtanD() 82 && answer >= 9.9999999999999983E-1); in testAtanD() 87 double answer = StrictMath.atan(StrictMath.tan(1.0)); in testAtan2DD() local 88 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtan2DD() 89 && answer >= 9.9999999999999983E-1); in testAtan2DD() 275 double answer = StrictMath.log(StrictMath.exp(d)); in testLogD() local 277 + " answer = " + answer, in testLogD() 278 StrictMath.abs(answer - d) <= StrictMath in testLogD()
|
D | OldAndroidMathTest.java | 103 double answer = Math.tan(Math.atan(1.0)); in testAtanD() local 104 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtanD() 105 && answer >= 9.9999999999999983E-1); in testAtanD() 316 double answer = Math.log(Math.exp(d)); in testLogD() local 318 + " answer = " + answer, Math.abs(answer - d) <= Math in testLogD()
|
/libcore/ojluni/src/main/native/ |
D | net_util.c | 349 unsigned short answer = 0; in in_cksum() local 356 *(unsigned char *) (&answer) = *(unsigned char *)w; in in_cksum() 357 sum += answer; in in_cksum() 362 answer = ~sum; in in_cksum() 363 return (answer); in in_cksum()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Arrays2Test.java | 135 …double[] answer = new double[] { Double.NEGATIVE_INFINITY, -0d, 0d, Double.MIN_VALUE, Double.MAX_V… in test_sort$D() local 143 Arrays.equals(specials1, answer)); in test_sort$D() 151 Arrays.equals(specials2, answer)); in test_sort$D() 171 …float[] answer = new float[] { Float.NEGATIVE_INFINITY, -0f, 0f, Float.MIN_VALUE, Float.MAX_VALUE,… in test_sort$F() local 179 Arrays.equals(specials1, answer)); in test_sort$F() 187 Arrays.equals(specials2, answer)); in test_sort$F()
|
D | ArraysTest.java | 1161 double[] answer = new double[] { Double.NEGATIVE_INFINITY, -0d, 0d, in test_sort$D() local 1172 Arrays.equals(specials1, answer)); in test_sort$D() 1179 Arrays.equals(specials2, answer)); in test_sort$D() 1252 float[] answer = new float[] { Float.NEGATIVE_INFINITY, -0f, 0f, in test_sort$F() local 1261 Arrays.equals(specials1, answer)); in test_sort$F() 1268 Arrays.equals(specials2, answer)); in test_sort$F()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | ChannelsTest.java | 83 public Integer answer(InvocationOnMock invocation) { in testInputStreamAsynchronousByteChannel() 111 public Integer answer(InvocationOnMock invocation) { in testOutputStreamAsynchronousByteChannel()
|