Home
last modified time | relevance | path

Searched refs:answer (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DDouble.java291 StringBuffer answer = new StringBuffer(24); in toHexString() local
294 answer.append("-"); // so append sign info in toHexString()
296 answer.append("0x"); in toHexString()
301 answer.append("0.0p0"); in toHexString()
315 answer.append(subnormal ? "0." : "1."); in toHexString()
322 answer.append(signif.equals("0000000000000") ? // 13 zeros in toHexString()
330 answer.append("p" + (subnormal ? in toHexString()
334 return answer.toString(); in toHexString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DFloatTest.java853 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 …]
DStrictMathTest.java109 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()
DMathTest.java103 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()
DDoubleTest.java198 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/
DAbstractShortCircuitTask.java186 R answer = sharedResult.get(); in getLocalResult() local
187 return (answer == null) ? getEmptyResult() : answer; in getLocalResult()
DFindOps.java276 private void foundResult(O answer) { in foundResult() argument
278 shortCircuit(answer); in foundResult()
/libcore/ojluni/src/main/native/
Dnet_util.c254 unsigned short answer = 0; in in_cksum() local
261 *(unsigned char *) (&answer) = *(unsigned char *)w; in in_cksum()
262 sum += answer; in in_cksum()
267 answer = ~sum; in in_cksum()
268 return (answer); in in_cksum()
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidStrictMathTest.java80 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()
DOldAndroidMathTest.java101 double answer = Math.tan(Math.atan(1.0)); in testAtanD() local
102 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtanD()
103 && answer >= 9.9999999999999983E-1); in testAtanD()
108 double answer = Math.atan(Math.tan(1.0)); in testAtan2DD() local
109 assertTrue("Returned incorrect arc tangent: " + answer, answer <= 1.0 in testAtan2DD()
110 && answer >= 9.9999999999999983E-1); in testAtan2DD()
276 double answer = Math.log(Math.exp(d)); in testLogD() local
278 + " answer = " + answer, Math.abs(answer - d) <= Math in testLogD()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrays2Test.java135 …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()
DArraysTest.java1161 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/net/
DURLConnectionTest.java2004 @Override public Object answer(InvocationOnMock invocation)