/libcore/luni/src/test/resources/ |
D | math_tests.csv | 3137 cos,0x1.c1a27ae836f13p-1,0x1.feb1f7920e248p-2 3138 cos,0x1.c1a27ae836f13p-1,-0x1.feb1f7920e248p-2 3139 cos,0x1.78daf01036d0dp-1,0x1.7cb7648526f99p-1 3140 cos,0x1.78daf01036d0dp-1,-0x1.7cb7648526f99p-1 3141 cos,0x1.ff8eb6a91ecbp-1,0x1.549ec0c0c5afap-5 3142 cos,0x1.ff8eb6a91ecbp-1,-0x1.549ec0c0c5afap-5 3143 cos,0x1.fed0476fc75cap-1,0x1.16e534ee3658p-4 3144 cos,0x1.fed0476fc75cap-1,-0x1.16e534ee3658p-4 3145 cos,0x1.f10fc61e2c78fp-1,0x1.efeef61d39ac2p-3 3146 cos,0x1.f10fc61e2c78fp-1,-0x1.efeef61d39ac2p-3 [all …]
|
D | math_important_numbers.csv | 142 cos,-0x1.d2cec9a554007p-1,0x1.5bf0a8b145769p1,2.718281828459045 143 cos,-0x1.d2cec9a554007p-1,-0x1.5bf0a8b145769p1,-2.718281828459045 144 cos,0x1.0p0,0x0.0p0,0.0 145 cos,0x1.0p0,-0x0.0p0,-0.0 146 cos,0x1.14a280fb5068cp-1,0x1.0p0,1.0 147 cos,0x1.14a280fb5068cp-1,-0x1.0p0,-1.0 148 cos,0x1.c1528065b7d5p-1,-0x1.0p-1,-0.5 149 cos,0x1.c1528065b7d5p-1,0x1.0p-1,0.5 150 cos,0x1.0p0,-0x1.921fb54442d18p2,-6.283185307179586 151 cos,0x1.ee8dd4748bf13p-1,-0x1.815e630c155e1p2,-6.021385919380436 [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherOutputStream1Test.java | 74 CipherOutputStream cos = new CipherOutputStream(tos){}; in testCipherOutputStream() local 75 cos.write(data); in testCipherOutputStream() 76 cos.flush(); in testCipherOutputStream() 90 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); in testWrite1() local 92 cos.write(data[i]); in testWrite1() 94 cos.flush(); in testWrite1() 108 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); in testWrite2() local 109 cos.write(data); in testWrite2() 110 cos.flush(); in testWrite2() 117 cos.write(null); in testWrite2() [all …]
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | CipherOutputStreamTest.java | 70 CipherOutputStream cos = new CipherOutputStream(new ByteArrayOutputStream(), cipher); in testDecryptCorruptGCM() local 72 cos.write(encrypted); in testDecryptCorruptGCM() 73 cos.close(); in testDecryptCorruptGCM()
|
/libcore/ojluni/src/main/native/ |
D | jfdlibm.h | 42 #define cos jcos macro
|
D | fdlibm.h | 121 extern double cos __P((double));
|
D | StrictMath.c | 160 NATIVE_METHOD(StrictMath, cos, "(D)D"),
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | IntrinsicTest.java | 108 Math.cos(Math.PI); in testMath_cos()
|
D | OldAndroidMathTest.java | 85 double r = Math.cos(Math.acos(ADJ / HYP)); in testAcosD() 195 assertEquals("Incorrect answer", 1.0, Math.cos(0), 0D); in testCosD() 196 assertEquals("Incorrect answer", 0.5403023058681398, Math.cos(1), 0D); in testCosD()
|
D | OldAndroidStrictMathTest.java | 68 assertTrue("Returned incorrect arc cosine", StrictMath.cos(StrictMath in testAcosD() 143 assertTrue("Returned incorrect cosine", StrictMath.cos(StrictMath in testCosD()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 134 public static native double cos(double a); in cos() method in StrictMath
|
D | Math.java | 175 public static native double cos(double a); in cos() method in Math
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 135 StrictMath.cos(d); in timeCos()
|
D | MathBenchmark.java | 149 result = Math.cos(d); in timeCos()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | MathTest.java | 79 double r = Math.cos(Math.acos(ADJ / HYP)); in test_acosD() 300 assertEquals("Incorrect answer", 1.0, Math.cos(0), 0D); in test_cosD() 301 assertEquals("Incorrect answer", 0.5403023058681398, Math.cos(1), 0D); in test_cosD()
|
D | StrictMathTest.java | 91 assertTrue("Returned incorrect arc cosine", StrictMath.cos(StrictMath in test_acosD() 313 assertTrue("Returned incorrect cosine", StrictMath.cos(StrictMath in test_cosD()
|