/libcore/luni/src/test/java/tests/security/spec/ |
D | ECPointTest.java | 150 ECPoint p2=null, p1 = in testEqualsObject01() local 156 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(1L)); in testEqualsObject01() 157 assertTrue(p1.equals(p2) && p2.equals(p1)); in testEqualsObject01() 161 p2 = ECPoint.POINT_INFINITY; in testEqualsObject01() 162 assertTrue(p1.equals(p2) && p2.equals(p1)); in testEqualsObject01() 173 ECPoint p2=null, p1 = in testEqualsObject02() local 175 assertFalse(p1.equals(p2)); in testEqualsObject02() 179 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(1L)); in testEqualsObject02() 180 assertFalse(p1.equals(p2) || p2.equals(p1)); in testEqualsObject02() 184 p2 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ZERO); in testEqualsObject02() [all …]
|
/libcore/luni/src/test/java17language/java/libcore/libcore/internal/ |
D | Java17LanguageFeaturesTest.java | 54 Java17LanguageFeatures.Point p2 = Java17LanguageFeatures.buildPoint(1, 2); in testRecord() local 59 assertEquals(1, p2.x()); in testRecord() 60 assertEquals(2, p2.y()); in testRecord() 65 assertEquals("Point[x=1, y=2]", p2.toString()); in testRecord() 68 assertTrue(p1.equals(p2)); in testRecord() 69 assertEquals(p1.hashCode(), p2.hashCode()); in testRecord() 74 assertFalse(p2.equals(p3)); in testRecord() 75 assertNotEquals(p2.hashCode(), p3.hashCode()); in testRecord()
|
/libcore/ojluni/src/test/java/util/Properties/ |
D | LoadAndStoreXMLWithDefaults.java | 60 Properties p2 = new Properties(p1); in main() local 61 p2.setProperty("p2.prop", "prop4-p2"); in main() 62 p2.setProperty("p1.and.p2.prop", "prop5-p2"); in main() 63 p2.setProperty("p1.and.p2.and.p3.prop", "prop6-p2"); in main() 64 p2.setProperty("p2.and.p3.prop", "prop7-p2"); in main() 65 Properties p3 = new Properties(p2); in main() 71 Properties P2 = loadFromXML(writeToXML(p2), P1); in main()
|
/libcore/ojluni/src/main/java/jdk/internal/math/ |
D | FDBigInteger.java | 250 public static FDBigInteger valueOfPow52(int p5, int p2) { in valueOfPow52() argument 252 if (p2 == 0) { in valueOfPow52() 256 int wordcount = p2 >> 5; in valueOfPow52() 257 int bitcount = p2 & 0x1f; in valueOfPow52() 267 return big5pow(p5).leftShift(p2); in valueOfPow52() 270 return valueOfPow2(p2); in valueOfPow52() 288 public static FDBigInteger valueOfMulPow52(long value, int p5, int p2) { in valueOfMulPow52() argument 290 assert p2 >= 0 : p2; in valueOfMulPow52() 293 int wordcount = p2 >> 5; in valueOfMulPow52() 294 int bitcount = p2 & 0x1f; in valueOfMulPow52() [all …]
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | MultiplicationTests.java | 69 long p2 = StrictMath.multiplyHigh(x, y); in check() local 70 if (p1 != p2) { in check() 73 fail(String.format("Error - x:%d y:%d p1:%d p2:%d\n", x, y, p1, p2)); in check()
|
D | HypotTests.java | 95 {0x1.0p0, 0x1.3fffffffffffdp2, 0x1.465655f122ff3p2}, in testHypot() 96 {0x1.0p0, 0x1.4p2, 0x1.465655f122ff6p2}, in testHypot() 97 {0x1.0p0, 0x1.7ffffffffffffp2, 0x1.854bfb363dc38p2}, in testHypot() 98 {0x1.0p0, 0x1.8p2, 0x1.854bfb363dc39p2}, in testHypot() 282 {0x1.0p1, 0x1.3fffffffffffdp2, 0x1.58a68a4a8d9fp2}, in testHypot() 284 {0x1.0p1, 0x1.7ffffffffffffp2, 0x1.94c583ada5b51p2}, in testHypot() 467 {0x1.8p1, 0x1.fffffffffffffp1, 0x1.4p2}, in testHypot() 469 {0x1.8p1, 0x1.4p2, 0x1.752e50db3a3a2p2}, in testHypot() 470 {0x1.8p1, 0x1.7ffffffffffffp2, 0x1.ad5336963eefap2}, in testHypot()
|
D | Log10Tests.java | 602 {0x1.3ffffffffe6e9p-18, -0x1.5495959d1524dp2}, in testLog10() 603 {0x1.3fffffffffff6p-18, -0x1.5495959d1502p2}, in testLog10() 643 {0x1.3fffffffffff3p2, 0x1.65df657b042f8p-1}, in testLog10() 688 {0x1.4p19, 0x1.74413509f79ffp2}, in testLog10()
|
D | CubeRootTests.java | 361 {0x1.f3ffffffffffcp6, 0x1.3ffffffffffffp2}, in testCubeRoot() 362 {0x1.bp7, 0x1.8p2}, in testCubeRoot()
|
/libcore/ojluni/src/test/java/security/cert/URICertStoreParameters/ |
D | TestBasic.java | 58 URICertStoreParameters p2 = new URICertStoreParameters(new URI(str2)); in test() local 66 assertEquals(p1, p2); in test() 67 assertEquals(p1Too, p2); in test()
|
/libcore/luni/src/test/resources/ |
D | math_important_numbers.csv | 647 ceil,-0x1.8p2,-0x1.921fb54442d18p2,-6.283185307179586 648 ceil,-0x1.8p2,-0x1.815e630c155e1p2,-6.021385919380436 649 ceil,-0x1.4p2,-0x1.709d10d3e7eabp2,-5.759586531581287 650 ceil,-0x1.4p2,-0x1.5fdbbe9bba775p2,-5.497787143782138 651 ceil,-0x1.4p2,-0x1.4f1a6c638d03fp2,-5.235987755982989 652 ceil,-0x1.0p2,-0x1.3e591a2b5f908p2,-4.974188368183839 653 ceil,-0x1.0p2,-0x1.2d97c7f3321d2p2,-4.71238898038469 654 ceil,-0x1.0p2,-0x1.1cd675bb04a9cp2,-4.4505895925855405 655 ceil,-0x1.0p2,-0x1.0c152382d7365p2,-4.1887902047863905 683 ceil,0x1.0p2,0x1.921fb54442d18p1,3.141592653589793 [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | LinuxPathTest.java | 280 Path p2 = Paths.get("t1/t2"); in test_relativize() local 281 assertEquals(Paths.get(".."), p1.relativize(p2)); in test_relativize() 282 assertEquals(Paths.get(".."), p1.toAbsolutePath().relativize(p2.toAbsolutePath())); in test_relativize() 283 assertEquals(Paths.get("t3"), p2.relativize(p1)); in test_relativize() 287 p1.relativize(p2.toAbsolutePath()); in test_relativize() 292 p1.toAbsolutePath().relativize(p2); in test_relativize() 522 Path p2 = Paths.get("d/b"); in test_compareTo() local 523 assertTrue(p1.compareTo(p2) < 0); in test_compareTo() 524 assertTrue(p2.compareTo(p1) > 0); in test_compareTo() 536 Path p2 = Paths.get("a/../a/b"); in test_equals() local [all …]
|
/libcore/ojluni/src/test/java/text/Format/NumberFormat/ |
D | SerializationSaveTest.java | 51 ObjectOutputStream p2 = new ObjectOutputStream(ostream2); in main() local 52 p2.writeObject(it2); in main()
|
D | SerializationLoadTest.java | 60 ObjectInputStream p2 = new ObjectInputStream(istream2); in main() local 61 CheckDecimalFormatSymbols it2 = (CheckDecimalFormatSymbols)p2.readObject(); in main()
|
D | PositionTest.java | 183 ParsePosition p2 = new ParsePosition(3); in Test4109023() local 184 if (!p.equals(p2)) in Test4109023()
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | MultiplicationTests.java | 74 long p2 = multiply.apply(x, y); in check() local 75 if (p1 != p2) { in check() 76 System.err.printf("Error - x:%d y:%d p1:%d p2:%d\n", x, y, p1, p2); in check()
|
/libcore/ojluni/src/test/java/math/BigInteger/ |
D | BigIntegerTest.java | 299 BigInteger p2 = BigInteger.ONE.shiftLeft(i); in squareRoot() local 300 sb.add(p2.subtract(BigInteger.ONE)); in squareRoot() 301 sb.add(p2); in squareRoot() 302 sb.add(p2.add(BigInteger.ONE)); in squareRoot() 805 BigInteger p1, p2, c1; in prime() local 863 p2 = BigInteger.probablePrime(100, random); in prime() 864 c1 = p1.multiply(p2); in prime() 871 p2 = BigInteger.probablePrime(600, random); in prime() 872 c1 = p1.multiply(p2); in prime() 894 BigInteger p1, p2, p3; in nextProbablePrime() local [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_TimeZone.java | 74 public int getOffset(int p1, int p2, int p3, int p4, int p5, int p6) { in getOffset() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSessionTest.java | 82 Principal p2 = cert.getSubjectX500Principal(); in test_getPeerPrincipal() local 83 assertEquals(p1, p2); in test_getPeerPrincipal() 135 Principal p2 = cert.getSubjectX500Principal(); in test_getLocalPrincipal() local 136 assertEquals(p1, p2); in test_getLocalPrincipal()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | DatagramSocketTest.java | 186 private static void assertPacketDataEquals(DatagramPacket p1, DatagramPacket p2) in assertPacketDataEquals() argument 188 assertEquals(p1.getLength(), p2.getLength()); in assertPacketDataEquals() 190 final byte[] p2Bytes = p2.getData(); in assertPacketDataEquals() 193 if (p1Bytes[p1.getOffset() + i] != p2Bytes[p2.getOffset() + i]) { in assertPacketDataEquals() 196 String actual = new String(p2Bytes, p2.getOffset(), p2.getLength(), in assertPacketDataEquals()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StrictMathTest.java | 260 long p2 = StrictMath.multiplyFull(x, y); in testMultiplyFull() local 261 assertEquals(p1, p2); in testMultiplyFull()
|
D | MathTest.java | 332 long p2 = Math.multiplyFull(x, y); in testMultiplyFull() local 333 assertEquals(p1, p2); in testMultiplyFull()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | SerializationStressTest4.java | 217 public StringBuffer format(Object p1, StringBuffer p2, in test_writeObject_Format() 222 public Object parseObject(String p1, java.text.ParsePosition p2) { in test_writeObject_Format() 426 public void add(int p1, int p2) { in test_writeObject_Calendar() 451 public void roll(int p1, boolean p2) { in test_writeObject_Calendar() 579 public StringBuffer format(Date p1, StringBuffer p2, in test_writeObject_DateFormat() 586 public Date parse(String p1, java.text.ParsePosition p2) { in test_writeObject_DateFormat() 712 public StringBuffer format(double p1, StringBuffer p2, in test_writeObject_NumberFormat() 717 public StringBuffer format(long p1, StringBuffer p2, in test_writeObject_NumberFormat() 724 public Number parse(String p1, java.text.ParsePosition p2) { in test_writeObject_NumberFormat() 768 public int getOffset(int p1, int p2, int p3, int p4, int p5, in test_writeObject_TimeZone()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 394 Provider p2 = pp[0]; in testService2() local 395 String old = p2.getProperty("MessageDigest.ASH-1"); in testService2() 396 p2.put("MessageDigest.ASH-1", "AnotherClassName"); in testService2() 397 Provider.Service s = p2.getService("MessageDigest", "ASH-1"); in testService2()
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | ScanTest.java | 1385 Pattern p2 = Pattern.compile("blech"); in hasNextPatternTest() local 1388 if (s.hasNext(p2)) failCount++; in hasNextPatternTest() 1392 if (!s.hasNext(p2)) failCount++; in hasNextPatternTest() 1396 if (s.hasNext(p2)) failCount++; in hasNextPatternTest() 1400 if (s.hasNext(p2)) failCount++; in hasNextPatternTest() 1404 if (s.hasNext(p2)) failCount++; in hasNextPatternTest() 1412 Pattern p2 = Pattern.compile("blech"); in nextPatternTest() local 1417 result = (String)s.next(p2); in nextPatternTest() 1431 result = (String)s.next(p2); in nextPatternTest()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | AbstractPreferencesTest.java | 137 Preferences p2 = new MockAbstractPreferences(null, ""); in testConstructor() local 138 assertNotSame(p2, Preferences.systemRoot()); in testConstructor() 139 assertNotSame(p2, Preferences.userRoot()); in testConstructor() 140 assertFalse(p2.isUserNode()); in testConstructor() 142 p2 = new MockAbstractPreferences((AbstractPreferences) Preferences in testConstructor() 144 assertNotSame(p2, pref); in testConstructor() 145 p2.removeNode(); in testConstructor()
|